We can only play sounds as loud as the system volume allows. Typically, a max-volume waveform will have values between -1 and 1. For the non-RC experiments (and really for the RC ones, too, but it's less important), we want to play stimuli at a specific volume. In order to do that, we need to have a reference value by physically measuring the system volume. In the lab, we have a decibel meter which we hold up to headphones that we play a tone through. We then write that value to memory and use it in the inputs to the protocol functions. The details here will of course have to be different, but the concept is the same.
The task:
Create some interface that allows the user to play a 1 second long tone (done by calling pure_tone(1000, 1, 44100)).
On the same interface, have a space to input the measured value.
Save the measured value to somewhere easily accessible across the website (Genie session?)
We can only play sounds as loud as the system volume allows. Typically, a max-volume waveform will have values between -1 and 1. For the non-RC experiments (and really for the RC ones, too, but it's less important), we want to play stimuli at a specific volume. In order to do that, we need to have a reference value by physically measuring the system volume. In the lab, we have a decibel meter which we hold up to headphones that we play a tone through. We then write that value to memory and use it in the inputs to the protocol functions. The details here will of course have to be different, but the concept is the same.
The task:
pure_tone(1000, 1, 44100)
).