This first simple example is intended to acquaint the reader with the main computational elements which are used over and over again in digital waveguide modeling. The example is a simple plucked string along the lines described in §4.6.
The programming language chosen is C++, and we make use of the free (for noncommercial use), open-source framework called the Synthesis Tool Kit (STK) [86]. In general, we tend to use Matlab for sound analysis work, and the STK for developing sound synthesis prototypes.
The first listing below is a simple main program, main.cpp, followed by discussion of how it works. The second listing gives the plucked-string object itself, SimpString, followed by some discussion. The component STK modules are described in the STK Class Documentation.