I’m using psychopy for a pitch to melody association training task, which collects data as it goes.
My coding ability is much better than it used to be, but still pretty terrible really. It’s got to the point where I can usually get python (and matlab) to do what I want it to do, but in an incredibly inelegant and verbose kind of way, with lots of room for stupid mistakes along the way… As such if you could pitch any responses at the level of dribbling idiot then that would be greatly appreciated… thanks!
I have a huge while loop that I intend people to use for long periods of time (e.g. an hour). It works basically fine until about 30 mins in when it crashes my computer… I’m thinking this might be because the experiment is saving so much data by this point that it can’t handle it anymore… is there any way in which I can save the data to the logfile/excel file etc as I go, and routinely flush out the saved data from psychopy as I do so?
The .wav files play with weird clicks in them - has anyone else had this issue? I’ve checked the files themselves and they seem to be fine.
I’m using 4350 .wav files, from which a function I’ve created picks a few semi-random ones (between 12 and 24, depending on the progression through the training) on each time through the loop. These files unsurprisingly take up a pretty ridiculous amount of space… (I intuitively wonder if the sheer quantity of files is responsible for some of the performance issues previously mentioned, although I’d have thought it isn’t as conditions are replaced on each iteration of the loop - so it should only be having to handle between 12 and 24 files at any given time). This would be a lot more space efficient if I used MIDI files instead, but I couldn’t get PsychoPy to run when I tried using MIDI files - is there a trick to this?
Thanks for the help!