Table Of Contents

Previous topic

RatingScale Component

Next topic

Static Component

This Page

Quick links

Sound Component

Parameters

name
: string
Everything in a PsychoPy 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 Defining the onset/duration of components for details.
stop :
For sounds loaded from a file leave this blank and then give the Expected duration below for visualisation purposes. See Defining the onset/duration of components 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).
volume
: float or integer
The volume with which the sound should be played. It’s a normalized value between 0 (minimum) and 1 (maximum).

See also

API reference for SoundPyo