0
$\begingroup$

I am having a difficult time understanding the basic principles when sampling the function describing the vibration of a string. Mainly I am confused on given a sampling rate how many samples to take and what size the increments when sampling should be.

I am using the solution to the wave equation from this article (in german). If my explanation is unclear let me know and I'll try to give more information.

$\endgroup$
  • 1
    $\begingroup$ What are you sampling? String displacement at string location? The sound produced? The Nyquist limit rules them all. (unless you can sample at two different rates and resolve aliases that way, but that is a different story). You may find this pertinent as it looks like your article focuses on pure harmonics. dsprelated.com/thread/7902/… $\endgroup$ – Cedron Dawg Jul 30 at 15:03
  • $\begingroup$ I am sampling the string displacement for a fixed location at a certain time. Right now I figured to simply do increments of the size: base frequency divided by the sampling rate because i thought this is the lowest frequency that I need to be able to hear. $\endgroup$ – Leonard Jul 30 at 15:43
  • $\begingroup$ I don't quite get what you are saying. You are sampling displacement at a point in time. A certain time implies one reading. Assuming you are looking for harmonic motion, you need to have at least two samples per cycle of the highest harmonic of interest. Lower than that, your harmonics will appear as aliases (different places cuz they are around they Nyquist corner) in your spectrum. $\endgroup$ – Cedron Dawg Jul 30 at 17:39
0
$\begingroup$

Assuming I understand the question correctly, you need to sample the string's position at least twice as fast as the maximum frequency you anticipate the string can move or the highest frequency you care about. So if the highest overtones the string produces are 16kHz, you need to measure at at least 32kHz if you want to be able to reconstruct the original motion faithfully. This is the Nyquist-Shannon sampling theorem and you can probably find several hundred descriptions of it here and elsewhere on the internet.

If you know the lowest frequency the string can produce or that you care about, there are other tricks you can do (look up heterodyne) to reduce your sample rate requirements assuming you have the equipment to do so on the analog side.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.