From af7a83f7e49a142c472018006fa7452c7ab499e0 Mon Sep 17 00:00:00 2001 From: Collin Cunningham Date: Sun, 9 Sep 2018 20:11:08 -0400 Subject: [PATCH] commenting --- MIDI_Solenoid_Drummer/MIDI_Solenoid_Drummer.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MIDI_Solenoid_Drummer/MIDI_Solenoid_Drummer.ino b/MIDI_Solenoid_Drummer/MIDI_Solenoid_Drummer.ino index a1a1b220..b00f511c 100644 --- a/MIDI_Solenoid_Drummer/MIDI_Solenoid_Drummer.ino +++ b/MIDI_Solenoid_Drummer/MIDI_Solenoid_Drummer.ino @@ -30,10 +30,10 @@ void setup() { void loop() { - midiEventPacket_t rx = MidiUSB.read(); + midiEventPacket_t rx = MidiUSB.read(); //listen for new MIDI messages switch (rx.header) { - case 0x9: + case 0x9: //Note On message handleNoteOn( rx.byte1 & 0xF, //channel rx.byte2, //pitch @@ -66,9 +66,9 @@ void handleNoteOn(byte channel, byte pitch, byte velocity) { } void hit(int drum) { - crickit.analogWrite(drum, CRICKIT_DUTY_CYCLE_MAX); //turn all the way on + crickit.analogWrite(drum, CRICKIT_DUTY_CYCLE_MAX); //turn solenoid all the way on delay(hitDur); // wait - crickit.analogWrite(drum, CRICKIT_DUTY_CYCLE_OFF); //turn all the way off + crickit.analogWrite(drum, CRICKIT_DUTY_CYCLE_OFF); //turn solenoid all the way off } void test() { //for debugging