How does the Karplus-Strong algorithm work?

  • Thread starter Thread starter btb4198
  • Start date Start date
  • Tags Tags
    Algorithm
Click For Summary
SUMMARY

The Karplus-Strong algorithm is a string synthesis technique that generates sound by utilizing a feedback loop with an initial array of random values. The sampling rate (fs) is set at 44100Hz, while the fundamental frequency (Fo) is defined at 440Hz. An array of size N, calculated as N = fs/Fo, is filled with random values between -0.5 and 0.5. The output is produced by averaging the first two values of the array, multiplying by 0.995, and repeating this process until the output diminishes to zero.

PREREQUISITES
  • Understanding of digital audio sampling rates
  • Familiarity with basic array manipulation in programming
  • Knowledge of audio synthesis techniques
  • Experience with feedback loops in signal processing
NEXT STEPS
  • Explore the implementation of the Karplus-Strong algorithm in programming languages like Python or C++
  • Learn about digital signal processing (DSP) concepts
  • Investigate variations of the Karplus-Strong algorithm for different sound synthesis
  • Study the effects of different damping factors in the feedback loop
USEFUL FOR

Musicians, audio engineers, and software developers interested in sound synthesis and digital audio processing will benefit from this discussion.

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 ?
 

Similar threads

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