## Other questions (DSP module list)

Scope and XITE Development

Original topic on PlanetZ: https://forums.scopeusers.com/viewtopic.php?t=13976

####

Posted: Mon Oct 04, 2004 1:56 am
by Shayne White
Hi everyone,
I just got the SDK a couple of days ago, and I'm slowly but surely learning how it works...however, there seem to be some basic functions I need that I can't find. I found the unipolar to bipolar module in the huge DSP list, but I can't find a bipolar to unipolar module. And what I need right now most of all is a module like Modular's Diode -- basically it filters out all negative values. Does anyone know if there is a module like Diode, and if not, how I would go about making one? Nothing I found seemed to suggest anything like filtering out negative values.
Thanks very much,
Shayne

####

Posted: Mon Oct 04, 2004 3:20 am
by j9k
the easiest way would be to download the one from http://www.steckenleiter.de/ but if you want to make one there are two ways.
1. run your signal into a bitchop set to 1 then into both inputs of a mix2. this will create a square wave that changes when the waveform crosses the zero. now use a sync multiplier with the origional signal in one input and the squarewave in the other. this is a full wave rectifier.
2.run your origional signal into a mix2 and mix with -2147483647 run that through another mix2 and mix with 2147483647. this is a half wave rectifier.
j9k

####

Posted: Mon Oct 04, 2004 3:21 am
by Warp69
Hey,
You can use the 'If' (async) module or the 'compare' (sync) modules.
Cheers

####

Posted: Mon Oct 04, 2004 11:52 am
by Shayne White
J9k, I tried your suggestion but I don't think the bitchop was working properly -- it didn't output anything. (I set N to 1 -- was that what you meant?) And then, adding all the other modules, the result was that I had a very narrow value range (I guess I should have said I'm working with value numbers, not audio). The rectifier module I downloaded didn't seem to do anything either. I KNOW ALMOST ABSOLUTLY NOTHING ABOUT ANYTHING THAT WASN'T IN MODULAR.
Warp69, I put in the "If" modules and fiddled around with parameters, but I couldn't get it to do what I wanted. I guess I don't really know how it works.
Thanks guys for your time, and please forgive me for being so stupid!!
Shayne
P.S. I wish CW had included a module reference manual like they did with Modular!
_________________
Melodious Synth Radio
http://www.melodious-synth.com
Indieanna: Integrated Solutions for the Independent Musician
http://www.indieanna.com

####

Posted: Mon Oct 04, 2004 12:10 pm
by Warp69
@Shayne :
Make the No/Yes value taps visible. Set the 'If' value to zero and the condition to '>'. If the value is above zero the signal thats connected to the Yes value tap will pass through the 'If' module and if the value is below zero then its the No Value that will pass through the module.
Ex. : Connect the 'In' and 'Yes Value' taps and also connect the 'In' tap to a negative module and back into the 'No Value'.
That will rectify (full) any signal.
If you need a half rectified signal then the 'No value' should be constant zero.
Hope that help.
Remember that the 'If' module is async.
Cheers

####

Posted: Mon Oct 04, 2004 7:42 pm
by Shayne White
Thank you so much! After much tweaking with the "If" module I got it to do what I wanted. I've uploaded the resulting device to the devices forum.
Shayne
_________________
Melodious Synth Radio
http://www.melodious-synth.com
Indieanna: Integrated Solutions for the Independent Musician
http://www.indieanna.com