I’m experiencing a loud crackling and distorted sound presentation in my study stimuli. It only happens half the time–the other half of the time, the sound is perfect. My sound files are all .wav and super tiny in size.
Example code is below, and I’m running Mac OS 10.15.4 on a new Macbook Pro and Psychpy 2020.1.2.
for frameN in range(360):
if frameN == 0:
nextFlip = win.getFutureFlipTime(clock='ptb')
emotion_voice_object.play(when=nextFlip)
emotion_face_object.draw()
elif 1 <= frameN <= 41:
emotion_face_object.draw()
elif 42 <= frameN <= 71:
neutral_face_object.draw()
elif 72 <= frameN <= 113:
emotion_face_object.draw()
elif 114 <= frameN <= 143:
neutral_face_object.draw()
elif 144 <= frameN <= 185:
if frameN == 180: # 3000ms after onset of face-voice pair
nextFlip = win.getFutureFlipTime(clock='ptb')
startle_probe_object.play(when=nextFlip)
emotion_face_object.draw()
elif 186 <= frameN <= 215:
neutral_face_object.draw()
elif 216 <= frameN <= 257:
emotion_face_object.draw()
elif 258 <= frameN <= 287:
neutral_face_object.draw()
elif 288 <= frameN <= 329:
emotion_face_object.draw()
elif 330 <= frameN:
neutral_face_object.draw()
win.flip()
Thanks in advance for any guidance!