MIDI Library - MIDIライブラリ
MIDI Library - MIDIライブラリ
Serial (UART) を使い、MIDI信号を送受信するためのライブラリです。
Arduino MIDIライブラリ からの移植です。
Schematic
blockdiagram
+------+ | |+5V----+--+ PC900V/TLP552 | | | R +---+ | |RXD----|--+--|O A|--[220]--(4 Rx) DIN 5P | | | +-|G K|---------(5 Rx) | mbed | | | +---+ | | | | +--(2 Tx) DIN 5P | | +---|-----[220]--|--(4 Tx) | |TXD--|>----|-----[220]--|--(5 Tx) | | Buffer | | | |GND--------+------------+ +------+
Download
Import libraryMIDI
Ported from Arduino MIDI library Orignal: http://www.arduino.cc/playground/Main/MIDILibrary use Serial (UART)
MIDI.h
#define COMPILE_MIDI_IN 1 // Set this setting to 1 to use the MIDI input.
#define COMPILE_MIDI_OUT 1 // Set this setting to 1 to use the MIDI output.
#define COMPILE_MIDI_THRU 0 // Set this setting to 1 to use the MIDI Soft Thru feature
:
#define USE_RUNNING_STATUS 0 // Running status enables short messages when sending multiple values
Sample
#include "MIDI.h"
:
MIDI midi(TX, RX);
:
int main () {
midi.begin(CH);
:
for (;;) {
midi.read();
:
}
}
Import programMIDI_sample
Ported from Arduino MIDI library Orignal: http://www.arduino.cc/playground/Main/MIDILibrary use Serial (UART)
パソコンからはUSB-MIDIとして認識し、レガシーなMIDI入出力として使用できるサンプル。
Import programMIDI_usb_bridge
see http://mbed.org/users/okini3939/notebook/midi/
Geta MIDI
mbedのシリアルポート(UART)を使って、MIDI信号の入出力ができる拡張基板です。
USB-Bコネクタもあり、USB-MIDIインターフェースなどへの応用も可能です。
mbedの下駄のように積み重ねて使用します。

販売:Galileo 7
Please log in to post comments.
