A simple waveguide model consisting of one delay-line and one first-order lowpass filter.
Syntax
areswguide1asig,xfreq,kcutoff,kfeedback
Performance
asig -- the input of excitation noise.
xfreq -- the frequency (i.e. the inverse of delay time) Changed to x-rate in Csound version 3.59.
kcutoff -- the filter cutoff frequency in Hz.
kfeedback -- the feedback factor.
wguide1 is the most elemental waveguide model, consisting of one delay-line and one first-order lowpass filter.
Implementing waveguide algorithms as opcodes, instead of orc instruments, allows the user to set kr different than sr, allowing better performance particulary when using real-time.
wguide1.
Examples
Here is an example of the wguide1 opcode. It uses the file wguide1.csd.
<CsoundSynthesizer><CsOptions>; Select audio/midi flags here according to platform; Audio out Audio in-odac ;;;RT audio out; For Non-realtime ouput leave only the line below:; -o wguide1.wav -W ;;; for file output any platform</CsOptions><CsInstruments>; by Kevin Conder; additions by Menno Knevel 2021sr=44100ksmps=32nchnls=20dbfs=1instr1; Generate some noise.asignoise.5,0.5outsasig,asigendininstr2asignoise.5,0.5; Generate some noise.kfreqlinep4,p3,100; Run it through a wave-guide model.kcutoffinit3000kfeedbackinit0.8awg1wguide1asig,kfreq,kcutoff,kfeedbackoutsawg1,awg1endin</CsInstruments><CsScore>i102; freqi2252000; falling frequencyi283100; statice</CsScore></CsoundSynthesizer>