Howdy, Stranger!

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

Supported by

Question on duration setting in sampler item

Hi,


How we can make a simple music-rating task without codes?

In the task, 1,000ms fixation by sketchpad is presented, followed by a music stimulus by sampler. After finishing the music playing, a rating task for music is shown by form_multiple_choice.

When "Duration" in sampler was set as "sound", the sequence of task doesn't proceed the next rating task.


Thanks

Comments

  • Hi @rrr

    I'm not sure what's happening from the information you provided, but a few things you can check:

    • Make sure you are using the latest version of OpenSesame.
    • What operating system are you on (Windows, Mac, Linux)?
    • Are all your audio files the same length? If so, try setting a fixed sampler duration (e.g., 3000 ms) instead of 'sound'.
    • If it simply takes a while before moving to the rating screen, make sure your audio files don’t have silence at the end.
    • Check that all audio files are in the same format and sample rate (e.g., .wav, 44.1kHz).
    • Try switching the sound backend (e.g., legacy, expyriment, psychopy).

    If none of that works, feel free to share your .osexp file so we can take a closer look.

    Claire

  • rrrrrr
    edited May 14

    Hi, @cvanbuck

    Thank you for the information.

    The sequence I want to make works when the sampler duration is fixed such as 3,000ms instead of "sound". I know this can be applied for the task, but I'm just wondering how we can move from music to rating screen based on the length of music. For instance, if the length of music is 3min, the next stimulus screen such as rating appears just after 3 min along with sound-playing end. Is it possible by sampler item?

    Another question on updating Opensesame. When I've tried to update my Opensesaem on macOS (ver 4.0.24), it says as below.

    # - opensesame-plugin-media-player-mpy from 0.2.2 to 0.2.3
    !pip install opensesame-plugin-media-player-mpy --upgrade --no-deps --pre
    zsh:1: command not found: pip
    

    Thanks

  • Hi @rrr

    Here’s a minimal working example where the rating screen appears right after the sound ends, using 'sound' as the sampler duration. It should behave as you intend, so maybe compare it with your setup to spot any differences.

    As for the update issue: try running the update command directly from the Python console inside OpenSesame (Menu → View → Show console).

    Let me know how it goes,

    Claire

  • rrrrrr
    edited May 15

    Hi @cvanbuck

    Thank you for the example. It works as I intend to, but the rating task by form item is very slow (when I try to chose one from three options, the check mark appears after a while).

    The example you show me is what I already tried to (setting "sound" for duration in sampler), but it still doesn't work for my music task. Is there any possible causes?


    As for the updating, it was solved by your instruction!

    Thanks

Sign In or Register to comment.