This file is indexed.

/usr/share/doc/HOWTO/ja-html/MIDI-HOWTO-7.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>The Linux MIDI-HOWTO : MIDI $B%G%P%$%9$N@_Dj(B</TITLE>
 <LINK HREF="MIDI-HOWTO-8.html" REL=next>
 <LINK HREF="MIDI-HOWTO-6.html" REL=previous>
 <LINK HREF="MIDI-HOWTO.html#toc7" REL=contents>
</HEAD>
<BODY>
<A HREF="MIDI-HOWTO-8.html">$B<!$N%Z!<%8(B</A>
<A HREF="MIDI-HOWTO-6.html">$BA0$N%Z!<%8(B</A>
<A HREF="MIDI-HOWTO.html#toc7">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s7">7.</A> <A HREF="MIDI-HOWTO.html#toc7">MIDI $B%G%P%$%9$N@_Dj(B</A></H2>

<P>MIDI $B%G%P%$%9$O%5%&%s%I%+!<%I$H0lBN$K$J$C$F$$$k$3$H$b$"$l$P!"(B
$BFHN)$7$?%G%P%$%9$K$J$C$F$$$k$3$H$b$"$j$^$9!#(B
$B30It(B MIDI $B%$%s%?%U%'!<%9$O!"%7%j%"%k%]!<%H$+(B USB $B%]!<%H$N$I$A$i$+$K(B
$B<h$jIU$1$k$3$H$,$G$-$^$9!#(B</P>
<P>$B:G=i$K$d$k$Y$-$G$"$j!"$J$*$+$D!V:G$b=EMW$J!W$3$H$O!"(B
$B$*;H$$$N%+!<%I$,%5%]!<%H$5$l$F$$$k$+$I$&$+%A%'%C%/$9$k$3$H$G$9(B!</P>
<P>
<A HREF="http://www.alsa-project.org/soundcards.php3">http://www.alsa-project.org/soundcards.php3</A></P>
<P>
<A HREF="http://www.4front-tech.com/osshw.html">http://www.4front-tech.com/osshw.html</A></P>
<P>MIDI $B%G%P%$%9$N@_DjK!$O!"(BLinux $B%G%#%9%H%j%S%e!<%7%g%s$K$h$C$FMM!9$G$9!#(B
$B$h$/%5%]!<%H$5$l$F$$$k%+!<%I$@$H!"(BOS $B$N%$%s%9%H!<%k;~$K@_Dj$G$-$^$9!#(B</P>
<P>($BLuCm(B: 2.4 $B0JA0$N(B)Linux $B%+!<%M%k$K$O(B OSS $B%I%i%$%P$,!"(B2.5 $B$N%+!<%M%k$K$O(B
ALSA $B%I%i%$%P$,4^$^$l$F$$$^$9!#$?$$$F$$$N%G%#%9%H%j%S%e!<%7%g%s$K$O(B
($B$*$b$K%5%&%s%I%+!<%I8~$1$N(B) $B@_Dj%D!<%k$,MQ0U$5$l$F$$$^$9!#(B
$B$G$b!"%5%&%s%I%+!<%I$K$D$$$F$$$k(B MIDI $B%]!<%H$r;H$&$N$J$i!"(B
MIDI $B%]!<%H8~$1$N@_Dj$r$9$kI,MW$,$"$k$G$7$g$&!#(BRed Hat $B$G$O(B sndconfig $B$r!"(B
SuSE $B$G$O(B yast $B$r!"(BMandrake $B$G$O(B DrakConf $B$r;H$$$^$9!#(B</P>
<P>$B>e5-$N%D!<%k$G$*;H$$$N(B MIDI $B%$%s%?%U%'!<%9$r@_Dj$G$-$J$$!"$b$7$/$O(B
$BLdBj$,$"$k>l9g$O!"<!$NCJ3,$rF'$`$Y$-$G$9!#(B</P>
<P>lsmod $B$G(B MIDI $B4X78$N%b%8%e!<%k$,I=<($5$l$^$9$+(B? OSS $B%Y!<%9$N(B
$B%7%9%F%`$G$NE57?E*$J=PNO$O$3$N$h$&$J$b$N$G$9!#(B</P>
<P>
<HR>
<PRE>
[root@beatbox]# lsmod
Module                  Size  Used by
lockd                  32208   1  (autoclean)
sunrpc                 54640   1  (autoclean) [lockd]
autofs                  9456   2  (autoclean)
usb-ohci               12624   0  (unused)
usbcore                43632   1  [usb-ohci]
hisax                 470096   0  (autoclean) (unused)
isdn                  104208   0  (autoclean) [hisax]
slhc                    4544   0  (autoclean) [isdn]
eepro100               16144   1  (autoclean)

#---- Soundcard modules
    opl3                   11376   2 
    mad16                   7968   1 
    ad1848                 16848   1  [mad16]
    sb                     34752   1  [mad16]
    uart401                 6384   1  [mad16 sb]
    sound                  58368   0  [opl3 mad16 ad1848 sb uart401]

soundlow                 464   0  [sound]
soundcore               2800   6  [sb sound]
nls_cp437               3952   2  (autoclean)
vfat                    9408   1  (autoclean)
fat                    30432   1  (autoclean) [vfat]
ide-scsi                7664   0 
</PRE>
<HR>
</P>

<P>mpu401, olp3, uart401, oss $B$rC5$7$F$/$@$5$$!#(B</P>
<P>USB $B%G%P%$%9$r$*;H$$$J$i!"(BUSB $B%b%8%e!<%k$,$"$k$+$I$&$+%A%'%C%/$9$k$N$r(B
$BK:$l$:$K!#(B</P>
<P>$B@_Dj$r%A%'%C%/$9$k$K$O!"(Bsndstat $B%U%!%$%k$r(B cat $B$7$^$9(B:</P>
<P>
<HR>
<PRE>
[root@beatbox]# cat /dev/sndstat 
OSS/Free:3.8s2++-971130
Load type: Driver loaded as a module
Kernel: Linux mega 2.2.17-21mdk #1 Thu Oct 5 13:16:08 CEST 2000 i686
Config options: 0

Installed drivers: 

Card config: 

Audio devices:
0: MAD16 WSS (82C930) (DUPLEX)

Synth devices:
0: Yamaha OPL3

Midi devices:
0: Mad16/Mozart

Timers:
0: System clock

Mixers:
0: MAD16 WSS (82C930)
</PRE>
<HR>
</P>

<P>$B$3$3$G(B MIDI $B%G%P%$%9$,(B mad16 $B$R$H$D$G$"$k$3$H$,$o$+$j$^$9!#>e5-(B lsmod $B$N=PNO$K$b(B
$B%j%9%H%"%C%W$5$l$F$$$^$7$?$M!#(B</P>
<P>$B$b$7(B MIDI $B4XO"$N%G%P%$%9$,8+Ev$i$J$1$l$P!"(B/etc/modules.conf $B%U%!%$%k$N(B
$BFbMF$r%A%'%C%/$7$F$_$^$7$g$&!#(B</P>
<P>
<HR>
<PRE>
[root@beatbox]# cat /etc/modules.conf
alias net-pf-4 ipx 
pre-install pcmcia_core /etc/rc.d/init.d/pcmcia start 
alias usb-interface usb-ohci 
alias parport_lowlevel parport_pc 
alias block-major-11 scsi_hostadapter 
pre-install plip modprobe parport_pc ; echo 7 > /proc/parport/0/irq 
alias scsi_hostadapter ide-scsi 
alias eth0 eepro100 
alias eth1 hisax 

#---- Soundcard
    alias sound-slot-0 mad16 
    options sound dmabuf=1 
    alias midi opl3 
    options opl3 io=0x388 
    options sb support=1 
    options mad16 io=0x530 irq=5 dma=0 dma16=1 mpu_io=0x300 mpu_irq=7 joystick=1
</PRE>
<HR>
</P>

<P>MIDI $B$N%b%8%e!<%k$,%+!<%M%k$K%m!<%I$5$l$F$$$k$+$I$&$+$r!"(B/proc/modules $B$r(B
$B=PNO$7$F%A%'%C%/$7$^$9!#(B</P>
<P>
<HR>
<PRE>
[root@mega /proc]# cat modules
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial(auto)

#---- MIDI device
    0300-0303 : MPU-401 UART

0376-0376 : ide1
0388-038b : Yamaha OPL3
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0530-0533 : MAD16 WSS config
0534-0537 : MAD16 WSS
de00-de1f : Intel Speedo3 Ethernet
f000-f007 : ide0
f008-f00f : ide1
</PRE>
<HR>
 </P>

<P>$B$"$J$?$N$H$3$m$G$b!">e5-$K;w$?7k2L$K$J$C$?$O$:$G$9!#$=$&$G$J$1$l$P!"(B
MIDI $B%I%i%$%P$r%$%s%9%H!<%k$9$kI,MW$,$"$j$^$9!#(B</P>
<P>ALSA 0.5x $B%I%i%$%P$r;H$&$N$O$d$a$?$[$&$,$$$$$G$9$,!"(B
$B$I$&$7$F$b;H$&M=Dj$,$"$k$J$i!"(B
$B2<5-%j%s%/$GF~<j$G$-$k(B Valentijn Sessink $BCx$N(B
Alsa-sound-mini-HOWTO $B$r$h$/FI$`$3$H$r$*$9$9$a$7$^$9!#(B</P>
<P>
<A HREF="http://www.tldp.org/HOWTO/Alsa-sound.html">http://www.tldp.org/HOWTO/Alsa-sound.html</A></P>
<P>$B%P!<%8%g%s(B 0.9 $B$h$j?7$7$$(B ALSA $B$r;H$&$3$H$r!"6/$/?d>)$7$^$9!#(B
0.9 $B$h$j8e$N(B ALSA $B%I%i%$%P8~$1$K$O!"(BMadhu Maddy $BCx$N(B ALSA-HOWTO $B$r(B
$B$h$/FI$`$H$h$$$G$9!#(B</P>
<P>
<A HREF="http://www.alsa-project.org/alsa-doc/alsa-howto/">http://www.alsa-project.org/alsa-doc/alsa-howto/</A></P>

<H2><A NAME="ss7.1">7.1</A> <A HREF="MIDI-HOWTO.html#toc7.1">ALSA 0.9 $B$N<jAa$$%$%s%9%H!<%kK!(B</A>
</H2>

<P>$B0J2<$O!"(BALSA 0.9 $B%I%i%$%P$H!"$?$$$F$$$N(B MIDI $B%"%W%j%1!<%7%g%s$,(B
$BI,MW$H$9$k%i%$%V%i%j$r$H$F$b<jAa$/%$%s%9%H!<%k$9$k<j=g$G$9!#(B</P>
<P>
<HR>
<PRE>
[root@beatbox] # tar jxvf alsa-driver....tar.bz2
[root@beatbox] # cd alsa-driver.....
[root@beatbox] # ./configure

messages - no errors

[root@beatbox] # make

messages - no errors

[root@beatbox] # make install

messages - no errors

[root@beatbox] # ./snddevices
</PRE>
<HR>
</P>

<P>$B<!$K!"(B/etc/modules.conf $B$rJT=8$9$kI,MW$,$"$j$^$9!#$b$7$/$O!"(B
$B%G%#%9%H%j%S%e!<%7%g%s$K$h$C$F$O!"(Bmodules $B%G%#%l%/%H%j$K$"$k(B
ALSA $B8~$1%U%!%$%k$rJT=8$9$kI,MW$,$"$j$^$9!#(B</P>
<P>$BB>$K$b!"(BMIDI $B0J30$N%G%P%$%98~$1$N%(%s%H%j$,$"$k$+$b$7$l$J$$$N$G!"(B
$B%U%!%$%k$rJT=8$9$k:]$OCm0U$7$F$/$@$5$$!#(B
$BE57?E*$J%7%9%F%`$K$O!"%U%!%$%kCf$K8E$$(B ALSA $B$+(B OSS $B$N@_Dj$,$"$k$+$b$7$l$J$$$N$G!"(B
$B>C$9$+!"%3%a%s%H%"%&%H$9$kI,MW$,$"$j$^$9!#(B</P>
<P>$B0J2<$O(B modules.conf $B%U%!%$%kCf$N!"E57?E*$J(B OSS $B8_49(B ALSA $B$N@_Dj2U=j$G$9!#(B</P>
<P>
<HR>
<PRE>
alias char-major-116 snd
alias char-major-14 soundcore

alias snd-card-0 (MIDI/$B%5%&%s%I%+!<%I(B)
alias sound-slot-0 snd-card-0

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-12 snd-pcm-oss
</PRE>
<HR>
</P>

<P>(MIDI/$B%5%&%s%I%+!<%I(B) $B$N%(%s%H%j$r$*;H$$$N%+!<%I$N$b$N$KJQ99$7$^$9!#(B
$B$3$3$N>pJs$ODL>o!"(BALSA $B$N%&%'%V%5%$%H$G8+$D$+$j$^$9!#(B</P>
<P>ALSA $B%I%i%$%P$r%$%s%9%H!<%k$7$?$i!"<!$K(B ALSA $B%Y!<%9$N%W%m%0%i%`$KI,MW$J(B
$B%X%C%@$H%i%$%V%i%j%U%!%$%k$r%$%s%9%H!<%k$9$kI,MW$,$"$j$^$9!#$3$l$O!"(B
alsa-libs $B%Q%C%1!<%8$K4^$^$l$F$$$^$9!#(B</P>
<P>
<HR>
<PRE>
[root@beatbox] # tar jxvf alsa-libs....tar.bz2
[root@beatbox] # cd alsa-libs.....
[root@beatbox] # ./configure

messages - no errors

[root@beatbox] # make

messages - no errors

[root@beatbox] # make install
</PRE>
<HR>
</P>

<P>$B$*;H$$$N%7%9%F%`$N@_Dj$,40N;$7$^$7$?(B :)</P>
<P>$B4JC1$J(B C $B$N%W%m%0%i%`$G!"@_Dj$,$&$^$/$$$C$?$+%A%'%C%/$G$-$^$9!#(B
$B%3%s%Q%$%k$H<B9T$,$G$-$?$i!"%7%9%F%`$O$&$^$/$$$C$F$$$k$O$:$G$9!#(B</P>
<P>
<HR>
<PRE>
// Compile this test program like so: gcc alsatest.c -o alsatest -lasound

#include &lt;stdio.h>
#include &lt;alsa/asoundlib.h>

int main (int argc, char *argv[])
{
  snd_seq_t *seq_handle;

  if (snd_seq_open(&amp;seq_handle, "hw", SND_SEQ_OPEN_DUPLEX, 0) &lt; 0) {
    fprintf(stderr, "Error opening ALSA sequencer.\n");
    exit(1);
  }

printf("The ALSA libraries are installed.\n");
return 0;
}

</PRE>
<HR>
</P>


<H2><A NAME="ss7.2">7.2</A> <A HREF="MIDI-HOWTO.html#toc7.2">$B%l%$%F%s%7(B</A>
</H2>

<P>MIDI $B$O%j%"%k%?%$%`$N%W%m%H%3%k$J$N$G!"%l%$%F%s%7$O=EBg$JLdBj$G$9!#(B</P>
<P>$B8=:_!"1~Ez;~4VC;=L$N$?$a$N:n6H$r$7$F$$$k2??M$+$N3+H/<T$,$$$^$9!#(B
$B%+!<%M%k$N1~Ez;~4V$,C;=L$5$l$k$H!"(BLinux $B$O(B MIDI $B8~$1$N$9$P$i$7$$(B
$B%W%i%C%H%U%)!<%`$K$J$C$F$$$-$^$9!#(B</P>
<P>$BI8=`$N(B Linux $B%G%#%9%H%j%S%e!<%7%g%s$G$bK~B-$KF0:n$9$k$+$b$7$l$^$;$s$,!"(B
$B%W%m8~$1$N5!4o$K$O%m%&%l%$%F%s%7%Q%C%A$r$"$F$k$Y$-$G$9!#(B</P>
<P>$B$h$j>\:Y$J>pJs$O$3$3$GF~<j$G$-$^$9(B:</P>
<P>
<A HREF="http://www.gardena.net/benno/linux/audio/">http://www.gardena.net/benno/linux/audio/</A></P>
<P>
<A HREF="http://www.linuxdj.com/audio/lad/resourceslatency.php3">http://www.linuxdj.com/audio/lad/resourceslatency.php3</A></P>
<P>$B%m%&%l%$%F%s%7(B Mini Howto</P>
<P>
<A HREF="http://www.djcj.org/LAU/guide/Low_latency-Mini-HOWTO.php3">http://www.djcj.org/LAU/guide/Low_latency-Mini-HOWTO.php3</A></P>
<HR>
<A HREF="MIDI-HOWTO-8.html">$B<!$N%Z!<%8(B</A>
<A HREF="MIDI-HOWTO-6.html">$BA0$N%Z!<%8(B</A>
<A HREF="MIDI-HOWTO.html#toc7">$BL\<!$X(B</A>
</BODY>
</HTML>