Pluck:
Filter:
Classes | UGens > Delays

Pluck : UGen : AbstractFunction : Object

A Karplus-Strong UGen
Source: Pluck.sc

Description

A Karplus-Strong UGen

Class Methods

Pluck.ar(in: 0.0, trig: 1.0, maxdelaytime: 0.2, delaytime: 0.2, decaytime: 1.0, coef: 0.5, mul: 1.0, add: 0.0)

Arguments:

in

an excitation signal.

trig

upon a negative to positive transition, n samples of the excitation signal will be fed into the delay line, where n = delaytime * sample_rate / 2, using a rectangular envelope (no fading).

maxdelaytime

the max delay time in seconds (initializes the internal delay buffer).

delaytime

delay time in seconds.

decaytime

time for the echoes to decay by 60 decibels. Negative times emphasize odd partials.

coef

the coef of the internal OnePole filter. Values should be between -1 and +1 (larger values will be unstable... so be careful!).

mul
add

Inherited class methods

Instance Methods

Inherited instance methods

Examples