wgpluck2Signal Generators:Waveguide Physical Modelingwgpluck2wgpluck2
Physical model of the plucked string.
Descriptionwgpluck2 is an implementation of the physical model of the plucked string, with control over the pluck point, the pickup point and the filter. Based on the Karplus-Strong algorithm.
Syntaxares wgpluck2 iplk, kamp, icps, kpick, kreflInitializationiplk -- The point of pluck is iplk, which is a fraction of the way up the string (0 to 1). A pluck point of zero means no initial pluck.
icps -- The string plays at icps pitch.
Performancekamp -- Amplitude of note.
kpick -- Proportion of the way along the string to sample the output.
krefl -- the coefficient of reflection, indicating the lossiness and the rate of decay. It must be strictly between 0 and 1 (it will complain about both 0 and 1).
Examples
Here is an example of the wgpluck2 opcode. It uses the file wgpluck2.csd.
Example of the wgpluck2 opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoWaveguide Physical ModelingCreditsAuthor: &namejohn; (after &nameperry;)University of Bath, Codemist Ltd.Bath, UKNew in Csound version 3.47