Sound

Prototype

void Sound( Matrix mFreq, Matrix mDur )

Parameters

Matrix mFreq
A vector specifying the frequency of each tone in hertz.

Matrix mDur
If mDur is a scalar, each tone in mFreq is played for mDur seconds. If mDur is a vector, tone mFreq[i] is played for mDur[i] seconds.

Remarks

This module produces a series of tones.

The module calls the Windows function Beep to produce each tone.

Example
notes = 400 # (2##do(0, 1, 1/12));
run Sound( notes, 0.2 );
See Also

Delay