Classes (extension) | Undocumented classes | UGens > Undocumented | UGens > Unclassified

PermMod : UGen : AbstractFunction : Object

Sample permutation UGen.


This UGen takes an audio-rate input and commutes chunks of samples, swapping the odd chunks and the even ones. To avoid bad behaviour, "freq" parameter must always be strictly > 0 and <= double the input samplerate. High frequencies lead to distortion and resonance, low frequencies lead to auto-arpeggio-like and repetition-like effects.

Class Methods, freq: 100, mul: 1, add: 0)



An audio-rate input.


The frequency at which you wish the permutation to occur. For example, a 100Hz value applied on a 44100Hz input generates chunks of 441 samples. Since chunks must contain an integer number of samples, some frequencies yield the same result, because the chunk length is rounded.


Output will be multiplied by this value.


This value will be added to the output.


A commuted audio-rate output.

Inherited class methods

Instance Methods

Inherited instance methods


// Permute a simple sinusoid ten times its frequency: {,2200)}.play // Modulate both the sinusoid's and the permutation frequency with the mouse: {,440)),, 8800))}.play // Distort any input with an Electronic Telephone Ring effect: {,,0.5,1000,2000))}.play // Remember to use strictly positive unipolar signals as control, in this case the "add" parameter is 1000. // Quantized frequency-sweep-like effect on existing file: b =, 'C:/Folder/File.wav') {, b),,0,2000,4000))}.play