TableIndex

TableIndex(table, index, mul=1, add=0)

Table reader by sample position without interpolation.

Parent class : PyoObject

Parameters:

    table : PyoTableObject
        Table containing the samples.
    index : PyoObject
        Position in the table, as integer audio stream, 
        between 0 and table's size - 1.

Methods:

    setTable(x) : Replace the `table` attribute.
    setIndex(x) : Replace the `index` attribute.

Attributes:

    table : PyoTableObject. Table containing the waveform samples.
    index : PyoObject. Position in the table.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> import random
    >>> notes = [midiToHz(random.randint(60,84)) for i in range(10)]
    >>> tab = NewTable(length=10/s.getSamplingRate(), init=notes)
    >>> ind = RandInt(10, 8)
    >>> pit = TableIndex(tab, ind)
    >>> a = SineLoop(freq=pit, feedback = 0.05, mul=.5).out()

Methods details:

    TableIndex.setTable(x):

        Replace the `table` attribute.

        Parameters:

        x : PyoTableObject
            new `table` attribute.

    TableIndex.setIndex(x):

        Replace the `index` attribute.

        Parameters:

        x : PyoObject
            new `index` attribute.