Page 1 of 1

Envelope Selector Clipping, Help please

Posted: Wed Oct 22, 2014 11:33 am
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

Re: Envelope Selector Clipping, Help please

Posted: Wed Oct 22, 2014 8:20 pm
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).

Re: Envelope Selector Clipping, Help please

Posted: Fri Oct 24, 2014 7:54 am
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:

Re: Envelope Selector Clipping, Help please

Posted: Fri Oct 24, 2014 11:11 am
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?

Re: Envelope Selector Clipping, Help please

Posted: Fri Oct 24, 2014 11:56 am
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