question about Peak modifier and the search for expression
Posted: Mon May 09, 2016 1:11 pm
hi,
as far as I get this, in layman's terms, the Peak modifier transforms an incoming stepped curve (actually not sure about the terms here
) that instantly goes from 0 to 1 and then after a while instantly back to 0, into an insta rise to 1, but then linearly slow back to 0, while the modifiers value controls the duration of the descent. what i want is the opposite: a curve that slowly goes up to 1 while the incoming value is 1 and then instantly goes back to 0, when the incoming value is 0.
is there a modifier that already does this or can i use the expression modifier to modify the Peak modifier to do this? i tried coming up with an expression, but i am too stupid
.
i tried -x+1, which kinda does what i want in terms of rising and descent, but not exactly, because now when the incoming value is 1, the outputted value is 0 and vice versa. i also tried if(x>0, -x+1, 0) to keep the 0 input as a 0 output, but it's not working. i also tried if(x==0, 0, -x+1) to no avail. am i using this wrong? i have the peak modifier first and then the expression modifier. even though the peak seems to send a 0, upon activating the expression modifier, it sends a 1 even though i told it if x==0 do 0, no?
what i want to do with it is this: press a button on my midi controller, this lets an object scale up slowly, until i release the midi button, which let's the object instantly (or smoothly thanks to the smooth modifier) pop back to it's original size.
i hope this is understandable. thaanks
as far as I get this, in layman's terms, the Peak modifier transforms an incoming stepped curve (actually not sure about the terms here
is there a modifier that already does this or can i use the expression modifier to modify the Peak modifier to do this? i tried coming up with an expression, but i am too stupid
i tried -x+1, which kinda does what i want in terms of rising and descent, but not exactly, because now when the incoming value is 1, the outputted value is 0 and vice versa. i also tried if(x>0, -x+1, 0) to keep the 0 input as a 0 output, but it's not working. i also tried if(x==0, 0, -x+1) to no avail. am i using this wrong? i have the peak modifier first and then the expression modifier. even though the peak seems to send a 0, upon activating the expression modifier, it sends a 1 even though i told it if x==0 do 0, no?
what i want to do with it is this: press a button on my midi controller, this lets an object scale up slowly, until i release the midi button, which let's the object instantly (or smoothly thanks to the smooth modifier) pop back to it's original size.
i hope this is understandable. thaanks