Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Using a loop and the sampler tool to play a list of files

edited January 2012 in OpenSesame
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

  • edited 3:28AM

    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.

  • edited 3:28AM

    Hi Jalexander,

    Welcome to the forum and thank you for your interest in OpenSesame!

    Good to hear that you worked it out!

    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.

    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

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • edited 3:28AM

    Inactive, marking as solved.

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.