Midictl

Midictl(ctlnumber, minscale=0, maxscale=1, mul=1, add=0)

Get the current value of a Midi channel controller.

Get the current value of a controller and optionally map it inside a specified range.

Parent class : PyoObject

Parameters:

    ctlnumber : int
        Midi channel. Available at initialization time only.
    minscale : float, optional
        Low range value for mapping. Available at initialization 
        time only.
    maxscale : float, optional
        High range value for mapping. Available at initialization 
        time only.

Notes:

    The out() method is bypassed. Midictl's signal can not be sent 
    to audio outs.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> m = Midictl(ctlnumber=[107,102], minscale=250, maxscale=1000)
    >>> p = Port(m, .02)
    >>> a = Sine(freq=p, mul=.3).out()
    >>> a1 = Sine(freq=p*1.25, mul=.3).out()
    >>> a2 = Sine(freq=p*1.5, mul=.3).out()