This commit is contained in:
gauthiier
2018-12-01 13:03:45 +01:00
parent c142b5b200
commit 7423e4c41b
3 changed files with 134 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#define MIDI_CHANNEL 1
#include <spi4teensy3.h>
#include <EEPROM.h>
#include <Haarnet.h>
void setup() {
// We initialise the sound engine by calling Music.init() which outputs a tone
Music.init();
// Music.enableEnvelope1();
// Music.enableEnvelope2();
// These guys just have to be here...
usbMIDI.setHandleNoteOff(OnNoteOff);
usbMIDI.setHandleNoteOn(OnNoteOn);
usbMIDI.setHandleControlChange(OnControlChange);
// Loading a preset from EEPROM
Music.getPreset(16);
// Uncomment below if you want another midi note
// Music.noteOn(48,127);
}
void loop() {
// Checking for incoming MIDI to use dashboard
usbMIDI.read();
}