Envelope Selector Clipping, Help please

For general discussion related FlowStone
Post Reply
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Envelope Selector Clipping, Help please

Post by glitchcpt »

Hey guys,

I am working on a design that switches between a Multi-Stage envelope and an ADSR module using a selector and switch method.

It gives me a brutal clip if I hold the note down and flip the switch, any ideas how to tone it down? thanks
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Envelope Selector Clipping, Help please

Post by KG_is_back »

The problem is, that selector recompiles the code of your schematic, which if it happens while audio is running, causes clicks. selector Basically rips part of the code and replaces is with new one, so after the selection the deselected code is not computed ( =better CPU performance). If you don't mind a little bit of CPU you may have the things running in parallel and switch their outputs on/off (or even creating a mix knob) using a simple code (I'm sure you can figure it out on your own ;-) ).
With ADSR/envelope shapers the story is a little bit more complicated. The two modules do two things:
1. they react to midi on/off massages and create the shapes when that happens.
2. they kill the voice when "release" stage is finished (which generally happens some time after the note-off midi massage, or even after note-on massages with percussion-type of synths).
Both of these things are managed via "envelope control" primitive (it has the "kill voice" input and "stage" output). The thing is - you can have only one of it per poly chain. Otherwise they will interfere with each other ( with two parallel envelope followers the one with shorter release will be killing the voice before the one with longer release has time to finish).
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Envelope Selector Clipping, Help please

Post by glitchcpt »

Thanks for your insightful feedback!! :D

I tried it with a little crossfader/dry-wet module I created, connected that to the switch and it did the same thing :oops:
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Envelope Selector Clipping, Help please

Post by KG_is_back »

glitchcpt wrote:Thanks for your insightful feedback!! :D

I tried it with a little crossfader/dry-wet module I created, connected that to the switch and it did the same thing :oops:


did you used dezipper?
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Envelope Selector Clipping, Help please

Post by glitchcpt »

Yea i tried with a de-zipper too, I will upload a section of the module when i get home this evening to see
Post Reply