Howdy, Stranger!

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

Supported by

Audio-low-latency plugin help needed !

Hi,

I'm actually doing an experiment with the audio-low-latency plugin on OpenSesame (which is a great plugin by the way). I want to play a sound file and to pause/unpause it on keypress. So far so good. My problem is that I want to store the timestamp of each pause/unpause in an OpenSesame variable from an inline script but I don't know how to do that...

For now I was only able to print the timestamps in the OpenSesame console by inserting prints directly in the audio-low-latency-start-play script.

Any help would be greatly appreciated !

Comments

  • Hi @Jib,

    I am not familiar with this plugin, but if you can insert print statements, can't you also access the logger programmatically? See here for the commands:

    Eduard

    Buy Me A Coffee

  • Hi Eduard,

    Thanks for your quick reply, actually I thinked about this solution and actually I'm able to wrote the different timestamps of the play/pause input but I would need theese time stamps instantly to send them as EEG trigger.

    In the audio_low_latency_play.py, there's a check_keys function where there's :

    key1, time1 = keyboard.get_key()

    My idea was to get that time1 variables in my OpenSesame inline script directly.

Sign In or Register to comment.