Quick hack to make NSX-39 (Poke-Miku) USB MIDI device to speak "mbed" from mbed which acts as an USB host.
Dependencies: FatFileSystem mbed
Fork of MIDI_BlueUSB by
Description of the project
This is quick hack to control Poke-miku (NSX-39) from mbed. The mbed acts as an USB host and controls USB MIDI device NSX-39. It speaks "mbed" if you send "s¥n" from virtual USB serial (connected to PC or Mac) or push SW connected to p21. It plays MIDI file "test.mid" on local file-system if you push SW connected to p22. You can find files that I have tested at the bottom. The standard MIDI file support is still preliminary. See TestShell.cpp for the hack. This program is derived from MIDI_BlueUSB (http://mbed.org/users/radiojunkbox/code/MIDI_BlueUSB/) by Radio Junk Box.
ポケミク(NSX-39)を無改造のままmbedから鳴らせるようにしてみました。mbedがUSB hostになって、USB MIDIデバイスのポケミクを鳴らします。mbedのバーチャルシリアル(USBシリアル)にPCからs\nを送るか、p21につないだスイッチを押すとmbedとしゃべります。p22につないだスイッチを押すと、ローカルファイルシステム(.binと同じ場所)に保存した test.mid を再生します。試したファイルは下にある test1.mid と test2.mid です。MIDIファイルのサポートはまだまだ完全とはいえません。
tested MIDI files
Video: Poke-miku speaks `mbed'
Files at revision 4:cd0d8ce967d8
Name | Size | Actions |
---|---|---|
[up] | ||
AutoEvents.cpp | 6299 | Revisions Annotate |
FATFileSystem.lib | 72 | Revisions Annotate |
L2CAP.cpp | 7383 | Revisions Annotate |
MassStorage.cpp | 4912 | Revisions Annotate |
MidiUSB.cpp | 4401 | Revisions Annotate |
Socket.cpp | 3960 | Revisions Annotate |
Socket.h | 3022 | Revisions Annotate |
TestShell.cpp | 25041 | Revisions Annotate |
TestShell.h | 143 | Revisions Annotate |
USBHost.cpp | 37020 | Revisions Annotate |
USBHost.h | 6115 | Revisions Annotate |
Utils.cpp | 885 | Revisions Annotate |
Utils.h | 678 | Revisions Annotate |
common.h | 220 | Revisions Annotate |
hci.cpp | 11365 | Revisions Annotate |
hci.h | 6611 | Revisions Annotate |
hci_private.h | 17275 | Revisions Annotate |
main.cpp | 3856 | Revisions Annotate |
mbed.bld | 66 | Revisions Annotate |