Closed XX-Yin closed 3 weeks ago
Is AttenuationLeft
required? Or does the workflow have a default value?
If it doesn't have a default value, can you add it to the mandatory fields? (https://github.com/AllenNeuralDynamics/dynamic-foraging-task/pull/503)
Is the process for setting this parameter clearly documented somewhere? Does a positive number mean more attenuation?
Is
AttenuationLeft
required? Or does the workflow have a default value?If it doesn't have a default value, can you add it to the mandatory fields? (#503)
Is the process for setting this parameter clearly documented somewhere? Does a positive number mean more attenuation?
It's read by the bonsai. I assume that it's more difficult (we can achieve it but just more difficult) to set a default parameter in bonsai.
Is
AttenuationLeft
required? Or does the workflow have a default value?If it doesn't have a default value, can you add it to the mandatory fields? (#503)
Is the process for setting this parameter clearly documented somewhere? Does a positive number mean more attenuation?
Yes, AttenuationLeft
is required. It's read by bonsai and the bonsai is more complex to set default value.
I added it to the mandatory fields.
@hagikent was testing this. I assume that the positive number means more attenuation.
@alexpiet What @XX-Yin writes are all correct, thanks @XX-Yin . (although the value seemingly not linearly- or log- correlated with decibel..)
Is the process for setting this parameter clearly documented somewhere?
For the current 447, where already quiet sound is uploaded, it should be always 0. For 446 (and future 447), where round sound is uploaded and attenuated when being played, setting this value would be basically a calibration process, which we are now working on.
Thanks @hagikent, @XX-Yin for getting this figured out and implemented!
@hagikent @alexpiet During testing in 447, I found some rigs are using the right channel of the soundcard instead of the left channel, so I added both AttenuationLeft
and AttenuationRight
to separately control the left and right channels.
sounds good. ideally, connections should be made identical, though! (yes, I saw connections from soundcard to amplifier were somewhat random too...)
@XX-Yin @hagikent The next step is to make sure all the rigs are calibrated correctly. Perhaps during that process we can also move all the rigs to use the left sound channel?
@alexpiet sounds like a plan
Pull Request instructions:
Describe changes:
Updated the bonsai workflow to load the decibel parameter from the![image](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/assets/109394934/b2507cd2-0283-4380-b6b8-2af3e6433d2a)
settings_box#.csv
. Previous:Now:![image](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/assets/109394934/1467f40b-b615-495c-8a71-a936a143aecd)
What issues or discussions does this update address?
Set the decibel from the attenuation parameter, which is more flexible and no need to change the sound waveform.
Describe the expected change in behavior from the perspective of the experimenter
No
Describe any manual update steps for task computers
set
AttenuationLeft
to0
in thesettings_box#.csv
. setAttenuationRight
to0
in thesettings_box#.csv
.Was this update tested in 446/447?