version 1.14, 2009/08/16 09:41:08 |
version 1.15, 2010/02/13 13:45:29 |
|
|
.Nd play MIDI files |
.Nd play MIDI files |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm midiplay |
.Nm midiplay |
.Op Fl glmqvx |
.Op Fl gmqvx |
.Op Fl d Ar devno |
.Op Fl f Ar device |
.Op Fl f Ar file |
|
.Op Fl t Ar tempo |
.Op Fl t Ar tempo |
.Op Ar |
.Op Ar |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm |
.Nm |
command plays MIDI files using the sequencer device. |
command plays MIDI files. |
If no file name is given it will play from standard input; |
If no file name is given it will play from standard input; |
otherwise it will play the named files. |
otherwise it will play the named files. |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width "-d devnoXX" |
.Bl -tag -width Ds |
.It Fl d Ar devno |
.It Fl f Ar device |
Specifies the number of the MIDI device used for output (as listed |
Specifies the name of the |
by the |
.Xr sndio 7 |
.Fl l |
MIDI device. |
flag). |
|
The default is device 0. |
|
.It Fl f Ar file |
|
Specifies the name of the sequencer device. |
|
.It Fl g |
.It Fl g |
Send a |
Send a |
.Dq General MIDI On |
.Dq General MIDI On |
system exclusive message to the device. |
system exclusive message to the device. |
.It Fl l |
|
List the possible devices without playing anything. |
|
.It Fl m |
.It Fl m |
Show MIDI file meta events (copyright, lyrics, etc.). |
Show MIDI file meta events (copyright, lyrics, etc.). |
.It Fl q |
.It Fl q |
|
|
.It Fl x |
.It Fl x |
Play a small sample sound. |
Play a small sample sound. |
.El |
.El |
.Sh FILES |
|
.Bl -tag -width /dev/music |
|
.It Pa /dev/music |
|
MIDI sequencer device |
|
.El |
|
.\".Sh ENVIRONMENT |
|
.\".Bl -tag -width MIDIDEVICE |
|
.\".It Pa AUDIOCTLDEVICE |
|
.\"the audio control device to use. |
|
.\".El |
|
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr midi 4 |
.Xr midicat 1 , |
|
.Xr midi 4 , |
|
.Xr sndio 7 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm |
.Nm |
command first appeared in |
command first appeared in |
.Nx 1.4 . |
.Nx 1.4 . |
.Sh BUGS |
|
It may take a long while before playing stops when |
|
.Nm |
|
is interrupted since the sequencer and MIDI buffers will still |
|
be emptied. |
|