If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
ADSR Bug
7 posts
• Page 1 of 1
ADSR Bug
Hi folks, I'm currently having some trouble with the stock ADSR module (the graphic one). I had basically wired it up to my poly streams using multiplexers and a switch to act as a bypass. I found out that my project was not sounding right, and I traced it back to this ADSR module.
So here's the weird stuff. Even when bypassed, the module effects the audio. I put poly readouts on the inputs and the outputs and they all read zero, with the exception of the "envelope" output, which was putting out data (so the module was at least still reacting to poly streams, although this output was not connected to anything). Even once I start disconnecting the module's input the issues persists, up until I pull off the last connection on the output, then things would go back to normal.
So in short, the module is inappropriately effecting poly streams even with nothing connected to the inputs as long as the output is connected somewhere (even though the output is reading zero).
Testing now it also happens with the other ADSR module (the knobs only one, which uses a DSP code block instead of the ADSR4 primitive).
Does anyone know what the heck this is all about? My project requires ADSR.
So here's the weird stuff. Even when bypassed, the module effects the audio. I put poly readouts on the inputs and the outputs and they all read zero, with the exception of the "envelope" output, which was putting out data (so the module was at least still reacting to poly streams, although this output was not connected to anything). Even once I start disconnecting the module's input the issues persists, up until I pull off the last connection on the output, then things would go back to normal.
So in short, the module is inappropriately effecting poly streams even with nothing connected to the inputs as long as the output is connected somewhere (even though the output is reading zero).
Testing now it also happens with the other ADSR module (the knobs only one, which uses a DSP code block instead of the ADSR4 primitive).
Does anyone know what the heck this is all about? My project requires ADSR.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: ADSR Bug
I can conclude from my limited understanding that anything connected in Poly, even if the inputs are empty, will instantiate with each poly voice. But that doesn't explain to my why it's ruining my audio output when the module is outputting a steady 0.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: ADSR Bug
Default your module/primitive is compiled as long as at least one of it's outputs is connected to some sort of output primitive (be it poly to mono prim, soundcard output or mono to float prim), the inputs doesn't really matter at all (when you disconnect it, it is simply considered zero). That explains why the bug persists when you have at least one of the outputs connected (even if it should do nothing)
Only thing that comes to my mind is the envelope control primitive. It is used for custom envelopes - outputs envelope stage and receives kill voice boolean and it is up to you to create the code for the envelope itself. It is the only thing that the modules have in common.
Only thing that comes to my mind is the envelope control primitive. It is used for custom envelopes - outputs envelope stage and receives kill voice boolean and it is up to you to create the code for the envelope itself. It is the only thing that the modules have in common.
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: ADSR Bug
I've circumvented the issue by using selectors on the outputs instead of multiplexers on the inputs. That way the ADSR outputs aren't being summed with the "dry" poly stream. Bizarre thing though.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: ADSR Bug
Perfect Human Interface wrote:I've circumvented the issue by using selectors on the outputs instead of multiplexers on the inputs. That way the ADSR outputs aren't being summed with the "dry" poly stream. Bizarre thing though.
If you want to shut anything off you should always use selectors, as a bonus they save CPU.
The outputs on multiplexers hold there value so don't default to zero, which is desirable for most cases. They are not designed for the way you was attempting to use them.
- Exo
- Posts: 426
- Joined: Wed Aug 04, 2010 8:58 pm
- Location: UK
Re: ADSR Bug
That's really good advice, thanks.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: ADSR Bug
Exo wrote:Perfect Human Interface wrote:I've circumvented the issue by using selectors on the outputs instead of multiplexers on the inputs. That way the ADSR outputs aren't being summed with the "dry" poly stream. Bizarre thing though.
If you want to shut anything off you should always use selectors, as a bonus they save CPU.
The outputs on multiplexers hold there value so don't default to zero, which is desirable for most cases. They are not designed for the way you was attempting to use them.
Very nice advice, thanks I have been struggling with the very same situation. I was sure that i did something wrong, but with your explanation above it makes good sense.
- Flemming
- Posts: 31
- Joined: Thu Aug 07, 2014 9:48 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 89 guests