Skip to content

Commit f98db5d

Browse files
committed
Update README.adoc
1 parent b937f68 commit f98db5d

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.adoc

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,41 @@
11
= MIDIUSB Library for Arduino =
22

3-
This library allows an Arduino board with USB capabilites to act as a MIDI instrument over USB. The library is based on PluggableUSB, so is only compatible with IDE 1.6.6 and nightly builds (AVR core > 1.6.8)
3+
This library allows an Arduino board with USB capabilites to act as a MIDI instrument over USB. The library is based on PluggableUSB, so is only compatible with IDE 1.6.6 and nightly builds (AVR core > 1.6.8, SAM core > 1.6.4, SAMD core > 1.6.1)
44

55
For more information about this library please visit us at
66
http://www.arduino.cc/en/Reference/MIDIUSB
77

8+
== Test procedure (Linux) ==
9+
10+
Load the correct driver (`sudo modprobe snd_seq_midi`)
11+
12+
Flash the board with `MIDIUSB_loop` example, then execute `aseqdump -l`; the output will be something similar to
13+
```bash
14+
Port Client name Port name
15+
0:0 System Timer
16+
0:1 System Announce
17+
14:0 Midi Through Midi Through Port-0
18+
20:0 Arduino Micro Arduino Micro MIDI 1
19+
```
20+
Port `20` is the one we'll use in the following examples.
21+
22+
Start `fluidsynth` inside a shell with a soundbank
23+
```bash
24+
fluidsynth --server --audio-driver=alsa -udio.alsa.device=hw:0 ~/Synth.SF2
25+
```
26+
27+
In another shell, execute
28+
```bash
29+
aconnect 20 128
30+
```
31+
to connect our MIDI device with fluidsynth
32+
33+
Then, execute
34+
```bash
35+
aplaymidi --port=20:0 ~/some_midi_file.mid
36+
```
37+
and the file will be played after a complete roundtrip to the board.
38+
839
== License ==
940

1041
Copyright (c) 2015, Arduino LLC. All right reserved.

0 commit comments

Comments
 (0)