First off I’d like to that David-san for the illuminated Piano gig file.
I made an edit to it so as to be more of a basic tracker for keys that are pushed during a performance. Instead of the keys reacting from velocity with the color changing when pushed and back to the original state upon release, I have them returning to a shaded value.
I’m triggering many choir and effect samples on the lower end of my 88 note controller and playing orchestra parts on the upper end.
I sometimes do not remember exactly which key I last triggered, so I can trigger the next one when I return for the next sample. This visual cue works great with the sample section split so only the lower section keys turn grey, and stay that way.
What I’m having a problem with is getting it to reset all the keys to their initialized color/state with a switch widget when I’m finished. I want to use midi cc11 with a pedal to reset.
I’ve read over the scripting documentation, but have no background in programming languages. I’ve tried many attempts to send an “initialization callback” from the switch widget, or if it would be from a midi cc callback? I get either syntax errors. Don’t know if I should use an initialization callback or an activation callback or some other callback and not sure what the declaration or statement would be. Tried these but nothing resets it unless I run the “compile” command from the script editor.
Yea, I’m lost without someone guiding me through this with real world examples.
I know it should be a simple thing…
Here is the script I’m using with the changes I’ve made that work, but can’t figure out how to reset it.