I'm using Arduino DUE (Cortex-M3 based board).

I want to make a guitar sound using DAC (digital to analog converter).

For instance, the note A2's fundamental frequency is 110 Hz (using A4 440 Hz as the standard). As you know, guitar generates harmonics like 220, 330, 440 Hz, and more. More complex, the amplitudes of each sine waves change as time goes by.

This is described with detail at this paper (Figure 1, Electric & Acoustic Guitar Strings: A Recording of Harmonic Content by Ryan Lee)

I'm trying to understand the Karplus–Strong string synthesis.

(I used Matlab and some examples from Mathworks to understand it.)

However, I'm not sure whether using this algorithm will generate a guitar sound like the acoustic guitar.

What I mean is that, I'm trying to test my pitch detection algorithm with a guitar. But taking a guitar all the time for testing is quite bothersome. So I tried to generate a wave using DAC for faster testing.

When using DAC, will the generated waveform which uses Karplus–Strong algorithm be a reliable input for testing a instrument pitch detection algorithm?

Or is there something else that can be used?

  • 1
    $\begingroup$ Karplus-Strong is a synthesis algorithm. you tell it the pitch and it produces a note. it's not a pitch detection algorithm. $\endgroup$ Feb 11 '16 at 7:43
  • 1
    $\begingroup$ Why do you not simply take real guitar recordings to test your algorithm? $\endgroup$
    – Jazzmaniac
    Feb 11 '16 at 14:13
  • 2
    $\begingroup$ Just use real guitar recordings. Put some on a smartphone and bring a cable? $\endgroup$
    – endolith
    Feb 11 '16 at 14:51
  • $\begingroup$ Thanks for your reply (both Jazzmaniac, endolith). I was concerned whether the recorded signal would be similar to the waveform vibration from the guitar's body. I forgot to mention that I'm testing at an embedded system level. I'm using Cortex-M0 and 3 processors to do the pitch detection. The Matlab codes were a reference for my test. Due to these reasons, I wanted to connect thd Arduino's DAC output to my test board (the one doing pitch detection)'s ADC. $\endgroup$ Feb 12 '16 at 8:34
  • $\begingroup$ @robert bristow-johnson, thanks. What I meant was, I wanted to create a guitar waveform using Karplus-Strong, not to detect a pitch with this. Using Arduino DUE and Karplus-Strong algorithm, do you think it is possible to synthesis a guitar note? $\endgroup$ Feb 12 '16 at 8:36

Your Answer

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

Browse other questions tagged or ask your own question.