yanay nevela
/
lab5_part4_24
Shai COPY OUR MIDI!!!
Fork of USBMIDI_HelloWorld by
main.cpp
- Committer:
- samux
- Date:
- 2011-11-04
- Revision:
- 2:4505f7d7196e
- Parent:
- 1:4108aa07d2a7
- Child:
- 3:7990c80e953c
File content as of revision 2:4505f7d7196e:
// Hello World example for the USBMIDI library #include "mbed.h" #include "USBMIDI.h" USBMIDI midi; int main() { while (1) { for(int i=48; i<83; i++) { // send some messages! midi.write(MIDIMessage::NoteOn(i)); wait(0.25); midi.write(MIDIMessage::NoteOff(i)); wait(0.5); } } }