[solved] Using a loop and the sampler tool to play a list of files
I need to present a list of sound files of spoken words chosen randomly from my loop list along with the text for the word. Is playing a file from a list something that the sampler tool can do? Is it something I can do with a bit of script instead?
Comments
ha! I added a [soundfile] column to my loop, with a list of the files i wanted from the pool. Then I poked around in my sketchpad that was already displaying the right text items, and I found the line that read: draw textline 0 0 "[variable_name]"
I went into the sampler script and modified it to read: set sample "[soundfile]"
Easy Peasy.
It might be nice to have the option to enter variable names in the Sampler UI in the future for those of us needing to play lots of sound files for our research.
Thanks for such a great tool.
Hi Jalexander,
Welcome to the forum and thank you for your interest in OpenSesame!
Good to hear that you worked it out!
This should already be possible. Did you try typing in the variable name between square brackets (e.g., [my_variable]) in the "sound file" field of the sampler?
Regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Inactive, marking as solved.
Check out SigmundAI.eu for our OpenSesame AI assistant!