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
Avoiding multiplexer
16 posts
• Page 2 of 2 • 1, 2
Re: Avoiding multiplexer
RJHollins wrote:How would it be to add a type of crossfade when switching outputs ?
You can make an dezipper for each output, which will be fed in with 0s if the output is deselected and 1s when it is selected. The dezipper is especially a low-pass filter, giving a smooth transition between 0 and 1. The output from the envelope follower will then be multiplied by input and fed into respective output.
- Code: Select all
streamin in;
streamin index;
streamut out0;
streamout out1;
...
float py0,py1,py2,...
float ind;
float b0=0.9995; //1-pole lowpass coefficient for dezipper.
//envelope follower for zeroth output
ind=1&(index==0);
py0=(py0-ind)*b0+ind;
//output selector
out0=in*py0;
//envelope follower for first output
ind=1&(index==1);
py1=(py1-ind)*b0+ind;
//output selector
out1=in*py1;
...
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Avoiding multiplexer
hm ... tried to put this in the circuit ... did not pass audio.
I changed spelling:
to
still not work.
You said this should follow the 'multiplexer' module ?
I changed spelling:
- Code: Select all
streamut out0;
to
- Code: Select all
streamout out0;
still not work.
You said this should follow the 'multiplexer' module ?
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Avoiding multiplexer
RJHollins wrote:hm ... tried to put this in the circuit ... did not pass audio.
I changed spelling:
- Code: Select all
streamut out0;
to
- Code: Select all
streamout out0;
still not work.
You said this should follow the 'multiplexer' module ?
sorry for the typo... No, this is a replacement for a multiplexer. It has one input "in" which is being multiplexed between the outputs, based on the "index" input. Also note, that I've put "..." in the code, to indicate, where you should repeat the pattern to add new outputs. Namely the first "..." denotes that you may add additional "streamout out2;". Second one indicates that for each new output you have to add additional "py3" variable (don't forget to end the line with ";"). And finally the last "..." indicates that you have to copy the code and edit respective names of variables (according to the pattern - I've provided two examples, so you can recognize it).
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Avoiding multiplexer
mmm ... ok.
I copied the code, made the spelling change, and just tried to pass audio [pink noise] to a VU meter
using only the dezipper code [module].
On the 2nd input [INDEX], I placed a toggle switch [boolean].
Nothing
I will need to come back to this ... hope to figure out.
Not having done any DSP coding, it's easy for me to goof up
still .... thx KG
I copied the code, made the spelling change, and just tried to pass audio [pink noise] to a VU meter
using only the dezipper code [module].
On the 2nd input [INDEX], I placed a toggle switch [boolean].
Nothing
I will need to come back to this ... hope to figure out.
Not having done any DSP coding, it's easy for me to goof up
still .... thx KG
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Avoiding multiplexer
KG, that's an awesome replacement for the multiplexer. Thank you for all the versions. Can't wait to see it in action.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Avoiding multiplexer
not to derail ...
but I mentioned the de-zipper.
I just placed a [green] de-zipper after the new ruby multiplexer, and the volume level dropped significantly
We're talking more than a 10dB drop.
Curious minds wonder WHY
but I mentioned the de-zipper.
I just placed a [green] de-zipper after the new ruby multiplexer, and the volume level dropped significantly
We're talking more than a 10dB drop.
Curious minds wonder WHY
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
16 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 36 guests