Create a sound object, from one of many ways.
| Parameters : |
secs: duration (only relevant if the value is a note name or a frequency value)
|
|---|
fades out the sound (when playing) over mSecs. Don’t know why you would do this in psychophysics but it’s easy and fun to include as a possibility :)
Get’s the duration of the current sound in secs
Returns the current volume of the sound (0.0:1.0)
Starts playing the sound on an available channel. If no sound channels are available, it will not play and return None.
This runs off a separate thread i.e. your code won’t wait for the sound to finish before continuing. You need to use a psychopy.core.wait() command if you want things to pause. If you call play() whiles something is already playing the sounds will be played over each other.
Sets the current volume of the sound (0.0:1.0)
Stops the sound immediately