Observed object in callback

May 13, 2012 at 1:12pm

Observed object in callback

Hi, I have a number of observers set up to monitor different buttons on the launchpad – I have these callbacks going to the same callback function. I can monitor the states of the button press changes in the callback, but it does not pass which observed object made the callback – is there any way to get this info?


May 14, 2012 at 9:02pm

Are you talking JS?

If you want a location you should observe the whole grid and it should return a string like 1 1 0? giving the grid coordinates and the state of the button press…

I’m sorry i’ve got no idea in JS though as i do everything in Max…


May 15, 2012 at 3:27pm

Hi D. Yes, JS – started moving everything over now as easier to write complex functionality (well, I find anyway) – it’s actually 1 more level removed by that – in the end I solved it by having 17 callbacks (1 for grid, 1 for each of the 16 buttons) – a bit of extra typing but same result :)



You must be logged in to reply to this topic.