How does the Karplus-Strong algorithm work?

  • Thread starter Thread starter btb4198
  • Start date Start date
  • Tags Tags
    Algorithm
Click For Summary
The Karplus-Strong algorithm synthesizes sound by using a feedback loop with a delay line. It starts with an array of random values between -0.5 and 0.5, sized according to the ratio of the sampling rate to the desired frequency. The algorithm outputs values from this array and applies a damping factor, typically 0.995, to the average of the first two values to create a new output. This process continues, gradually reducing the amplitude of the sound until it approaches zero. The method effectively simulates plucked string sounds through this iterative feedback mechanism.
btb4198
Messages
570
Reaction score
10
http://en.wikipedia.org/wiki/Karplus–Strong_string_synthesis

ok I just want to make sure I understand how this works.
you have N with = fs/fo .
fs is sampling rate = 44100Hz
Fo is the note you want to play like 440hz

then you make an array of N sizes and full it up with random value between 0.5 and -0.5
then you outputs the array from 0 to N then after N you do this

output = the 1st value of Array and the second value of the Array / by 2 * 0.995

and you keep doing this until output is 0?
is that right ?
 
Engineering news on Phys.org
Thanks for the post! Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
 
ok can Some one please explain to me how
Karplus-strong algorithm works ?
 
Thread 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
6K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K