psychopy.org | Reference | Downloads | Github

Auditory Stimuli Experiment

Hi, firstly I do not have a background in experimental design or statistics so please be patient. I am a final year music student who is branching out into Music Psychology for my final year project.

I need to create an experiment of 500 randomised trials. Each trial will play an audio file from a set of 100 that I have created.

I then need the participant to pick if they think the audio file in each trial is in-tune or out of tune. I would like to do this by having two text boxes labeled “in tune” and “out of tune” which the participant can click for each trial.

Finally I need to be able to see the results of each trail i.e. whether the participant chose “in-tune” or “out of tune”.

I have looked at the “getting started” documentation and such but any advice or tips on getting started would be greatly appreciated as it’s quite overwhelming for a beginner.

Hi @PeterJones, a good place to start is the Stroop tutorial, to gain the fundamentals of building experiments using PsychoPy.

Once you understand that, here is a simple example that does what you want. There are instructions, a loop to present your trials, and an end screen. The interesting part is what goes on in the trialsLoop loop. For each iteration of a loop, we present a fixation, followed by a tone, and then ask the participant to give a rating of the tone, which can be either in tune, or out of tune (In this case, they are just simple tones and always in tune).The loop contains a conditions file, which has all the sounds in a column called “soundIn”. The soundIn variable is passed to the sound component in the trial routine, but the order of tones taken from the conditions file is controlled by the loop, in this case they are randomised. Your ratings given for each tone will be saved automatically, in the columns relating to the soundRating slider component.

To get things working completely, you just need to change the values in the conditions file to contain the relative paths to the sound files you have.

soundExp.psyexp (14.4 KB)
conditions.xlsx (8.2 KB)

1 Like

Thank you very much for taking the time to explain and send me an example. This is extremely helpful!