Replies: 1 comment 1 reply
-
Am I correct in supposing that this performs some sort of fade-out effect ? for (int i = 0; i < NUM_LEDS; i++) {
leds[i] = CRGB(leds[i].r-0.5, leds[i].g-0.5, leds[i].b-0.5);
} When you have a NoteOn event, this code runs twice (once in the loop, and once in the hNoteOn callback). Could that be the source of your problem ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am having issues with the handleNoteOn callback. Through a MIDI monitor, I can see that every note that is being played on my DAW is being sent to the Arduino, but when I process all of the events going to handleNoteOn some notes arent being detected. I can see that the RX light blinks every time a new note is played, but a lot of the notes that are being dropped are in quick succession of one turning off. I'm not sure where I should look to try to fix this. My code is as follows:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions