TableRead(table, freq=1, loop=0, interp=2, mul=1, add=0)
Simple waveform table reader.
Read sampled sound from a table, with optional looping mode.
Parent class : PyoObject
Parameters:
table : PyoTableObject Table containing the waveform samples. freq : float or PyoObject, optional Frequency in cycles per second. Defaults to 1. loop : int {0, 1}, optional Looping mode, 0 means off, 1 means on. Defaults to 0. interp : int, optional Choice of the interpolation method. Defaults to 2. 1 : no interpolation 2 : linear 3 : cosinus 4 : cubic
Methods:
setTable(x) : Replace the `table` attribute. setFreq(x) : Replace the `freq` attribute. setLoop(x) : Replace the `loop` attribute. setInterp(x) : Replace the `interp` attribute.
Attributes:
table : PyoTableObject. Table containing the waveform samples. freq : float or PyoObject, Frequency in cycles per second. loop : int, Looping mode. interp : int {1, 2, 3, 4}, Interpolation method.
Notes:
TableRead will sends a trigger signal at the end of the playback if loop is off or any time it wraps around if loop is on. User can retreive the trigger streams by calling obj['trig']: >>> tabr = TableRead(SNDS_PATH + "/transparent.aif").out() >>> trig = TrigRand(tab['trig'])
See also : Osc
Examples:
>>> s = Server().boot() >>> s.start() >>> snd = SndTable(SNDS_PATH + '/transparent.aif') >>> a = TableRead(table=snd, freq=snd.getRate(), loop=0).out()
Methods details:
TableRead.setTable(x): Replace the `table` attribute. Parameters: x : PyoTableObject new `table` attribute. TableRead.setFreq(x): Replace the `freq` attribute. Parameters: x : float or PyoObject new `freq` attribute. TableRead.setLoop(x): Replace the `loop` attribute. Parameters: x : int {0, 1} new `loop` attribute. TableRead.setInterp(x): Replace the `interp` attribute. Parameters: x : int {1, 2, 3, 4} new `interp` attribute.