Looper(table, pitch=1, start=0, dur=1, xfade=20, mul=1, add=0)
Crossfading looper.
Looper reads audio from a PyoTableObject and plays it back in a loop with user-defined pitch, start time, duration and crossfade time. It allows negative pitch value for reading backward.
Parent class : PyoObject
Parameters:
table : PyoTableObject Table containing the waveform samples. pitch : float or PyoObject, optional Transposition factor. 1 is normal pitch, 0.5 is one octave lower, 2 is one octave higher and negative pitch signifies backwards playback. Defaults to 1. start : float or PyoObject, optional Starting point, in seconds, of the loop. Defaults to 0. dur : float or PyoObject, optional Duration, in seconds, of the loop. Defaults to 1. xfade : float {0 -> 100}, optional Pourcentage of the loop time used to crossfade readers. Available at intialization time only. Defaults to 20.
Methods:
setTable(x) : Replace the `table` attribute. setPitch(x) : Replace the `pitch` attribute. setStart(x) : Replace the `start` attribute. setDur(x) : Replace the `dur` attribute.
Attributes:
table : PyoTableObject. Table containing the waveform samples. pitch : float or PyoObject, Transposition factor. start : float or PyoObject, Loop start position in seconds. dur : float or PyoObject, Loop duration in seconds.
Examples:
>>> s = Server().boot() >>> s.start() >>> tab = SndTable(SNDS_PATH + '/transparent.aif') >>> pit = Choice(choice=[.5,.75,1,1.25,1.5], freq=[3,4]) >>> start = Phasor(freq=.05, mul=tab.getDur()) >>> dur = Choice(choice=[.0625,.125,.125,.25,.33], freq=4) >>> a = Looper(table=tab, pitch=pit, start=start, dur=dur, xfade=20).out()
Methods details:
Looper.setTable(x): Replace the `table` attribute. Parameters: x : PyoTableObject new `table` attribute. Looper.setPitch(x): Replace the `pitch` attribute. Parameters: x : float or PyoObject new `pitch` attribute. Looper.setStart(x): Replace the `start` attribute. Parameters: x : float or PyoObject new `start` attribute. Looper.setDur(x): Replace the `dur` attribute. Parameters: x : float or PyoObject new `dur` attribute.