Adaptive Processing Experiment
I am fairly new to programming and would appreciate it if someone could guide me through writing an inline script for an adaptive processing experiment.
Basically, the experiment's purpose is to find at which time interval between two stimuli can the participant achieve a 75% accuracy. The participant finishes one trial with a set time interval of 2 seconds and based on their accuracy of this trial, the duration between each sound stimuli increases or decreases until they reach a 75% accuracy. If they receive equal to or greater than 75% accuracy, then the experiment is finished. The time interval at which they were able to reach this accuracy is recorded.
Thus, I need to code an inline-script that can tell the program to decrease the "Duration" of the sound sampler by 500 milliseconds, IF the the accuracy is below 75%. How can I access the "Duration" element in the sampler through my inline_script? Please let me know, thank you so much!!