Variable volume in OSWeb sampler / file pool URL
I'd like to have a loop at the beginning of an experiment where the participant can adjust the volume to their liking, then have this applied to all samples. My idea is to set an initial value for volume in vars, then the participant can adjust this up and down via keypresses, playing a test sound in between for feedback.
This volume value will then be applied to all subsequent samples.
vars.vol = 0.5;
in the Prepare tab and a sampler with an example WAV file and changed
set volume "[vol]"
in the script view.
This pops up an alert "TypeError: console.warning is not a function"
Going into the console and tracking down the error, the code for this is:
console.warning("Unable to apply volume or gain",t)
So, it would be great if anyone had any pointers for either:
- Variable volume on samplers in OSWeb (though maybe it's just not supported yet, which is fine of course!)