MatrixPointer

MatrixPointer(matrix, x, y, mul=1, add=0)

Matrix reader with control on the 2D pointer position.

Parent class : PyoObject

Parameters:

    matrix : PyoMatrixObject
        Matrix containing the waveform samples.
    x : PyoObject
        Normalized X position in the matrix between 0 and 1.
    y : PyoObject
        Normalized Y position in the matrix between 0 and 1.

Methods:

    setMatrix(x) : Replace the `matrix` attribute.
    setX(x) : Replace the `x` attribute.
    setY(x) : Replace the `y` attribute

Attributes:

    matrix : PyoMatrixObject. Matrix containing the waveform samples.
    x : PyoObject. X pointer position in the matrix.
    y : PyoObject. Y pointer position in the matrix.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> SIZE = 256
    >>> mm = NewMatrix(SIZE, SIZE)
    >>> fmind = Sine(.2, 0, 2, 2.5)
    >>> fmrat = Sine(.33, 0, .05, .5)
    >>> aa = FM(carrier=10, ratio=fmrat, index=fmind)
    >>> rec = MatrixRec(aa, mm, 0).play()
    >>> lfx = Sine(.1, 0, .24, .25)
    >>> lfy = Sine(.15, 0, .124, .25)
    >>> x = Sine(1000, 0, lfx, .5)
    >>> y = Sine(1.5, 0, lfy, .5)
    >>> c = MatrixPointer(mm, x, y, .5).out()

Methods details:

    MatrixPointer.setMatrix(x):

        Replace the `matrix` attribute.
        
        Parameters:

        x : PyoTableObject
            new `matrix` attribute.

    MatrixPointer.setX(x):

        Replace the `x` attribute.
        
        Parameters:

        x : PyoObject
            new `x` attribute.

    MatrixPointer.setY(x):

        Replace the `y` attribute.
        
        Parameters:

        y : PyoObject
            new `y` attribute.