Skip to content
プロジェクト

概要

PluggableUSBをベースにした、USB経由のMIDIライブラリ

開発ツール

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
+2
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

MIDIUSB Library for Arduino

Check Arduino status Compile Examples status Spell Check status

This library allows an Arduino board with USB capabilities to act as a MIDI instrument over USB. The library is based on PluggableUSB, so is only compatible with Arduino IDE 1.6.6 and newer.

Furthermore, since PluggableUSB only targets boards with native USB capabilities, this library only supports these boards (eg. Leonardo, Micro, Due, Zero and so on)

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

Test procedure (Linux)

Load the correct driver (sudo modprobe snd_seq_midi)

Flash the board with MIDIUSB_loop example, then execute aseqdump -l; the output will be something similar to

Port    Client name                      Port name
  0:0    System                           Timer
  0:1    System                           Announce
 14:0    Midi Through                     Midi Through Port-0
 20:0    Arduino Micro                    Arduino Micro MIDI 1

Port 20 is the one we’ll use in the following examples.

Start fluidsynth inside a shell with a soundbank

fluidsynth --server --audio-driver=alsa -o audio.alsa.device=hw:0 ~/Synth.SF2

In another shell, execute

aconnect 20 128

to connect our MIDI device with fluidsynth

Then, execute

aplaymidi  --port=20:0 ~/some_midi_file.mid

and the file will be played after a complete roundtrip to the board.

関連プロジェクトを探す

読み込み中…