Hi everyone,
It is possible to control or change the XY position of the objects via MIDI or OSC?
greetings from berlin,
Kandy
change position objects via MIDI / OSC ?
-
- Newbie
- Posts: 6
- Joined: 08 Nov 2016 11:27
- Location: Berlin
-
- Newbie
- Posts: 6
- Joined: 08 Nov 2016 11:27
- Location: Berlin
Re: change position objects via MIDI / OSC ?
that would be so cool …
I change the instrument plug-in with Mackie Control setup and the Lemur objects change their position to get different synthesizer faces !?
This would save a lot of CPU and FPS.
I change the instrument plug-in with Mackie Control setup and the Lemur objects change their position to get different synthesizer faces !?
This would save a lot of CPU and FPS.
-
- Regular
- Posts: 315
- Joined: 02 Nov 2013 11:19
Re: change position objects via MIDI / OSC ?
straightforward.
Object size and position is determined by the rect attribute.
So - objRect = getattribute(obj, 'rect');
Set the x, y positions as you want (objRect[0] and objRect[1] in this example) then call
setattribute(obj, 'rect', objRect);
and the object will move.
You'll need a script to read and translate incoming MIDI CCs (for example) that you can use to send new positions.
To test, set up a fader or knob to control the X or Y and have a script in it to modify the position of another object.
Object size and position is determined by the rect attribute.
So - objRect = getattribute(obj, 'rect');
Set the x, y positions as you want (objRect[0] and objRect[1] in this example) then call
setattribute(obj, 'rect', objRect);
and the object will move.
You'll need a script to read and translate incoming MIDI CCs (for example) that you can use to send new positions.
To test, set up a fader or knob to control the X or Y and have a script in it to modify the position of another object.
-
- Newbie
- Posts: 6
- Joined: 08 Nov 2016 11:27
- Location: Berlin
Re: change position objects via MIDI / OSC ?
Hello Oldgearguy,
You have an example patch for me, which I can orient myself, how to do it.
You have an example patch for me, which I can orient myself, how to do it.
-
- Newbie
- Posts: 6
- Joined: 08 Nov 2016 11:27
- Location: Berlin
Re: change position objects via MIDI / OSC ?
Thank you for your help, i have built the example
- Attachments
-
- Change-Position.jzml
- (8.71 KiB) Downloaded 73 times
Last edited by kandymodular on 10 Jan 2017 06:19, edited 2 times in total.
-
- Newbie
- Posts: 6
- Joined: 08 Nov 2016 11:27
- Location: Berlin
Re: change position objects via MIDI / OSC ?
Second example ...
- Attachments
-
- Change-Behavior.jzml
- (28.02 KiB) Downloaded 70 times
Last edited by kandymodular on 10 Jan 2017 12:55, edited 2 times in total.
-
- Regular
- Posts: 315
- Joined: 02 Nov 2013 11:19
Re: change position objects via MIDI / OSC ?
Glad you were able to work it out. Many of us do not spend a lot of time constantly checking on the Lemur forums. Also, we are often busy with other things and do not always have a lot of time to create examples.
The best approach is to do what you did -- ask the question, (hopefully) get some hints/guides/examples and then try to work it out yourself. No one knows your application better than you do, so you will know exactly how the pieces fit together.
When I have time and access to a Lemur environment, I will post examples, but I thought a quick set of notes was better than not helping at all.
The best approach is to do what you did -- ask the question, (hopefully) get some hints/guides/examples and then try to work it out yourself. No one knows your application better than you do, so you will know exactly how the pieces fit together.
When I have time and access to a Lemur environment, I will post examples, but I thought a quick set of notes was better than not helping at all.
Re: change position objects via MIDI / OSC ?
my Diva Lemur template makes use of this technique. Both the Diva GUI changes and the Lemur template are synchronised.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro