I have an USB to Host port. Is it still possible to accomplish my goal?
This is 2 minutes of googling.
There are several Arduinos that can handle MIDI over USB without needing a separate USB Host which makes life simpler. I like the Pro Micro or Leonardo for MIDI but there are others.
Is your USB out a midi signal?
But please tell us exactly what "piano" you have.
I could have sworn I'd done MIDI instrument USB out to a Pro Micro to run LEDs and other stuff.
but it doesn't show you how to use the midi out signals to correspond to led's.
if you search Arduino and midi on YouTube there's a series of videos that might help but it doesn't show you how to use the midi out signals to correspond to led's
but don't know how to interact with midi :/. Guess I'll have to figure it out in the future.
leds[note - lowestNumber] = CRGB::Red;
leds[note - lowestNumber] = CRGB::Black;
There's another approach, what about controlling the LEDs with the pitch of the sound.You can do it like this. Get an electrolytic microphone. connect it with A0 pin of Arduino(any board). then use the library open music lab ,it consists of FHT library which perfectly samples the incoming signals and puts them into different frequency bins and then uses Fourier Hartley Transform to sample the signal into different frequency bands.
This will not work for real sounds as it lights up the LEDs for all the harmonics not just the fundamental note that the OP wants to high lite on his keyboard. You get a spectrum display not a note display.
Brother, FFT is made for this purpose on to sample a sinusoidal frequency bound signal to respective frequency bands.
I have done this, I have categorized it for bass and treble where low-frequency bands for bass and higher for treble.
then further again you can categorize them for the particular frequency.