OMChroma Reference

PLUCK-2

CLASS SLOTS:
- self Synthesis event [default = NIL]
- numcols Number of components [int] [default = 1]
- action-time Event offset [s] [default = 0]
- user-fun A lambda function applied to each component [default = NIL]

ARRAY SLOTS (KEYWORDS):
- e-dels Entry Delays [sec] [default = 0]
- durs Durations [sec] [default = 1]
- amp Maximum Amplitude [lin, >0.0-1000.0 or dB <= 0.0]
[default = -6.0]
- freq (Minimum) current frequency [Hz]
[default = 440.0]
- buf Intended frequency of the noise (buffer) [sec]
[default = 220.0]
- dec Decay time/% of the total dur of the amp envelope [sec/%]
[default = 0.8]
- ranfun Function number of the random source [GEN]
[default = 0]
- meth Method of natural decay [1, 2, 3, 4, 5, 6]
[default = 4]
- par1 Optional parametre required by some synthesis techniques [see class]
parameter required by some values of METH
[default = 0.5]
- par2 Optional parametre required by some synthesis techniques [see class]
parameter required by some values of METH
[default = 10.0]

Description:

;=============================================================================
; PLUCK-2.ORC
; PLUCKED STRING USING THE KARPLUS-STRONG MODEL
; (FROM ACCCI, 15_01_3.ORC) / MONO
; AMPLITUDE ENVELOPE WITH LINSEG, CONTROL OVER INTIALIZATION AND DECAY MODES
;=============================================================================

; Timbre: Plucked string
; Synthesis: Karplus-Strong algorithm
; PLUCK
; LINSEG envelope, cembalo sounds
; Coded: jpg 8/93, modified ms 9/02, 8/08

; NB: NEW STRUCTURE FOR THE AMPLITUDES FROM AUGUST 2008!
; Positive value > 0.0 : linear amplitude (>0.0-1000.0)
; 0.0 or negative value : amplitude in dB (0 = maximum value)

; The apparently arbitrary amplitude range (0-1000, rather than 0-1)
; avoids printing small values with exponential notation
; Default SR = 96000, recommended precision: 24 bits
;-----------------------------------------------------------------------------
; p1 = instrument number
; p2 = action time [sec]
; p3 = duration [sec]
; p4 = maximum amp [linear, >0.0-1000.0 or dB, <= 0.0]
; p5 = freq [Hz]
; p6 = intended freq (buffer) [Hz]
; p7 = % of the total duration used for the last decay [0-1]
; p8 = table number of a stored function [GEN or 0=random]
; p9 = method of natural decay
; 1: simple averaging
; 2: stretched averaging. ipar1=stretch factor of smoothing time
; 3: simple drum. ipar1=roughness factor [0-1]
; 0=plucked string
; 1=reverse the polarity of each sample (oct down, odd harms)
; 0.5=optimum drum
; 4: stretched drum. ipar1=roughness, ipar2=stretch factor
; 5: weighted averaging. ipar1=weight for the current sample
; ipar2: weight for the previous adjacent one.
; NB: ipar1+ipar2<=1.0
; 6: 1st order recursive filter with coef 0.5
; p10 = ipar1 (used by p9, see above)
; p11 = ipar2 (used by p9, see above)
;NB: plucked strings (1,2,5,6) are best realised by starting with random noise
; (p8=0). Drum sounds (3,4) work best with a flat source (wide pulse).
;-----------------------------------------------------------------------------
; COMPULSORY GEN FUNCTIONS
; none
;_____________________________________________________________________________




see Csound Tables Conventions


Auto doc generation by OpenMusic 6.6 © 2010 IRCAM