I used to be an active researcher in the field of cognitive science, namely (neuro)cognitive psychology and (neuro)philosophy (because “neuro” is what’s “in” these days!). This web serves as my academic profile, a blog, and a place to display some of my work. Now I have moved to industry, as a data scientist, keeping cogsci as my hobby.
Playing sound with low latency and jitter in OpenSesame
OpenSesame is probably the greatest software for creating experiments for psychology, neuroscience, etc. It has a graphical interface for the most useful components, such as playing a sound file (sampler) or creating own tone (synth). However, the way these components are implemented (using PyGame) may not provide good temporal accuracy (latency), meaning the sound can be delayed, which might not be that bad. What can be very bad (for things like ERPs, etc.) is potentially bad temporal precision (jitter), meaning that the delay may vary from trial to trial. You should read about these matters here.
In this post I want to show how I managed to significantly improve the timing of my auditory stimuli using inline code, PyAudio and ASIO API, even using onboard sound card in Windows 7.
- Existenciální komiks: Stroj 4 Replies
- E-Prime tips and tricks 7 Replies
- Transcranial Magnetic Stimulation as a Research Tool in Cognitive Neuroscience Leave a reply
- Historie FB stránky Kognitivní věda: 2012 IX – XII Leave a reply
- PF 2015 Leave a reply
- Co je to intuice (Wikipedia) 2 Replies
- Analýza dat kognitivně-psychologického experimentu: Posnerova úloha 4 Replies
- Design kognitivně-psychologického experimentu: Posnerova úloha 2 Replies
- Odkrývání skryté pozornosti 3 Replies