1 .\" $NetBSD: midiplay.1,v 1.17 2006/07/02 01:48:51 wiz Exp $
2 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
3 .\" All rights reserved.
5 .\" Author: Lennart Augustsson
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 .\" POSSIBILITY OF SUCH DAMAGE.
33 .Nd play MIDI and RMID files
49 command plays MIDI and RMID files using the sequencer device.
50 If no file name is given it will play from standard input, otherwise
51 it will play the named files.
53 RMID files are Standard MIDI Files embedded in a RIFF container and
54 can usually be found with the
58 additional information in other chunks which are not parsed by
62 The program accepts the following options:
65 specifies the number of the MIDI device used for output (as listed
69 There is no way at present to have
71 map playback to more than one device.
72 The default is device is given by environment variable
75 specifies the name of the sequencer device.
77 list the possible devices without playing anything.
79 show MIDI file meta events (copyright, lyrics, etc).
81 force all channels to play with the single specified
82 program (or instrument patch, range 1-128).
83 Program change events in the file will be suppressed.
84 There is no way at present to have
86 selectively map channels or instruments.
88 specifies that the MIDI file should not be played, just parsed.
89 .It Fl t Ar tempo-adjust
90 specifies an adjustment (in percent) to the tempi recorded in the file.
91 The default of 100 plays as specified in the file, 50 halves every tempo,
95 If the flag is repeated the verbosity increases.
97 play a small sample sound instead of the a file.
100 A file containing no tempo indication will be played as if it specified
101 150 beats per minute.
102 You have been warned.
104 .Bl -tag -width MIDIUNIT
106 the default number of the MIDI device used for output.
110 .Bl -tag -width /dev/music
112 MIDI sequencer device
119 command first appeared in
122 It may take a long while before playing stops when
124 is interrupted, as the data already buffered in the sequencer will contain