Page 1 of 1

Controll Breakpoint(s) with Faders

Posted: 08 Feb 2013 17:54
by agentsmith23
hey,

i want to create a simple envelovpe, which i can controll with 4 faders.

fader1: Attack = point2.x
fader2: Decay = point3.x
fader3: Sustain = point3.y/point4.y
fader4: release = point4.x

i tried but i dont know how to script it..

help please^^

http://www.bilder-upload.eu/show.php?fi ... 345981.jpg

Re: Controll Breakpoint(s) with Faders

Posted: 09 Feb 2013 08:51
by Softcore
Controlling individual points of a breakpoint with faders can be achieved with referencing them in scripts in your faders like this

insert script in fader, on expression x, any

Code: Select all

Breakpoint_name.x[1]=x;
where x[0] is the first point, x[1] the second and so on....

However you will realize after doing this, that this is not exactly an accurate visual representation....For example raising the "attack" fader even if it correctly moves the second point along the X axis....the decay will "visually" become shorter.....so it should also relatively move the decay point too, wouldnt it?

In other words its more complex than the "moves" you have described in your post...

Re: Controll Breakpoint(s) with Faders

Posted: 09 Feb 2013 09:25
by Softcore
Here is an example with an effort to keep a "logical" visual representation of the envelope settings...Still though, you will have to map the faders to the envelope of your software and NOT the points - the breakpoint object in this case merely serves only as a visual representation and not as accurate midi messages one would map to an envelope attack, decay, sustain and release settings.
Breakpoint_envelope.jzml
(12.57 KiB) Downloaded 85 times

Re: Controll Breakpoint(s) with Faders

Posted: 12 Feb 2013 23:16
by agentsmith23
allright, thank you!!!

appreciate it!

did you have more of these example-parts?


regards!

Re: Controll Breakpoint(s) with Faders

Posted: 13 Feb 2013 08:37
by Softcore
They are not something I have already in my arsenal - I created it when I read your post...Besides answering your question, it helps me practise scripting and possibly help me understand lemur scripting better and also deal with practicalities not apparent in initial ideas! ;)

Re: Controll Breakpoint(s) with Faders

Posted: 14 Feb 2013 01:39
by agentsmith23
ok!

if you want you can help me out further..

i'm trying to add a delay on each point in this project, so the points acting like a sine-wave..

its a very simple preset, one physic-fader which controls the y.axis of the breakpoints...

regards!!