Use Non-Frames Version Previous Page Next Page
Signal Generators: Waveguide Physical Modeling

wgbowedbar

  ar      wgbowedbar kamp, kfreq, kpos, kbowpres, kgain[, kconst, ktvel, kbowpos, ilow]

Description

A physical model of a bowed bar, belonging to the Perry Cook family of waveguide instruments.

Initialization

ilow (optional) – lowest frequency required

Performance

kamp – amplitude of signal

kfreq – frequency of signal

kpos – position of the bow on the bar, in the range 0 to 1

kbowpres – pressure of the bow (as in wgbowed)

kgain – gain of filter. A value of about 0.809 is suggested.

kconst (optional) – an integration constant. Default is zero.

ktvel (optional) – either 0 or 1. When ktvel = 0, the bow velocity follows an ADSR style trajectory. When ktvel = 1, the value of the bow velocity decays in an exponentially.

kbowpos (optional) – the position on the bow, which affects the bow velocity trajectory.

Example


;orchestra ----------------

  instr 1
; pos      =         [0, 1]
; bowpress =         [1, 10]
; gain     =         [0.8, 1]
; intr     =         [0,1]
; trackvel =         [0, 1]
; bowpos   =         [0, 1]

  kb      line       0.5, p3, 0.1
  kp      line       0.6, p3, 0.7
  kc      line       1, p3, 1

  a1      wgbowedbar p4, cpspch(p5), kb, kp, 0.995, p6, 0, kc, 50

          out        a1
          endin

;score -----------------

  i1      0  3 32000 7.00 0

  e


Author

John ffitch (after Perry Cook)
University of Bath, Codemist Ltd.
Bath, UK
New in Csound version 4.07


Use Non-Frames Version Previous Page Next Page
Signal Generators: Waveguide Physical Modeling