Bipolar adsr
I need to make a bipolar Adsr, or I need to invert the Adsr curve, so I can apply to pitch and filter envelopes. I can't find much discussion on it. Can anyone help?
Cheers
Ned
If you want negative values, you can just use a negative trigger. If you want an inverted but positive 0-1 value, just subtract it from 1 (!-~ 1)
Alternatively, you can use scale~.
Ok. Currently I'm using a multi slider to set my Adsr with a control for the amount of envelope. How could I use the amount knob to also control the polarity?
i need to revise my question after experimenting with suggestions.
Considering an adsr for a pitch mod envelope. I think rather than it being by polar, i need to have an option of scaling the output of the adsr so that either goes down from n to 1. or up from 0. to 1. using a dial that displays a bipolar value of the same amount (ie 12 or -12).
Im using this to control the sig~ on a groove object. Using adsr to go up from 1 and back down is easy, as i just just add one to the output of adsr~ but im struggling with scaling the output to go up from 0. to 1.
the pitch envelope in abletons sampler is, where you choose the amount, either -48 to +48, its pretty much what i am trying to emulate.
just a 0-1 env with the scale~ object.
@peter I tried to contact you via facebook. Could you provide a way to reach you?
Hi 11Olsen, my email is: info@subtlesonic.com, but I generally prefer to respond to questions on the forum in the forum so others can see them.
I'm still struggling with this. I need to make a pitch envelope for the groove object, so all the positive values need to be above one, that's ok, and all the negative values need to be scaled from 0 to 1, that's ok as I just gatebetween two signals, but I need a bipolar Adsr UI. Here I'm using bipolar multislider.
I can't for the life of me work out a way to scale the signals and I don't understand the behaviour if the sustain in this context.
Both positive and negative values need to finish at 1.
this is what i came up with, still doesnt really work though
If anyone gets what I'm trying to do gets inspired I'd be keen to see what they come up with cause I'm giving myself bipolar disorder trying to work this out.
(Sorry for the tasteless joke).
no need to get compressions, you just need an impulse.
maybe it is time to move adsr~ into the trash and make your own envelope using line~? that could make things easier. those higher level object can sometimes be annoying when you need to change their behaviour.
-110
I wanted to use curve~, but I can't seen to set the curve without using messages boxes.
I think this may help.
Hi Ned, please take a look at the solution I posted above. It produces the behavior you describe. You can swap out ADSR~ for the gen~ 7 segment envelope which has curves.
The key thing is that you need to convert a transposition value to a speed rate. The formula for that looks like this:
Mtof(transposition + fixed_pitch) / (frequency_of_fixed_pitch)
So with MIDI pitch 69 (440 Hz) it looks like:
Transposition
|
+ 69.
|
Mtof
|
/ 440.
Please excuse me. I had not noticed you had posted that. I'll check that out this evening.
Many thanks.
I've been trying to solve a similar problem (I think)...
Here's what I have, though I'd love to know if someone has a better way of doing this.
is the output aready doing what you want?
i dont see anything seriously wrong.
but if you dont need to modulate the curve fast and/or super exact, you could build the whole modulator in non-signal.