Debian Codegraph @

man/pmidi.1

raw
1 \" t
2 .TH PMIDI 1 "Dec 20 2003"
3 .SH NAME
4 pmidi \- A midi file player for ALSA.
5 .SH SYNOPSIS
6 .B pmidi
7 [
8 .BI \-p client:port
9 ]
10 [
11 .B \-l
12 ]
13 [
14 .BI -d delay
15 ]
16 .IR file \|.\|.\|.
17 .SH DESCRIPTION
18 The
19 .B pmidi
20 command reads in the specified midi files and plays them through
21 the ALSA sequencer.
22 You can specify on the command line which sequencer port that
23 you wish to use.
24 Use the
25 .B \-l
26 option to get a list of possible sequencer ports for your machine.
27 .SS OPTIONS
28 .TP
29 .BI \-p client:port
30 Specify the ALSA port to send the midi file to.
31 .TP
32 .B \-l
33 List the possible output ports that could be used.
34 .TP
35 .BI \-d delay
36 Delay after song ends.
37 This is used to prevent the last note of a song being chopped off early.
38 The default is two seconds.
39 .SS "Port numbers"
40 You can specify client:port numbers in the ALSA_OUTPUT_PORTS environment
41 variable.
42 You can also supply a comma (or space if quoted correctly)
43 separated list of client:port numbers.
44 This will allow you to play midi files that use more than 16 channels.
45 .SS Examples
46 .IP
47 pmidi song.mid song2.mid
48 .br
49 pmidi \-p "64:0, 64:1" song.mid
50 .SH "TROUBLE SHOOTING"
51 Before you start you need to have
52 .SM ALSA
53 installed and configured correctly.
54 This man page cannot cover all general
55 .SM ALSA
56 topics, but here are a few things to check when things do not seem to be
57 working.
58 .SS "Checking ALSA"
59 .IP 1. 4
60 First check that the correct sequencer modules are
61 loaded for your sound card:
62 .RS
63 .IP - 3
64 For a card with an external Midi connection,
65 you need to load snd-seq-midi.
66 .IP -
67 For the OPL2/3 internal synthesiser
68 you need to load snd-synth-opl3.
69 .IP -
70 For the AWE32/64 internal synthesiser
71 you need to load snd-synth-emu8000.
72 .IP -
73 For the SB Live! internal synthesiser
74 you need to load snd-synth-emu10k1.
75 .IP -
76 (Let me know of any more)
77 .RE
78 .IP 2a
79 If you have an AWE32/64 or SB Live! you will need to load the
80 sounds with sfxload in the same way as for the standard kernel
81 drivers.
82 .IP 2b
83 If you have the OPL3 FM synthesiser you will have to load the
84 FM instruments with sbiload. See note below.
85 .IP 3.
86 Make sure that the synth in the mixer is turned
87 up and unmuted if appropriate.
88 .SS "Before use"
89 Because you may have more than one sound card and each sound
90 card may have several MIDI connections, you have to tell pmidi
91 which one to use.
92 .P
93 First find out what the possibilities are for your system:
94 .P
95 If you run:
96 .RS
97 pmidi \-l
98 .RE
99 it will give you a list of the possible devices that it
100 can play to. On my system I get:
101 .TS
102 tab(;);
103 lb lb lb
104 l l l.
105 Port;Client name;Port name
106 64:0;Rawmidi 0 - EMU10K1 MPU-401 (U;EMU10K1 MPU - 401 (UART)
107 65:0;Emu10k1 WaveTable;Emu10k1 Port 0
108 65:1;Emu10k1 WaveTable;Emu10k1 Port 1
109 65:2;Emu10k1 WaveTable;Emu10k1 Port 2
110 65:3;Emu10k1 WaveTable;Emu10k1 Port 3
111 128:0;FLUID Synth (28152);Synth input port (28152)
112 129:0;Client-129;TiMidity port 0
113 129:1;Client-129;TiMidity port 1
114 .TE
115 .P
116 Any of the port numbers in the first column can be used with pmidi. In
117 the example above the first one is the external Midi port, the next
118 four are the internal wave table synthesiser.
119 Then there are two software synthesisers running,
120 FluidSynth (http://www.fluidsynth.org) and
121 Timididy.
122 .P
123 If you don't see anything listed then check that the correct ALSA modules
124 are loaded as in the section "Checking ALSA".
125 .SH ENVIRONMENT
126 .TP \w'ALSA_OUTPUT_PORTS'u+3n
127 .SB ALSA_OUTPUT_PORTS
128 Port to use in playing midi file.
129 .SH "SEE ALSO"
130 playmidi(1)
131 .br
132 .SH AUTHOR
133 .nf
134 Steve Ratcliffe <[email protected]>
135 .fi