[PD] bitcrusher?

Frank Barknecht fbar at footils.org
Tue Dec 23 11:44:22 CET 2008


Hallo,
ydegoyon at gmail.com hat gesagt: // ydegoyon at gmail.com wrote:

> someone here in the workshop ask for the bitcrusher vst plugin for pd ?
> is it available in some way?
> ( better with basic pd objects )

According to:
http://cmt.siba.fi/studies/Courses/2001-2002/VST/plugins/CMT_Bitcrusher/
it's very simple. 

For the actual bitcrushing, you can use something like this:

 [*~ BD]
 | \
 |  [wrap~]
 |  |
 [-~]
 |
 [/~ BD]

Replace BD with your desired bit depth. This doesn't do rounding, but
truncates signales to [int] after multiplication, but the net result
is similar.

For the distortion use [tabread4~] with some precalculated tables.
Some weeks ago I added a Vanilla tanh.pd in the svn repo in purepd/,
that uses [exp] and the trig-identity for tanh. There also is sinh and
cosh, if you want them, or make your own after refreshing the needed
math on pages like this: 
http://math2.org/math/trig/hyperbolics.htm

Or just use [expr].

The downsampling can be realized by sending the signal through a
[samphold~] that is triggered by a variable rate [phasor~]. 

The abstractions library for RjDj (for which we can use Pd
builtins only and also no expr) includes the downsampling as
[e_alias] and the tanh-distortion as [e_softclip], see:
http://trac.rjdj.me/browser/trunk/rjlib/rj

All this sounds pretty nasty! ;)

Ciao
-- 
 Frank Barknecht            Do You RjDj.me?          _ ______footils.org__




More information about the Pd-list mailing list