// multiple pitch shifter (MPS) effect // Copyright 2008 Les Hall // This software is protected by the GNU General Public License // parameters 5 => int num_pitshifts; // number of pitch shifters to use // the patch PitShift ps[num_pitshifts]; for (int i; i < num_pitshifts; i++) { adc => ps[i] => dac; } // the patch parameters for (int i; i < num_pitshifts; i++) { 1.0 => ps[i].mix; ((i +1) $ float) / (num_pitshifts $ float) => ps[i].shift; 10.0 / (num_pitshifts $ float) => ps[i].gain; } // the time loop while (true) { second => now; }