( var name, func, specs, componentType, componentSubtype, builder;
name = "Decimator"; // name of your plugin
func = {
| sampleRate, bitRate|
var decOut, in;
in = AudioIn.ar([1]); //Input from AU host
decOut = Decimator.ar(in, sampleRate , bitRate).dup;
Out.ar([0,1], decOut);//Output to AU host
};
specs = #[
[0, 20000 , \Linear, 10000,\Hertz ] ,
[0, 16 , \Linear, 8,\Indexed ]
];
componentType = \aufx;
componentSubtype = \DECI;
builder = AudioUnitBuilder.new(name, componentSubtype,func, specs, componentType);
builder.makeInstall;
)
Monday, June 8, 2009
2 channel bitcrusher
A small update to my bitcrusher plugin, duplicating the bitchrushed output for 'stereo'. The old version had only 1 channel output, which was to be expected as the input was only 1 channel, but this meant that in Garageband at least the signal was just one channel of a 2 channel track. In effect that the signal was panned all the way to the left with no way of centering it, duplicating the output works round this.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment