Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.2 KB

sound.rst

File metadata and controls

37 lines (26 loc) · 1.2 KB

Sound Component

Parameters

name : string

Everything in a experiment needs a unique name. The name should contain only letters, numbers and underscores (no punctuation marks or spaces).

start : float or integer

The time that the stimulus should first play. See startStop for details.

stop :

For sounds loaded from a file leave this blank and then give the Expected duration below for visualisation purposes. See startStop for details.

sound :

This sound can be described in a variety of ways:

  • a number can specify the frequency in Hz (e.g. 440)
  • a letter gives a note name (e.g. "C") and sharp or flat can also be added (e.g. "Csh" "Bf")
  • a filename, which can be a relative or absolute path (mid, wav, and ogg are supported).

Playback

How should stimulus play? Speed, volume, etc.

volume : float or integer

The volume with which the sound should be played. It's a normalized value between 0 (minimum) and 1 (maximum).

hamming window : bool

Should there be a hamming window between stimuli?

API reference for ~psychopy.sound.SoundPyo