cc, channel and miditraget of the last touched object
-
- Regular
- Posts: 294
- Joined: 24 Jan 2012 18:22
cc, channel and miditraget of the last touched object
Is there an easy way to get the CC#, the channel and the miditarget of tha last fader/knob i touched on my template in order to assign it to another control?
-
- Regular
- Posts: 294
- Joined: 24 Jan 2012 18:22
Re: cc, channel and miditraget of the last touched object
What exactly do i get if i use the getobject() function and can this be used to achiceve what i want?
I have several templates spread over different interfaces. One of them is a page with 4 xy Pads. I want to have an x and y button under each XY Pad and when i hit one of the buttons the corresponding axis of the XY Pad should be assigned to the last control that was used.
I have several templates spread over different interfaces. One of them is a page with 4 xy Pads. I want to have an x and y button under each XY Pad and when i hit one of the buttons the corresponding axis of the XY Pad should be assigned to the last control that was used.
Re: cc, channel and miditraget of the last touched object
I can think of only two ways to achieve this...
1. Add a script in each and every object in your template which will change the cc, channel and target of an already scripted output of the XY pad. It doesnt seem like a nice soution though...
2. IF your controlled application supports bi-directional communication with Lemur (midi feedback) you could, cunningly use a ON MIDI script which consequently will always receive the last cc, channel being used - not the target though, this has to be defined. Then you could use that information to change the scripted output of the XY pad. Seems like a better solution, although if we were to include various targets, things become more complicated.
1. Add a script in each and every object in your template which will change the cc, channel and target of an already scripted output of the XY pad. It doesnt seem like a nice soution though...
2. IF your controlled application supports bi-directional communication with Lemur (midi feedback) you could, cunningly use a ON MIDI script which consequently will always receive the last cc, channel being used - not the target though, this has to be defined. Then you could use that information to change the scripted output of the XY pad. Seems like a better solution, although if we were to include various targets, things become more complicated.