Problems with music running in experement
in OpenSesame
Im fairly new to OpenSesame and im having trouble getting music to run throughout a multiple choice quiz. It begins to run and after the first question it starts again from the beginning with the original playing piece still running. Any idea how to stop this?
Many Thanks, and Have a Great Day!
Comments
Hi Aber,
Sounds like you have the start audio (Sampler) in your loop instead of before your loop. If not (i.e you're still having the problem) could you upload your experiment?
Best,
Jarik
You were totally correct, i completely missed that when i was reviewing it. Thank you so much for the reply. If you dont mind could you also help me again. My experiment consists of 3 multiple choice quizzes. Two of which require individual pieces of music to play over the quiz. However when one plays it dose not stop at the end of that sequence or quiz, it continues through the others and ends up overlapping. Could you help me solve this? I just need the music to stop after the quiz in its sequence is complete. I will upload the experiment to try and help clarify.
The file was to large to upload so i just used a screenshot. I hope thats okay.
Hi Aber,
If you start the sound in an inline_script item instead of a Sampler item
You can stop it at the end your experiment with an inline_script containing something like
my_sampler.stop()(assuming you named your samplermy_sampler).Best,
Jarik
@sebastiaan is it technically possible to control an item like a Sampler item in an inline_script item? I tried
items[u'new_sampler'].stop()but it didn't work.Do you mean like placing it here for example? With this coding?
Hi Aber,
I mean replacing the Sampler item you call "HP" in your screenshot with an inline_script item which is basically the same as the example here:
To stop the sound you can use an inline_script item containing something like
my_sampler.stop()on the location in the Overview where you want to stop the sound.Best,
Jarik