Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MIDI REnc button mbed
Diff: main.cpp
- Revision:
- 0:3dc89ac1495f
- Child:
- 1:2760654d0b44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Aug 09 02:11:18 2014 +0000 @@ -0,0 +1,49 @@ +/** + * @file main.cpp + * Project Gem8 - handles 8-gembox synth project application + * @brief Gem8 project application + * @version 1.0 + * @author Chuck Timber + * @date 08/08/2014 + */ + +#include "mbed.h" +//#include "button.h" +//#include "REnc.h" +#include "MIDI.h" + +#define POLYPHONICE_NOTES 8 +#include "midi_proc.h" + +uint8_t midi_params[]={ + 0,0,0,0,0,0,0,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,64,0,0,127,0,32,127,0,0,64,32, +}; + +// LED (active HIGH) +#define dbg_led_on() { } +#define dbg_led_off() { } + +DigitalOut myled(LED1); +MIDI midi(dp16, dp15); + + +int main() { + + midi.setHandleNoteOff(&midi_noteoff); + midi.setHandleNoteOn(&midi_noteon); + midi.setHandleControlChange(&midi_cc); + midi.setHandleProgramChange(&midi_pc); + midi.setHandlePitchBend(&midi_pbend); + midi.setHandleSystemReset(&midi_sysreset); + + + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +} +