I’m trying to play sound from either the left or the right side / speaker / headphone side. So far, I haven’t found a solution to this problem. I can play sound but I can’t adjust it, so that the tone is lateralized.
from __future__ import division
from __future__ import print_function
logging.console.setLevel(logging.DEBUG) # get messages about the sound lib as it loads
from psychopy import sound, core
print('Using %s (with %s) for sounds' % (sound.audioLib, sound.audioDriver))
alert = sound.Sound(700, secs=0.12, sampleRate=44100, stereo=True, hamming=True, volume=0.8)
alert.play()
core.wait(0.4)
core.quit()
Thanks!