master
Holger Wirtz 6 years ago
parent 4a40382dec
commit 41e8ac7a75
  1. 113
      MIDITESTER.ino

@ -41,60 +41,62 @@ void setup()
randomSeed(analogRead(A0)); randomSeed(analogRead(A0));
// Sound change 17 /*
MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1); // Sound change 17
delay(500); MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1);
MIDI.sendNoteOn(MIDI_E3, 66, 1); delay(500);
delay(500); MIDI.sendNoteOn(MIDI_E3, 66, 1);
MIDI.sendNoteOff(MIDI_E3, 0, 1); delay(500);
delay(500); MIDI.sendNoteOff(MIDI_E3, 0, 1);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1); delay(500);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1);
delay(2000);
delay(2000);
// Volume change 0.5
MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1); // Volume change 0.5
delay(500); MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1);
MIDI.sendNoteOn(MIDI_AIS1, 66, 1); delay(500);
delay(500); MIDI.sendNoteOn(MIDI_AIS1, 66, 1);
MIDI.sendNoteOff(MIDI_AIS1, 0, 1); delay(500);
delay(500); MIDI.sendNoteOff(MIDI_AIS1, 0, 1);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1); delay(500);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1);
delay(2000);
delay(2000);
// Bank change 3
MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1); // Bank change 3
delay(500); MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1);
MIDI.sendNoteOn(MIDI_FIS3, 66, 1); delay(500);
delay(500); MIDI.sendNoteOn(MIDI_FIS3, 66, 1);
MIDI.sendNoteOff(MIDI_FIS3, 0, 1); delay(500);
delay(500); MIDI.sendNoteOff(MIDI_FIS3, 0, 1);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1); delay(500);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1);
delay(2000);
delay(2000);
// Sound change 17
MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1); // Sound change 17
delay(500); MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1);
MIDI.sendNoteOn(MIDI_E3, 66, 1); delay(500);
delay(500); MIDI.sendNoteOn(MIDI_E3, 66, 1);
MIDI.sendNoteOff(MIDI_E3, 0, 1); delay(500);
delay(500); MIDI.sendNoteOff(MIDI_E3, 0, 1);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1); delay(500);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1);
delay(2000);
delay(2000);
// Volume change 0.1
MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1); // Volume change 0.1
delay(500); MIDI.sendNoteOn(MASTER_KEY_MIDI, 99, 1);
MIDI.sendNoteOn(MIDI_DIS1, 66, 1); delay(500);
delay(500); MIDI.sendNoteOn(MIDI_DIS1, 66, 1);
MIDI.sendNoteOff(MIDI_DIS1, 0, 1); delay(500);
delay(500); MIDI.sendNoteOff(MIDI_DIS1, 0, 1);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1); delay(500);
MIDI.sendNoteOff(MASTER_KEY_MIDI, 0, 1);
delay(5000);
delay(5000);
*/
} }
void loop() void loop()
@ -116,7 +118,8 @@ void sendMIDI(int8_t note, int8_t vel, int8_t chan, uint32_t dur)
MIDIEvents.add(m); MIDIEvents.add(m);
digitalWrite(LED, HIGH); digitalWrite(LED, HIGH);
MIDI.sendNoteOn(note, vel, chan); MIDI.sendNoteOn(note, vel, chan);
/* Serial.print(F("Sending MIDI on channel ")); /*
Serial.print(F("Sending MIDI on channel "));
Serial.print(chan); Serial.print(chan);
Serial.print(F(" note ")); Serial.print(F(" note "));
Serial.print(note); Serial.print(note);

Loading…
Cancel
Save