cc, channel and miditraget of the last touched object

Discuss problems and solutions.
Post Reply
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

cc, channel and miditraget of the last touched object

Post by electrofux »

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?
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

Re: cc, channel and miditraget of the last touched object

Post by electrofux »

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.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: cc, channel and miditraget of the last touched object

Post by Softcore »

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.
Post Reply