Avatar

Howdy, Stranger!

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

Supported by

cltsson

About

Username
cltsson
Joined
Visits
114
Last Active
Roles
Member

Comments

  • Makes perfect sense, thanks for your input ! I might as well just try to open the stream between the fixation cross on the stimuli sequence - might just do the trick ! Anyways, appreciate your input ! Thanks
  • Thanks for answering so promptly, it makes perfect sense ! I investigated a bit and calculated the timing of different elements in the script and it seems that this bit : # Listen for sounds until a timeout occurs. start_time = clock.time() print(f…
  • import pyaudio import struct import math import wave import pandas as pd # A low threshold increases sensitivity, a high threshold # reduces it. sound_threshold = 0.0005 # Maximum response time timeout = 2000 FORMAT = pyaudio.paInt16 SHORT_NORMA…
  • Thanks for this, it got me on the right track (well, I think). I think I get what I want now, however I am not sure it's the most optimal way to accomplish this :) I removed the calculation from the variables from the loop and did it "offline&q…
  • Ah thanks for answering! You mean adding a time.sleep() before the break statement ? I'll give that a go !