View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

Pan1 Mono Panner

Pan1 Mono Panner
not sure if there is another mono panner in sc, but this will work with my code
Pan1 : UGen  { 
	//panning scaler. input 2 channels, multiplies accordingly.
	*ar { arg in, pan=0, mul=1, add=0;
		pan = 0.5 * pan + 0.5;
		^([1 - pan, pan] * in * 2 * mul + add)
	}
	*kr { arg in, pan=0, mul=1, add=0;
		pan = 0.5 * pan + 0.5;
		^([1 - pan, pan] * in * 2 * mul + add)
	}
}
/*
authors so far:
?
*/


Link to this Page