1 / 8

Circular Buffer Audio Generation Using the Karplus -Strong String Synthesis Algorithm

Circular Buffer Audio Generation Using the Karplus -Strong String Synthesis Algorithm. Purpose. G enerate an acoustic guitar plucking noise at various frequencies to demonstrate the effectiveness of the Karplus -Strong Algorithm on Analog Devices’ Blackfin BF533.

kim
Download Presentation

Circular Buffer Audio Generation Using the Karplus -Strong String Synthesis Algorithm

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Circular Buffer Audio Generation Using the Karplus-Strong String Synthesis Algorithm

  2. Purpose • Generate an acoustic guitar plucking noise at various frequencies to demonstrate the effectiveness of the Karplus-Strong Algorithm on Analog Devices’ Blackfin BF533. • Verify the function’s operation by calling the LEDs, speakers, and push buttons

  3. My Approach To study the concept of applying white noise, storing the values in an array, averaging its scope every loop, and sending an integer frequency to the speaker for duration of time.

  4. Possibile Approaches • Apply the algorithm to a Low-Pass Filter, and use MATLAB fdatool to produce a C header file to apply directly to the tones. • Calculate highest value of N for a frequency and use it in a function that calculates the desired tones in a circular loop.

  5. Desired Result • A Random number that averages in a recursive fashion into a near-sinusoidal waveform. This would simulate the harsh striking of a guitar string, followed by the string ringing out to a natural frequency.

  6. Output to SpeakerFrequency of 440Hz for 0.1 seconds

  7. Working MATLAB Karplus-Strong OutputFrequency of 400Hz for 0.1 seconds

  8. Implementation • Although the algorithm behaved properly, and integer values were sent to the speaker as required, the desired resulting sound was never obtained using the Blackfin. • This is probably because the for loop is processing much faster than the sample rate in the ISR. If the rates were aligned, the output would go to the speakers normally.

More Related