Adsr retriggering

For general discussion related FlowStone
Post Reply
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Adsr retriggering

Post by BobF »

Hello gang,

I need some help, well a question. I am building a Synth and lets say I have 2 adsr's, 1 for a midi controlled oscillator and another for a filter fed by the oscillator. If I play 1 note both adsr's are triggered. The question is if I play a second note with first note still held, I only want the oscillator adsr to retrigger and NOT the filters adsr. How would I go about this. After both keys are lifted I also wish for it to start again with both adsr's being triggered. Many thanks in advance.

Later then, BobF.....
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Adsr retriggering

Post by Spogg »

Hi Bob

Just to clarify: You want a poly synth that operates a filter envelope on the first key pressed only. It will then hold the sustained filter value until all keys are released. All held keys will then be filtered by the opened filter. Is this correct?

This sounds a bit like the percussion function on a Hammond Organ.

My first thought is to have the filter in blue, after the poly to mono combiner. It would need a blue envelope generator triggered from somewhere like a voice counter also converted to mono.

You may need to make the envelope generator yourself, or modify one, to get one that worked without the Envelope Control prim involved, since it would be in blue and the control prim is for poly only.

Cheers

Spogg
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Adsr retriggering

Post by BobF »

Hi Spogg,

Thanks! Yes, I thought it would need blues. Guess I was just hoping someone had some little trick that would work and make it so much eaiser.

Cheers, BobF.....
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Adsr retriggering

Post by adamszabo »

There is an easier way to do this if your synth only allows one voice that is in mono. You can have two envelopes, and set one of them to always retrigger on each keypress, and the other one only when a new voice is active, and it will achieve what you want
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Adsr retriggering

Post by BobF »

Thanks adamszabo,

That is one solution, but I do want poly, so back to the drawing board.

Cheers, BobF......
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Adsr retriggering

Post by nix »

Hey Bob mate-
it's something to do with a counter or a compare.
You can count poly gates, and reset the counter when zero-
this will switch the filter adsr on and off.
When above one, it will not send the gate bool to the filter envelope.

The other option is to use the 'midi mono' prim to create the switch.
This will tell u how many poly- and use logic to do the switch from there.

Either option should be good to realize this IMO

So-
it's switch the filter envelope gate bool on poly to off,
and reset the gate bool switch on zero poly

something like that?

Nice idea!!
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Adsr retriggering

Post by BobF »

Hello Nix,

Good to hear from you, how are things? Do you have any examples or should I just start experimenting? Sometimes a little example really helps to get me going.

P.S., How is the hex guitar module doing, are you still adding stuff? Any new projects on the horizon?

Take care, BobF.....
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Adsr retriggering

Post by nix »

I'm good mate thanks! In a new studio now.
How's urself?

Here's an example->
Bob's mod.fsm
(39.52 KiB) Downloaded 996 times

For 3081

So to do it in poly streams is a little more difficult- I can try if you need it though.
This one is a green switch, it seems to work though.

The hex guitar is great fun, just playing it now really. I added an expander on the freq reader line,
and a compressor on the amplitude line and made it look cooler graphically- ta for asking. It's the proverbial of the proverbial!

The new project is to make my website have stellar quality fare, so just fixing up my product line entirely.
The new FS alpha seems really cool- my sequencer can run at 64 samples latency, so Ruby is even better.
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Adsr retriggering

Post by BobF »

Hi again nix,

Doing ok, just had a birthday, more aches and pains each new year.

Is your newest version (hex guitar) up on the forum here?

Really sorry to ask and only if you have time, but I am trying to do it in poly? Thanks!

What else do you like so far in the FS alpha?

Like to see you website when you get it to your liking.

Thanks again, BobF.....
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Adsr retriggering

Post by nix »

She's right Bob mate-
it is polyphonic!
Just not in white streams entirely.
My recent incarnation of the hex guitar is in the 2SYN thread,
do you have the alpha? I am working in that one now, but the one in the thread should open in 3081.
It's just the Ruby handling I am impressed with in the alpha, I have not found any other benefits yet-
but the cpu decrease is just dandy.

Ur birthday is near mine - 18/8 for me
Post Reply