You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for debugging this.
afaics, the incriminating line just adds a little jitter to the delay, e.g. to either prevent phase cancelling or/and make the sounds more lively.
in csound/plugins#4 (comment) (gone by now) you indicated that the delay was actually set to 0, which i wouldn't have expected (unless noise_.tick() emits -20).
probably a better solution would be:
See the Csound plugins issue csound/plugins#4 for more information.
The following patch fixes the Csound issue:
mkg@xenakis:~/stk$ git diff
diff --git a/src/Sitar.cpp b/src/Sitar.cpp
index 2d3364e..11c493e 100644
--- a/src/Sitar.cpp
+++ b/src/Sitar.cpp
@@ -61,7 +61,7 @@ void Sitar :: setFrequency( StkFloat frequency )
#endif
targetDelay_ = (Stk::sampleRate() / frequency);
delayLine_.setDelay( delay_ );
loopGain_ = 0.995 + (frequency * 0.0000005);
if ( loopGain_ > 0.9995 ) loopGain_ = 0.9995;
mkg@xenakis:~/stk$
The text was updated successfully, but these errors were encountered: