The-Lammert-Lab / TinnitusExpWebApp.jl

GNU Affero General Public License v3.0
0 stars 0 forks source link

Add dB calibration interface #84

Closed nelson-barnett closed 3 weeks ago

nelson-barnett commented 2 months ago

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: