Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread Chris Clepper
The trick is having a very good anti-aliasing filter just like the FIR in a high end ADC or SRC or very good mastering processors. An IIR just won't work well due to the phase shifting and low order stop band attenuation. I don't think Pd has anything built in other than fexpr~ and coefficient se

Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread cyrille henry
I don't understand. can you share your patch? thanks c Le 28/10/2017 à 16:54, Alexandre Torres Porres a écrit : 2017-10-28 11:12 GMT-02:00 cyrille henry mailto:c...@chnry.net>>: So, oversampling by 512 must kill all aliasing. yeah, but what I found is that it doesn't get that much bet

Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread Alexandre Torres Porres
2017-10-28 11:12 GMT-02:00 cyrille henry : > > So, oversampling by 512 must kill all aliasing. > yeah, but what I found is that it doesn't get that much better than, say 16x ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> ht

Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread cyrille henry
Le 28/10/2017 à 14:27, Alexandre Torres Porres a écrit : 2017-10-28 9:51 GMT-02:00 cyrille henry mailto:c...@chnry.net>>: I think added harmonics are : 2, 4, 8, 16... No, they're all multiples of the fundamental frequency. You can debate wether the 1st harmonic or 1st partial is the

Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread Alexandre Torres Porres
2017-10-28 9:51 GMT-02:00 cyrille henry : > > > I think added harmonics are : 2, 4, 8, 16... > No, they're all multiples of the fundamental frequency. You can debate wether the 1st harmonic or 1st partial is the fundamental, people use this in different ways. I see the fundamental as the first par

Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread cyrille henry
Le 28/10/2017 à 11:31, Roman Haefeli a écrit : On Sam, 2017-10-28 at 10:48 +0200, cyrille henry wrote: Le 28/10/2017 à 02:08, Alexandre Torres Porres a écrit : 2017-10-27 19:12 GMT-02:00 cyrille henry mailto:ch@c hnry.net>>: depending on the input you can also LP filter the signal

Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread Roman Haefeli
On Sam, 2017-10-28 at 10:48 +0200, cyrille henry wrote: > > Le 28/10/2017 à 02:08, Alexandre Torres Porres a écrit : > > > > > > > > 2017-10-27 19:12 GMT-02:00 cyrille henry mailto:ch@c > > hnry.net>>: > > > > depending on the input you can also LP filter the signal before > > the distort

Re: [PD] a slightly nicer saturator than tanh~

2017-10-28 Thread cyrille henry
Le 28/10/2017 à 02:08, Alexandre Torres Porres a écrit : 2017-10-27 19:12 GMT-02:00 cyrille henry mailto:c...@chnry.net>>: depending on the input you can also LP filter the signal before the distortion. oversampling and filtering is the worst way to deal with aliasing, but sometim

Re: [PD] a slightly nicer saturator than tanh~

2017-10-27 Thread Alexandre Torres Porres
2017-10-27 19:12 GMT-02:00 cyrille henry : > depending on the input you can also LP filter the signal before the > distortion. > > oversampling and filtering is the worst way to deal with aliasing, but > sometimes there is no other solution. recently I found out the results were kinda terrible a

Re: [PD] a slightly nicer saturator than tanh~

2017-10-27 Thread Miller Puckette
Also try arctangent in place of tanh. Its asymptotic behavior is 1/x instead of e^(-x) which makes for softer clipping. I often make a big table to speed up the atan lookup using tabread4~ although you have to be careful at the table limits. cheers Miller On Fri, Oct 27, 2017 at 11:12:56PM +020

Re: [PD] a slightly nicer saturator than tanh~

2017-10-27 Thread cyrille henry
depending on the input you can also LP filter the signal before the distortion. oversampling and filtering is the worst way to deal with aliasing, but sometimes there is no other solution. Le 27/10/2017 à 22:03, Matt Davey a écrit : ok yeah, i guess i mean, "nicer" in a way that doesn't alias

Re: [PD] a slightly nicer saturator than tanh~

2017-10-27 Thread Matt Davey
ok yeah, i guess i mean, "nicer" in a way that doesn't alias so bad. seems oversampling and filtering is the way to go with that, but just wondering if there's some cheap way to avoid aliasing with distortion, without oversampling too much? ___ Pd-list@l

Re: [PD] a slightly nicer saturator than tanh~

2017-10-27 Thread cyrille henry
hello, I think "nicer" is really subjective. tabread4~ is the faster algorithm. (then, put whaterver curve you want in the table) you can have a look at nusmuk-audio for different distortion algorithm, cheers cyrille Le 27/10/2017 à 20:37, Matt Davey a écrit : I'm looking for something with

[PD] a slightly nicer saturator than tanh~

2017-10-27 Thread Matt Davey
I'm looking for something with a slightly better saturation character than tanh~, but with not much more than about 4 times the CPU usage. Was thinking of just upsampling and filtering tanh~ in a subpatch, but does anyone else have a decent saturation algorithm that might be better? __