wgbowedbar — A physical model of a bowed bar.
A physical model of a bowed bar, belonging to the Perry Cook family of waveguide instruments.
ares wgbowedbar kamp, kfreq, kpos, kbowpres, kgain [, iconst] [, itvel] \
[, ibowpos] [, ilow]
iconst (optional, default=0) -- an integration constant. Default is zero.
itvel (optional, default=0) -- either 0 or 1. When itvel = 0, the bow velocity follows an ADSR style trajectory. When itvel = 1, the value of the bow velocity decays in an exponentially.
ibowpos (optional, default=0) -- the position on the bow, which affects the bow velocity trajectory.
ilow (optional, default=0) -- lowest frequency required
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.
Here is an example of the wgbowedbar opcode. It uses the file wgbowedbar.csd.
Example 1205. Example of the wgbowedbar opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
<CsoundSynthesizer> <CsOptions> ; Select audio/midi flags here according to platform -odac ;;;realtime audio out ;-iadc ;;;uncomment -iadc if RT audio input is needed too ; For Non-realtime ouput leave only the line below: ; -o wgbowedbar.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 instr 1 kp = p6 asig wgbowedbar p4, cpspch(p5), 1, kp, 0.995 outs asig, asig endin </CsInstruments> <CsScore> s i1 0 .5 .5 7.00 .1 ;short sound i1 + . .3 8.00 .1 i1 + . .5 9.00 .1 s i1 0 .5 .5 7.00 1 ;longer sound i1 + . .3 8.00 1 i1 + . .5 9.00 1 e </CsScore> </CsoundSynthesizer>