Waveguide

Waveguide(input, freq=100, dur=10, minfreq=20, mul=1, add=0)

Basic waveguide model.

A waveguide model consisting of one delay-line with a simple lowpass filtering and lagrange interpolation.

Parent class : PyoObject

Parameters:

    input : PyoObject
        Input signal to delayed.
    freq : float or PyoObject, optional
        Frequency, in cycle per second, of the waveguide (i.e. the inverse 
        of delay time). Defaults to 100.
    dur : float or PyoObject, optional
        Duration, in seconds, for the waveguide to drop 40 dB below it's 
        maxima. Defaults to 10.
    minfreq : float, optional
        Minimum possible frequency, used to initialized delay length. 
        Available only at initialization. Defaults to 20.

Methods:

    setInput(x, fadetime) : Replace the `input` attribute.
    setFreq(x) : Replace the `freq` attribute.
    setDur(x) : Replace the `dur` attribute.

Attributes:

    input : PyoObject. Input signal to delayed.
    freq : float or PyoObject. Frequency in cycle per second.
    dur : float or PyoObject. Resonance duration in seconds.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> t = LinTable([(0,0), (2,1), (5,0), (8191,0)])
    >>> met = Metro().play()
    >>> pick = TrigEnv(met, table=t, dur=1)
    >>> w = Waveguide(pick, freq=[200,400], dur=20, minfreq=20, mul=.5).out()

Methods details:

    Waveguide.setInput(x, fadetime=0.05):

        Replace the `input` attribute.
        
        Parameters:

        x : PyoObject
            New signal to process.
        fadetime : float, optional
            Crossfade time between old and new input. Defaults to 0.05.

    Waveguide.setFreq(x):

        Replace the `freq` attribute.
        
        Parameters:

        x : float or PyoObject
            New `freq` attribute.

    Waveguide.setDur(x):

        Replace the `dur` attribute.
        
        Parameters:

        x : float or PyoObject
            New `dur` attribute.