Other questions (DSP module list)

A place for developers to share ideas and assist each other in solving problems.

Moderators: valis, garyb

Post Reply
Shayne White
Posts: 1454
Joined: Tue Dec 11, 2001 4:00 pm
Location: California
Contact:

Post 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
Melodious Synth Radio
http://www.melodious-synth.com

Melodious synth music by Binary Sea
http://www.binary-sea.com
j9k
Posts: 266
Joined: Sun Feb 24, 2002 4:00 pm
Location: san diego
Contact:

Post 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
Warp69
Posts: 679
Joined: Sun Jun 17, 2001 4:00 pm
Location: Denmark
Contact:

Post by Warp69 »

Hey,

You can use the 'If' (async) module or the 'compare' (sync) modules.

Cheers


<font size=-1>[ This Message was edited by: Warp69 on 2004-10-04 04:22 ]</font>
Shayne White
Posts: 1454
Joined: Tue Dec 11, 2001 4:00 pm
Location: California
Contact:

Post 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. :smile:

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! :roll:

_________________
Melodious Synth Radio
http://www.melodious-synth.com

Indieanna: Integrated Solutions for the Independent Musician
http://www.indieanna.com

<font size=-1>[ This Message was edited by: Shayne White on 2004-10-04 12:53 ]</font>
Warp69
Posts: 679
Joined: Sun Jun 17, 2001 4:00 pm
Location: Denmark
Contact:

Post 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
Shayne White
Posts: 1454
Joined: Tue Dec 11, 2001 4:00 pm
Location: California
Contact:

Post 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. :grin: :grin: :grin:

Shayne

_________________
Melodious Synth Radio
http://www.melodious-synth.com

Indieanna: Integrated Solutions for the Independent Musician
http://www.indieanna.com


<font size=-1>[ This Message was edited by: Shayne White on 2004-10-04 20:42 ]</font>
Post Reply