Howdy, Stranger!

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

Supported by

[open] How to presented a synth tone midway through a visual refresh.

edited November 2012 in OpenSesame

Hi all,

Sorry about the dodgy title. I'll attempt to clarify.

Let's use the following scenario. If I'm using a 60Hz monitor the refresh rate is around 16.6ms. Let's say, for example, I wanted to present a 7ms tone after 10ms of a sketchpad presentation (which is held to the screen for one frame, i.e. 16.6ms) how would I go about getting this degree of control?

At the moment by placing the tone before a sketchpad the tone is presented at the exact beginning of the following sketchpad presentation but I ideally would desire a little more flexibility. I'm guessing an inline script may need to be used but I'm quite unsure of how to go about it.

Thanks,

Boo.

Comments

  • edited 10:56PM

    Hi Boo,

    In theory, you could simply specify a 10ms duration in a sketchpad and have it followed by a synth item. But ... I'm afraid that the temporal precision of auditory stimuli is not sufficient to realistically get this type of temporal control. A useful benchmark can be found on the Expyriment wiki, but the results from that test are probably better than you would get with most (cheap) hardware.

    So the bottom line is that presenting auditory stimuli with millisecond precision control will be tricky. I'm not saying it's impossible (probably not), but it will require good hardware, a good Python module (not PyGame, which is used now), and lots of testing! A bit disappointing, I know.

    Cheers!
    Sebastiaan

  • edited 10:56PM

    Thanks for the prompt reply.

    I was wondering if there might be a cheeky way around this issue in the following fashion. Would it be possible to create a, say, 10ms synth tone with volume at zero, present that and have it followed with the 7ms tone with actual volume during the same sketchpad?

    That way we'd get the 7ms tone effectively presented 10ms into the 16.6ms sktechpad. Does that make sense?

    Boo.

  • edited 10:56PM

    Hi Boo,

    That's a clever solution, but you still can't be sure of the timing: the benchmark Sebastiaan is referring to shows a latency of max. 20 ms, with a jitter of about 5 ms. So you still wouldn't be able to control the onset of your 'silent tone' and therefore you will not be able to precisely present the audible part of your tone :(

    Good luck, though!

    Edwin

  • edited 10:56PM

    I thought about it for a bit, and one way I can think of to get millisecond precision sound playback is by connecting a simple sound device to the serial port. For example, an Arduino-based sound generator, as here: http://arduino.cc/en/Tutorial/Tone

    I realize that this is a hassle to make, of course, unless you happen to have a good technical department at the uni. But it's an option, and likely to give more temporal accuracy than you would ever get using the soundcard of your PC.

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