Hello,
this is my first forum post, so first off all I'd like to say "thank you" for your awesome Teensy Products and the great audio library. I've done a lot of sound projects so far and had a lot of fun with it!
For my current project I'd like to do some physical modeling with Teensy and the audio adaptor. My first tryout was a simple Karplus-Strong-Algorithm (not the 100% original) to synthesize a plucked string. Which worked and sounded well so far, see my block diagram:

To adjust the correct pitch in Karplus-Strong you have to set the length of the delay line. The number of delayed samples is N = Fsample / Fpitch. For the note A4 = 440Hz @ Fs=44100 the delay length should be 100 samples, but the resulting pitch is much lower. After some research I figured out, that even when I set the delay on 0.0ms it produces delay. Am I doing something wrong? If I set the delay on 0.0ms my Karplus-Strong produces a pitch of almost the note F4, wich is about 340Hz.
Is it possible to delay samples very precisely or even a one sample delay with the delay-object?
If not, is it possible to modify or write a new audio object to do this?
Thanks so much!
this is my first forum post, so first off all I'd like to say "thank you" for your awesome Teensy Products and the great audio library. I've done a lot of sound projects so far and had a lot of fun with it!
For my current project I'd like to do some physical modeling with Teensy and the audio adaptor. My first tryout was a simple Karplus-Strong-Algorithm (not the 100% original) to synthesize a plucked string. Which worked and sounded well so far, see my block diagram:

To adjust the correct pitch in Karplus-Strong you have to set the length of the delay line. The number of delayed samples is N = Fsample / Fpitch. For the note A4 = 440Hz @ Fs=44100 the delay length should be 100 samples, but the resulting pitch is much lower. After some research I figured out, that even when I set the delay on 0.0ms it produces delay. Am I doing something wrong? If I set the delay on 0.0ms my Karplus-Strong produces a pitch of almost the note F4, wich is about 340Hz.
Is it possible to delay samples very precisely or even a one sample delay with the delay-object?
If not, is it possible to modify or write a new audio object to do this?
Thanks so much!