Making button flash upon mouseclick AND midi note
-
@ulrik brilliant. I swear I tried the same approach before but hadn't set up everything right so it didnt work. Now it does. Thanks so much!
-
@Morphoice said in Making button flash upon mouseclick AND midi note:
@Lindon so you mean Content.getComponentUnderMouse should work?
Sorry I was assuming you were using a single panel and drawing the "button" on to it - seems you are using multiple panels...
-
@Lindon yes sir but the x/y might actually be a useful tip for calculating the click position on the panel and from there maybe get a velocity value
-
@Morphoice said in Making button flash upon mouseclick AND midi note:
@Lindon yes sir but the x/y might actually be a useful tip for calculating the click position on the panel and from there maybe get a velocity value
yes that would work - remember the Y value increases the further down the screen you go, so you velocity calc might be:
(panel height - y position)/(panel height/127)
for a full range solution...