News for hackers. Stuff that matters.
Re:Pluckable Strings by _spduchamp on Wednesday May 22, 2024 @10:09PM (#40449595)
Plucking strings is usually synthesized using Karplus-Strong synthesis which is a very short delay line loop with a low pass filter. The delay gets excited with a short burst of noise. The length of the delay line tunes the string.

Karplus-Strong can be extended in ways to simulate different types of plucking, acoustic pickup at bridge, or electric pickup at any point along tbe string, and plucked at any point along the string. Body resonance can be simulated etc. It's a pretty fun synth technique to play with. Amazing to take beyond simulating conventional instruments.

Re:Pluckable Strings by thrtythreeforty on Thursday May 23, 2024 @12:29AM (#40450480)
Karplus Strong sounds kind of bad though, if your goal is accurate sounds of instruments. The reason it works at all is that the noise generates the initial high harmonics of a pluck, then a low-pass simulates the frequency-dependent decay of those harmonics.

But this is very primitive compared to a massive body of research on better simulation. The delay line works great though, that part hasn't changed.

Re:Pluckable Strings by cp3io on Thursday May 23, 2024 @09:29AM (#40454453)
The algorithm was discovered in 1983, and for how computationally cheap it is, I'd say it's pretty convincing. Waveguide synthesis is a generalization of the same idea, often with more realistic results.

Variations on Karplus-Strong synthesis can yield some pretty wacky, dry and plucky types of sounds. In the original paper, the authors propose a variant of the algorithm which involves randomly alternating the sign (+/-) of every sample in the feedback loop, which creates a lot more atonal information in the signal. There’s also a variation floating around which uses an allpass filter in the feedback loop to introduce inharmonicity in the signal, see for example https://www.youtube.com/watch?v=SpC3t1EVF_Q.