Howdy, Stranger!

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

Supported by

[open] Background music stimuli with delay

edited February 2016 in OpenSesame

Hi,
I'm doing an eye-tracking study where participants are asked to read pieces of text while listening to background music. However, what I need is that the music starts playing before the sentences are presented (e.g. 3 seconds before). How do I get this working? When I used the delay function it simply played the entire music file (about 30 seconds) before presenting the sentence.

I want music for e.g. seconds alone (blank screen) and then the sentence + the same music file as played before the delay.

Comments

  • edited 8:02PM

    Hello,

    What did you specify as the duration in the sampler item? Normally it should work if you set it to the time you need to wait (3 seconds in your case). So remove sound and replace it by 3000 and you should be set. Your sound will continue to play until it is over in both cases.

    Does this help?

    Eduard

    Buy Me A Coffee

  • edited 8:02PM

    Thank you! Worked perfectly !
    Ola

  • edited 8:02PM

    Another problem has popped up. The sound file doesn't stop playing, so that when the next sentence appears the experiment simply adds another sound file. So in the end I have four different sound files playing at once.

    Tried stopping the music using ENTER, but doesn't work.

  • edited 8:02PM

    Hi Ola,

    Would setting the stop at feature of the sampler to an appropriate value solve the issue? Say, after 30000 ms.

    Buy Me A Coffee

  • edited 8:02PM

    No cause the participants should be allowed to read the sentence for as long as they want, so needs to be a button they push or canvas change. I only want the music to play during the sentence and not the question.

  • edited 8:02PM

    Currently what I have for my sampler:

    set duration "3000"
    set fade_in "0"
    set pan "0"
    set pitch "1"
    set sample "[Noise]"
    set stop_at "ENTER" .... this doesn't work though
    set volume "1"

  • edited 8:02PM

    Hi Ola,

    Did you use an inline script to control your sound? (if not, see http://osdoc.cogsci.nl/python/sampler/)

    If you have created a sound item just like you would create a canvas, the sound should be stopped simply by your_sound.stop(). You present the sentence in the run phase of your inline_script, after which you enter a while loop (e.g. while button_pressed == false). After the while loop you place the sound.stop() command - I think that should do the trick?

    Cheers,

    Josh

  • edited 8:02PM

    I am currently not. Just using the sampler item as my different noise conditions are the variables of the the experiment. But could I make a inline script like this:
    src = [Noise] and then continue the script?
    Noise includes my four sound conditions

  • I am facing the same problem as Ola. Could anybody please lend us a hand?

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games