Annotation of src/usr.bin/midiplay/midiplay.1, Revision 1.4
1.4 ! aaron 1: .\" $OpenBSD: midiplay.1,v 1.3 1999/06/05 01:21:53 aaron Exp $
1.1 niklas 2: .\" $NetBSD: midiplay.1,v 1.3 1998/08/13 18:26:36 augustss Exp $
3: .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
4: .\" All rights reserved.
5: .\"
6: .\" Author: Lennart Augustsson
7: .\"
8: .\" Redistribution and use in source and binary forms, with or without
9: .\" modification, are permitted provided that the following conditions
10: .\" are met:
11: .\" 1. Redistributions of source code must retain the above copyright
12: .\" notice, this list of conditions and the following disclaimer.
13: .\" 2. Redistributions in binary form must reproduce the above copyright
14: .\" notice, this list of conditions and the following disclaimer in the
15: .\" documentation and/or other materials provided with the distribution.
16: .\" 3. All advertising materials mentioning features or use of this software
17: .\" must display the following acknowledgement:
18: .\" This product includes software developed by the NetBSD
19: .\" Foundation, Inc. and its contributors.
20: .\" 4. Neither the name of The NetBSD Foundation nor the names of its
21: .\" contributors may be used to endorse or promote products derived
22: .\" from this software without specific prior written permission.
23: .\"
24: .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
25: .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26: .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1.3 aaron 27: .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
1.1 niklas 28: .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29: .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30: .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31: .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32: .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33: .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34: .\" POSSIBILITY OF SUCH DAMAGE.
35: .\"
1.4 ! aaron 36: .Dd August 12, 1998
1.1 niklas 37: .Dt MIDIPLAY 1
38: .Os
39: .Sh NAME
40: .Nm midiplay
41: .Nd play MIDI files
42: .Sh SYNOPSIS
1.2 aaron 43: .Nm midiplay
1.1 niklas 44: .Op Fl d Ar devno
45: .Op Fl f Ar file
46: .Op Fl l
47: .Op Fl m
48: .Op Fl t Ar tempo
49: .Op Fl v
50: .Op Fl x
51: .Op Ar file ...
52: .Sh DESCRIPTION
1.3 aaron 53: The
1.1 niklas 54: .Nm
55: command plays MIDI files using the sequencer device.
56: If no file name is given it will play from standard input, otherwise
57: it will play the named files.
58: .Pp
59: The program accepts the following options:
60: .Bl -tag -width Fl
61: .It Fl d Ar devno
1.2 aaron 62: Specifies the number of the MIDI device used for output (as listed
1.1 niklas 63: by the
64: .Fl l
65: flag). The default is device 0.
66: .It Fl f Ar file
1.2 aaron 67: Specifies the name of the sequencer device.
1.1 niklas 68: .It Fl l
1.2 aaron 69: List the possible devices without playing anything.
1.1 niklas 70: .It Fl m
1.2 aaron 71: Show MIDI file meta events (copyright, lyrics, etc).
1.1 niklas 72: .It Fl q
1.2 aaron 73: Do not play the MIDI file, just parse it.
1.1 niklas 74: .It Fl t Ar tempo
1.2 aaron 75: Specifies the tempo. Default is 100.
1.1 niklas 76: .It Fl v
1.2 aaron 77: Be verbose. If the flag is repeated the verbosity increases.
1.1 niklas 78: .It Fl x
1.2 aaron 79: Play a small sample sound.
1.1 niklas 80: .Sh FILES
81: .Bl -tag -width /dev/music
82: .It Pa /dev/music
83: MIDI sequencer device
84: .El
85: .\".Sh ENVIRONMENT
86: .\".Bl -tag -width MIDIDEVICE
87: .\".It Pa AUDIOCTLDEVICE
88: .\"the audio control device to use.
89: .\".El
90: .Sh SEE ALSO
91: .Xr midi 4
92: .Sh HISTORY
93: The
94: .Nm
95: command first appeared in NetBSD 1.4.
96: .Sh BUGS
97: It may take a long while before playing stops when
98: .Nm
99: is interrupted since the sequencer and MIDI buffers will still
100: be emptied.