class Decimate extends Chugen { 12 => int decFactor; // decimation factor 0 => int counter; 0.0 => float out; fun float tick(float in) { if (counter++ >= decFactor) { 0 => counter; in => out; } return out; } fun void setDec(int aFactor) { aFactor => decFactor; } } SinOsc s => Decimate gh => dac; 3.0 :: second => now;