Karplus-Strong...: Two string version of Karplus-Strong Guitar.

Clone this repo:

Branches

  1. caaa4ae final gds oasis by Jeff DiCorpo · 2 years, 11 months ago main
  2. ca4e047 Rebuild with DECAP_PERCENT=70 by Tamas Hubai · 2 years, 11 months ago
  3. f2a991c Rebuild with DECAP_PERCENT=65 by Tamas Hubai · 2 years, 11 months ago
  4. 6e6b0a0 Add a second string by Tamas Hubai · 2 years, 11 months ago
  5. d59ca02 Rebuild with alternative decap cell, 2nd try by Tamas Hubai · 2 years, 11 months ago

Karplus-Strong Guitar

KS patch diagram

Physically modeled guitar strings using the Karplus-Strong algorithm with some extensions by Jaffe & Smith.

The string model is built from primitive digital filters like white noise, delay, fader, lowpass & allpass connected by patch cables that form a feedback loop. The patch configuration is described in ks_string.v. Individual filters are implemented in ks_noise.v, ks_delay_*.v, ks_fader.v, ks_feedback.v, ks_tuning.v and ks_dynamics.v. You may wish to follow the original articles for more details:

  • Karplus, K. and Strong, A., 1983. Digital synthesis of plucked-string and drum timbres. Computer Music Journal, 7(2), pp.43-55.
  • Jaffe, D.A. and Smith, J.O., 1983. Extensions of the Karplus-Strong plucked-string algorithm. Computer Music Journal, 7(2), pp.56-69.

Strings can be set up, tuned, plucked or muted via the wishbone bus. The default build contains a single string, but it can be reconfigured for multiple strings with sympathetic resonsances by editing defines.v.

Being a fully digital design audio is output via the I2S protocol, so you'll need a DAC chip (“soundcard”) such as CS4344, UDA1334A or MAX98357A to get analog output.