Making Virtual Electric Guitars and Guitar Effects
Using Faust and Octave
Karplus-Strong Digitar Algorithm
Exciting the Digitar StringSearch Physical Audio Signal Processing
Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?
A new ``pluck'' is obtained in the digitar algorithm by writing new
random numbers into the waveform memory (the delay line
in Fig.D.1). The fundamental frequency
is
approximately given by the sampling rate
divided by the memory
length
, or
. This relation is not exact because
the two-point average adds a half-sample phase
delay [460]
A more accurate formula is therefore
Figure D.2 lists a Faust program implementing the digitar algorithm (adapted from the programming example karplus.dsp distributed with Faust), and Fig.D.3 shows the block diagram generated by faust for the resonator definition in Fig.D.2 (using the -svg command-line option, as discussed in the Faust intro [464