Unless I should be coming up with a better placement to trigger the boolean...
I would think so.
There is a lot of wasted processing time with all those if statements. Why not just use a look up table to decide what LED to turn on or off? Then change the LEDs when you identify the note.