MIDIPLAY(N) LOCAL MIDIPLAY(N)NAMEmidiplay — tclmidi command to play a MIDI song
SYNOPSISmidiplay DevID MidiID [repeat]
DESCRIPTIONmidiplay is a tclmidi(1) command that plays a MIDI song through the MIDI
device.
The first argument to midiplay is a MIDI device identifier, as returned
by the midideivce(n) command. The second argument is a song descriptor
as returned by midimake(n) or midiread(n). There may also be an optional
third argument, “repeat”. If “repeat” is specified, the song will replay
once the end is reached.
RETURN VALUESmidiplay returns immediately with the value 1 if the song could be played
or 0 if there is no MIDI device available. midistop(n) must be used to
stop playing of the song and midiwait(n) can be used to block until the
song reaches the end.
SEE ALSOtclmidi(1), mididevice(n), midiread(n), midimake(n), midistop(n),
midiwait(n)AUTHOR
Mike Durian - durian@boogie.com
BSD January 30, 1994 BSD