The bit crush was asking not too long ago on the mailing list, credit to JOS:
nbits = hslider("BitCrush BITS [knob:4]",24,2,24,1); scaler = float(2^nbits-1); round(x) = floor(x+0.5); bitcrusher(nbits,x) = x :abs: *(scaler) : round : /(scaler) * (2*(x>0)-1.0); Here's Sample redux redux = hslider("BitCrush SamplFrq [knob:3]",44100,44100/64,44100,1); sampleRedux = ba.downSample(redux); Soft clipping if I can remember is ef.cubicNL (Think cubic is either soft or hard I forget) With Tube/analog modelling distortion, I feel like there was a talk maybe on the Faust conference, and maybe that's what Dirk's Wavedigital filter can help with, emulating real circuit components. I think if you look through the mailing list answers from recently, there's someone asking about a wave folding distortion, so you may gain some insights there. On Fri, 4 Dec 2020 at 15:53, da <d...@randomstyles.net> wrote: > hello, > > i am trying to figure out how to create different distortion effects. is > there a site where you can look at some algorithms and how to implement > them into faust? > > i am very much interested in these kind of distortion-types: > > > Tube/Valve Distortion > > Clipping > > Foldback > > Overdrive > > Bitcrushing > > Sample Rate Reduction / Decimate > > Wavetable Distortion > > > thanks a lot :-) > > > > _______________________________________________ > Faudiostream-users mailing list > Faudiostream-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-users >
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users