PURE DATA forum~

...that deal with pure data

You are not logged in.

#1 2009-05-12 00:53:49

toxonic
Member

saturation

a little saturation abstraction with an example patch. works fine for me, although i'm not really sure, what i've done there! ;-)

Last edited by toxonic (2009-05-12 00:54:14)

Offline

 

#2 2009-05-12 14:25:06

saturno
Member

Re: saturation

Works pretty well. A while back I made a nonlinear compressor (saturator) external for pd. It uses polynomial functions to generate the nonlinear component.

http://puredata.info/Members/saturno/sa … compressor

Like a compressor time is also a variable

Offline

 

#3 2009-05-12 16:40:55

toxonic
Member

Re: saturation

wow, i don't have a clue about c, but i'd really like to - looks amazing, so many lines of code! ;)
a question: how can i add the external to pd?
i just use pd for some weeks (although i've been interested for a whole while before), and i never added a new external to it....

Offline

 

#4 2009-05-12 17:41:53

saturno
Member

Re: saturation

are you running Linux, Mac or Windows?

Offline

 

#5 2009-05-12 18:16:48

toxonic
Member

Re: saturation

most of the time on win, but would be good to know how it works on linux too....

Offline

 

#6 2009-05-12 18:37:17

saturno
Member

Re: saturation

ok, it should be here build/winxp-pd-0.4.03/saturator.dll

You need to copy that and help-saturator~.pd to your PD's path. If you have PD-Extended you should automatically have on in your user's folder
Application Data/Pd

Then you have to add "saturator" to your startup in order to load the classes. You can do this manually by creating a [saturator] object. If everything works properly you should see this in PD's console:
  saturator: saturator~, saturator_vu~, saturator_thresh~

For linux you have to build it. You can do this by running the command "make" in the unzipped folder. Then copy saturator.pd_linux to PD's path and at it to the startup.

Offline

 

#7 2009-05-12 18:47:26

toxonic
Member

Re: saturation

ok, but how do i add something to the startup? i know, there is a startup entry in the file-menu, but when i'm there, it asks me for a new startup-"command".... what do i have to enter there? the path to the dll?
sorry, i have no idea...

Offline

 

#8 2009-05-12 18:49:35

saturno
Member

Re: saturation

That's it. You click on "new" and then type in "saturator"

What startup does is load an object of that name. It's no different than opening a new patch and creating a [saturator] object.

Offline

 

#9 2009-05-13 00:33:07

toxonic
Member

Re: saturation

thnx! that works! however, the help patch commits error messages when tweaking attacktime... but i only had a short view to it, so, i'll get deeper into it when i've got more time - but looks pretty cool!
how long did it take you, to code that thing? i tried to get into c some months ago, but i stuck.... ;) the longest code i've written was  a gui-less "tic-tac-toe" for the shell, hahaha!

Offline

 

#10 2009-05-13 01:01:53

saturno
Member

Re: saturation

error: unpack: type mismatch?
Don't worry about that.

3 months on and off. Figuring the math out took much longer than the actual code.

Offline

 

#11 2009-05-25 18:03:04

robinhoode
Member

Re: saturation

AFAIK this is just tanh(x*y*e).. Is that correct? I tried

[osc~ 200]
|
[expr~ tanh($v1*$v2*2.718)]
|
[dac~]

and pretty much got the same thing. Where did you find this equation, by the way? I'm just finishing up calculus and would love to read more on this topic.

Thanks,
- Robin

Offline

 

#12 2009-05-27 00:14:56

toxonic
Member

Re: saturation

to be honest, i tried to adapt a saturation circuit from a reaktor ensemble but i couldn't figure out how, and i was not patient enough to check all modules used in the ensemble for their counterpart in pd, so i was just experimenting a bit with some of the parts (this is why i used this particular float).... that's why i typed in my first post, that i did not really know what i've done in this patch.... ;-)
nothing but the truth!

Offline

 

#13 2009-08-02 23:42:59

diplipito
Member

Re: saturation

Toxonic

Pretty nice
Thanks for sharing

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson


pd.webring info