Hi,
I worked with the guitar model as well, I think the issue comes from the
way the guitar model compensates for delays introduced by the physical
model chain.
In guitarModel, there is this hand-tuned correction:
guitarModel(length,pluckPosition,excitation) = endChain(egChain)
with {
maxStringLength = maxLength;
lengthTuning = 0.1; // tuned "by hand"
stringL = length-lengthTuning;
egChain = chain(guitarNuts :
steelString(stringL,pluckPosition,excitation) :
guitarBridge : guitarBody : out);
};
The 0.1 compensates empirically for extra delays introduced by chain() and
the elements in the feedback loop. The problem is that it is expressed as a
physical length, while much of that extra delay is effectively a fixed
number of samples. Therefore the same value does not give the same
compensation at 48 kHz and 96 kHz.
Another approach could be to express the correction in samples and convert
it back to length using the current sample rate:
extraDelaySamples = 13;
lengthTuning = extraDelaySamples * speedOfSound / ma.SR;
stringL = length - lengthTuning;
The exact number of samples still needs to be determined for the model, but
this should already make the basic compensation more sample-rate
independent.
Best,
Selim
On Wed, Sep 16, 2026 at 5:40 PM Jeanette C. via Faudiostream-users <
[email protected]> wrote:
> Hello everyone,
> I am experimenting with Faust's guitar models, which appear to be based on
> the
> openString. I compile the DSP to Csound. It appears that the strings are
> very
> well tuned at a samplerate of 48kHz, but at 96kHz the tuning quickly
> degrades
> towards higher notes.
>
> Is there a systematic way to counteract that, i.e. some type of formula or
> setting?
>
> Best wishes and thanks,
>
> Jeanette
>
> --
> * PeerTube: https://makertube.net/@jeanette_c
> * GitHub: https://github.com/jeanette-c
> * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
>
>
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users