News for hackers. Stuff that matters.
Re:Synthesizing a Plucked String Sound with the Karplus-Stro... by hatsunearu on Friday June 17, 2016 @12:01AM (#11920621)
Looks like the virtual "string" is shaped as a random string, and then suddenly let go to make that sound. I wonder what would happen if you shaped the original buffer with a certain shape--for instance a linear rampup then a linear rampdown at some point, much like how you would stretch a string.

edit: hacked together a string plucking thing here: https://www.shadertoy.com/view/ldVSzd

modify the coefficient inside pluckPoint from 0.5 to 0.01 and hear the difference in timbre.

Re:Synthesizing a Plucked String Sound with the Karplus-Stro... by ssalazar on Friday June 17, 2016 @12:44AM (#11920727)
Nice! Another "trick" is to take the buffer with the impulse response of the body of the instrument you are modeling, e.g. a piano soundboard or violin body, and filter the excitation (noise, or ramp, etc.) before putting it in the buffer. You can hear this so-called commuted synthesis[1] being used here [2]-- not exactly Stradivarius but kinda sounds like a screechy violin.

[1] https://ccrma.stanford.edu/~jos/pasp/Commuted_Synthesis.html

[2] https://youtu.be/U8wjFmLQJT4?t=21s

Re:Synthesizing a Plucked String Sound with the Karplus-Stro... by squeaky-clean on Friday June 17, 2016 @01:35AM (#11920862)
Accidental downvote, sorry. Thanks for sharing those links!