ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Inputs and outputs > Speakers > Setting up a speaker > Specifying how long a sound should play for

Specifying how long a sound should play for

In brief

You can specify how long a speaker should play a sound for by selecting one of the three options:

 Play for a certain duration 
 Play continuously 
 Play until the end of the sound file  

Details

Tones and white noise can be played for a specific duration or can simply be played continuously.

Files can be played once, repeated continuously or played for a specific duration. Note that if you specify that a sound file should be played for a duration that is longer than the file, then the file will repeat until this duration has elapsed.

When specifying a duration to play the sound for, the value you enter can use any of the units d (days), h (hours), min (minutes), s (seconds) or ms (milliseconds). You can mix units and also specify decimal values. So, for example, the period of one and a half minutes could be entered as '1.5min' or as '1min 30s'. If you don't specify any units then seconds will be assumed.

You can enter any value from 1 millisecond to 1 day (although it is unlikely that the hardware will be able to accurately play a sound for just 1 millisecond).

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0210