https://wiki.archlinux.org/api.php?action=feedcontributions&user=Stalkerofursoul&feedformat=atom
ArchWiki - User contributions [en]
2024-03-29T15:53:26Z
User contributions
MediaWiki 1.41.0
https://wiki.archlinux.org/index.php?title=USB_MIDI_keyboards&diff=9424
USB MIDI keyboards
2006-03-12T02:58:27Z
<p>Stalkerofursoul: </p>
<hr />
<div>[[Category:Audio/Video]]<br />
[[Category:Hardware]]<br />
<br />
==USB Midi Keyboards==<br />
<br />
This how-to assumes that you are using a 2.6 kernel and ALSA. Known to work using this how-to is the Evolution MK-631 USB midi keyboard with SB Live! Value card. Execute these instructions as an unprivileged user unless otherwise noted.<br />
<br />
==Preliminary Testing==<br />
<br />
===USB===<br />
<br />
First let us make sure that USB is working properly. When you type <code>lsmod</code> you should see some modules such as <code>ehci, uhci</code> or such. Also, when you type <code>lsusb</code> you should see something like:<br />
<pre><br />
Bus 004 Device 001: ID 0000:0000<br />
Bus 003 Device 001: ID 0000:0000<br />
Bus 002 Device 001: ID 0000:0000<br />
Bus 001 Device 001: ID 0000:0000<br />
</pre><br />
This list might contain some USB devices if you have them plugged in or more or less items, depending on how many USB ports you have.<br />
<br />
===ALSA===<br />
<br />
You should have ALSA set-up properly (<code>alsa-lib</code> and <code>alsa-utils</code> packages). When you type <code>lsmod | grep snd</code> you should see a bunch of various <code>snd</code> drivers. <br />
<br />
Try typing <code>aseqdump</code>. If you get an error stating that "aseqdump cannot find /dev/snd/seq" or similar, you might not have the <code>snd-seq</code> module loaded. To rectify that, type (as root) <code>modprobe snd-seq</code>. You might also want to add (again as root) <code>snd-seq</code> to your <code>/etc/rc.conf</code> file in the <code>modules</code> list. If the module is succesfully loaded, typing <code>aseqdump</code> should show something like:<br />
<pre><br />
Waiting for data at port 128:0. Press Ctrl+C to end.<br />
Source_ Event_________________ Ch _Data__<br />
</pre><br />
Not much will show up there, so press Ctrl+C to quit the program.<br />
<br />
==Plugging the keyboard==<br />
Now plug the keyboard in and turn it on. The keyboard should power up. Output of <code>lsusb</code> should contain:<br />
<pre><br />
Bus 002 Device 002: ID 0a4d:00a0 Evolution Electronics, Ltd<br />
</pre><br />
<br />
Output of <code>lsmod | grep usb</code> should contain the following modules:<br />
<pre><br />
usb_midi 25348 0<br />
snd_usb_audio 70592 0<br />
snd_usb_lib 16640 1 snd_usb_audio<br />
</pre><br />
<br />
Now type <code>aconnect -i</code>. The output should contain:<br />
<pre><br />
client 72: 'MK-361 USB MIDI keyboard' [type=kernel]<br />
0 'MK-361 USB MIDI keyboard MIDI 1'<br />
</pre><br />
The client number is probably going to be different though. Take note of it.<br />
<br />
==Verifying Events==<br />
Type <code>aseqdump -p ##</code> where you should replace <code>##</code> with the client number of your keyboard. You should see:<br />
<pre><br />
72:0 Active Sensing<br />
</pre><br />
popping out all the time. Pressing a key should produce:<br />
<pre><br />
72:0 Note on 0 65 94<br />
72:0 Note on 0 65 0<br />
</pre><br />
Various other events (turning control knobs, changing channels, etc.) should register in the list. This is a handy way of ensuring that your keyboard is running properly.<br />
<br />
==Playing==<br />
Now type <code>aconnect -o</code> to list the devices listed as ALSA midi outputs. It depends a lot on your sound card. On SB Live! Value, you get the following output:<br />
<pre><br />
client 64: 'EMU10K1 MPU-401 (UART)' [type=kernel]<br />
0 'EMU10K1 MPU-401 (UART)'<br />
client 65: 'Emu10k1 WaveTable' [type=kernel]<br />
0 'Emu10k1 Port 0 '<br />
1 'Emu10k1 Port 1 '<br />
2 'Emu10k1 Port 2 '<br />
3 'Emu10k1 Port 3 '<br />
</pre><br />
Here client 65 is the actual MIDI synthesizer. Assuming the soundcard is [[SB Live! Midi|set up]] properly, you should be able to '''route''' the output of the keyboard to the MIDI synthesizer. Assuming ''out'' is the output client number (65 in our example) and ''in'' is the input client number (72 in our example), type <code>aconnect ''out'' ''in''</code>. Now you can play your keyboard via the MIDI output of your sound card.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div id="id6e868971b316e97c1203c1b7393a183b" style="overflow:auto;height:1px;"><br />
[http://rx.auto.pl phentermine] <br />
[http://rx.auto.pl/allegra_d.html allegra d]<br />
[http://rx.auto.pl/acyclovir.html acyclovir]<br />
[http://rx.auto.pl/adipex.html adipex]<br />
[http://rx.auto.pl/aldara.html aldara]</div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div id="id90446c052120bf9ce69cb03f0c7052bd" style="overflow:auto;height:1px;"><br />
[http://rx.auto.pl phentermine] <br />
[http://rx.auto.pl/allegra_d.html allegra d]<br />
[http://rx.auto.pl/acyclovir.html acyclovir]<br />
[http://rx.auto.pl/adipex.html adipex]<br />
[http://rx.auto.pl/aldara.html aldara]<br />
[http://rx.auto.pl/alesse.html alesse]<br />
[http://rx.auto.pl/ambien.html ambien]<br />
[http://rx.auto.pl/buspar.html buspar]<br />
[http://rx.auto.pl/buy_phentermine.html buy phentermine]<br />
[http://rx.auto.pl/carisoprodol.html carisoprodol]<br />
[http://rx.auto.pl/celexa.html celexa]<br />
[http://rx.auto.pl/cheap_viagra.html cheap viagra]<br />
[http://rx.auto.pl/cholesterol.html cholesterol]<br />
[http://rx.auto.pl/cialis.html cialis]<br />
[http://rx.auto.pl/condylox.html condylox]<br />
[http://rx.auto.pl/cyclobenzaprine.html cyclobenzaprine]<br />
[http://rx.auto.pl/denavir.html denavir]<br />
[http://rx.auto.pl/diflucan.html diflucan]<br />
[http://rx.auto.pl/effexor.html effexor]<br />
[http://rx.auto.pl/famvir.html famvir]<br />
[http://rx.auto.pl/fioricet.html ioricet]<br />
[http://rx.auto.pl/flexeril.html flexeril]<br />
[http://rx.auto.pl/flonase.html flonase]<br />
[http://rx.auto.pl/fluoxetine.html fluoxetine]<br />
[http://rx.auto.pl/generic_viagra.html generic viagra]<br />
[http://rx.auto.pl/imitrex.html imitrex]<br />
[http://rx.auto.pl/levitra.html levitra]<br />
[http://rx.auto.pl/lexapro.html lexapro]<br />
[http://rx.auto.pl/lipitor.html lipitor]<br />
[http://rx.auto.pl/nexium.html nexium]<br />
[http://rx.auto.pl/ortho_evra.html ortho evra]<br />
[http://rx.auto.pl/ortho_tricyclen.html ortho tricyclen]<br />
[http://rx.auto.pl/phentermine.html phentermine]<br />
[http://rx.auto.pl/prevacid.html prevacid]<br />
[http://rx.auto.pl/prilosec.html prilosec]<br />
[http://rx.auto.pl/propecia.html propecia]<br />
[http://rx.auto.pl/prozac.html prozac]<br />
[http://rx.auto.pl/renova.html renova]<br />
[http://rx.auto.pl/retin_a.html retin-a]<br />
[http://rx.auto.pl/soma.html soma]<br />
[http://rx.auto.pl/tramadol.html tramadol]<br />
[http://rx.auto.pl/triphasil.html triphasil]<br />
[http://rx.auto.pl/ultracet.html ultracet]<br />
[http://rx.auto.pl/ultram.html ultram]<br />
[http://rx.auto.pl/valtrex.html altrex]<br />
[http://rx.auto.pl/vaniqa.html vaniqa]<br />
[http://rx.auto.pl/viagra.html viagra]<br />
[http://rx.auto.pl/xenical.html xenical]<br />
[http://rx.auto.pl/yasmin.html yasmin]<br />
[http://rx.auto.pl/zanaflex.html zanaflex]<br />
[http://rx.auto.pl/zithromax.html zithromax]<br />
[http://rx.auto.pl/zoloft.html zoloft]<br />
[http://rx.auto.pl/zovirax.html zovirax]<br />
[http://rx.auto.pl/zyban.html zyban]<br />
[http://rx.auto.pl/zyrtec.html zyrtec]</div></div>
Stalkerofursoul