
USBMIDI Hello World
main.cpp
00001 // Hello World example for the USBMIDI library 00002 00003 #include "mbed.h" 00004 #include "USBMIDI.h" 00005 00006 USBMIDI midi; 00007 00008 int main() { 00009 while (1) { 00010 for(int i=48; i<83; i++) { // send some messages! 00011 midi.write(MIDIMessage::NoteOn(i)); 00012 wait(0.25); 00013 midi.write(MIDIMessage::NoteOff(i)); 00014 wait(0.5); 00015 } 00016 } 00017 }
Generated on Mon Dec 17 2018 16:06:11 by
