Skip to main content
8 events
when toggle format what by license comment
Aug 27, 2021 at 18:38 comment added robert bristow-johnson Well the K-S had traditionally filled the buffer with random numbers to start with. But you could fill it with a sampled initial attack.
Aug 27, 2021 at 17:24 comment added Юрій Кравець @robertbristow-johnson why would I need some random numbers for the delay buffer if I already have some samples prepared? wiki says it can be either of those. Also, does it really make a difference whether I have a buffer with samples of a complex signal (a whole chord, the sine waves for each separate note are simply added) or do I ultimately need to start off with a single sine wave for each note played at a given time?
Aug 27, 2021 at 16:09 comment added robert bristow-johnson Okay @IO, the two things you need to cook up will be a good random number generator to fill the delay buffer with, and then you need to understand how to use a first-order APF to realize a fractional delay. Also you need to account for the delay of your feedback LPF (which will cause the higher harmonics to decay at a faster rate than the lower harmonics). The entire loop delay is the reciprocal of your fundamental frequency.
Aug 27, 2021 at 15:10 comment added Hilmar Whatever works for you. It's certainly NOT unexplored, people have tried for the last 40 years , it's just difficult and doesn't sound particularly good unless you put a lot of work into it.
Aug 27, 2021 at 14:58 comment added Юрій Кравець @robertbristow-johnson, as I mentioned, I do not need an "ideal" guitar sound, plucked string will suffice. As for recording, I would like to stick to pure synthesis, due to a couple of reasons: it's fun, it's unexplored (there's a lot of sites which use presampled sounds), downloading samples from the network is slower than generating them on a client size (the browser) + I plan to expand it by adding other instruments, which I do not physically possess.
Aug 27, 2021 at 13:51 comment added robert bristow-johnson you might get a "plucked string" sound with Karplus-Strong, but i wouldn't necessarily call it a "guitar". now, like sampling keyboards have done since the 1980s, you can also record guitar notes at different pitches and, for each recorded note, define loop points and from that get a sampled guitar sound. it will still sound like a keyboard, not guitar, when it is played.
Aug 27, 2021 at 12:56 comment added Юрій Кравець looks like Karplus-Strong synthesis is what I am looking for, I've found an implementation of it in JS as well github.com/mrahtz/javascript-karplus-strong , I'll try it out and maybe apply some wave shapers for effects like distortion, thanks. If you edit you answer to include references to physical modelling synthesis and Karplus–Strong string synthesis I'll mark this answer as the accepted one.
Aug 27, 2021 at 11:05 history answered Hilmar CC BY-SA 4.0