DragonFly On-Line Manual Pages

Search: Section:  


MIDIPLAY(N)                            N                           MIDIPLAY(N)

NAME

midiplay - tclmidi command to play a MIDI song

SYNOPSIS

midiplay DevID MidiID [repeat]

DESCRIPTION

midiplay 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 VALUES

midiplay 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 ALSO

tclmidi(1), mididevice(n), midiread(n), midimake(n), midistop(n), midiwait(n)

AUTHOR

Mike Durian - durian@boogie.com DragonFly 6.5-DEVELOPMENT January 30, 1994 DragonFly 6.5-DEVELOPMENT

Search: Section: