How can be retrieved all the notes that belong to a specific group and display them on the keyboard in cyan?
On the following script I try to retrieve the notes from group 2.
Code: Select all
on init
declare $a
while ($a < 128)
if (%GROUPS_SELECTED[get_engine_par($EVENT_PAR_NOTE,$a,-1,-1)] = 2)
set_key_color($a, $KEY_COLOR_CYAN)
end if
inc($a)
end while
end on