wgclarSignal Generators:Waveguide Physical Modelingwgclarwgclar
Creates a tone similar to a clarinet.
Description
Audio output is a tone similar to a clarinet, using a physical model developed from &nameperry;, but re-coded for Csound.
Syntaxares wgclar kamp, kfreq, kstiff, \
iatt, idetk, kngain, kvibf, kvamp [, ifn] [, iminfreq]Initializationiatt -- time in seconds to reach full blowing pressure. 0.1 seems to correspond to reasonable playing. A longer time gives a definite initial wind sound.
idetk -- time in seconds taken to stop blowing. 0.1 is a smooth ending
ifn (optional) -- table of shape of
vibrato, defaults yo te usual sine table.
iminfreq (optional) -- lowest frequency at which the instrument will play. If it is omitted it is taken to be the same as the initial kfreq. If iminfreq is negative, initialization will be skipped.
Performance
A note is played on a clarinet-like instrument, with the arguments as below.
kamp -- Amplitude of note.
kfreq -- Frequency of note played.
kstiff -- a stiffness parameter for the reed. Values should be negative, and about -0.3. The useful range is approximately -0.44 to -0.18.
kngain -- amplitude of the noise component, about 0 to 0.5
kvibf -- frequency of vibrato in Hertz. Suggested range is 0 to 12
kvamp -- amplitude of the vibrato
Examples
Here is an example of the wgclar opcode. It uses the file wgclar.csd.
Example of the wgclar 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.47ifn optional in 6.06