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
{{ message }}
Repository navigation
The STKSitar opcode can create a buildup of clipped samples as illustrated by the attached csd file #4
as i don't have time right now to look into this myself, so I'm forwarding an oldish (6 years!) bug-report from Debian (here's the original bugreport), that appears to still be present in Csound-6.16
The following CSD produces unexpected output: this may be a problem with
Csound, or STK, or both -- I'm filing this as a Csound bug because that's the
application I'm using when I experience the problem.
The CSD has two descending tone sequences played with the STKSitar opcode. The
duration of each note is 0.4 seconds and they are played 0.1 seconds apart, so
there should be no more than 4 notes playing simultaneously. Towards the end of
the first descending sequence, the volume shoots up dramatically, creating a
great deal of distortion.
There is a pause of 1.0 seconds before the second descending sequence, which
should be adequate for all notes from the first sequence to complete. Yet when
the second sequence plays, the distortion occurs almost immediately, on notes
which played without issue during the first tone sequence.
It appears that some sort of buffer is building up and not being flushed
adequately, but that's just speculation.
If I comment out evertthng after the first score blank line it is OK. If I comment out the low note at time 3.7 then it gives an error much earlier! That rather suggests memory but valgrind reports nothing odd. Still no ideas where to look.
Activity
jpffitch commentedon Sep 20, 2021
Certainly odd. Replacing all frequencies to 440Hz and it is OK.
So it s inside the Sitar class in C++
jpffitch commentedon Sep 22, 2021
The more I look the stranger it is.
If I comment out evertthng after the first score blank line it is OK. If I comment out the low note at time 3.7 then it gives an error much earlier! That rather suggests memory but valgrind reports nothing odd. Still no ideas where to look.
Need Michael Gogins I think
gogins commentedon Oct 3, 2021
I suspect this is an STK bug, but I will look at it.
gogins commentedon Oct 4, 2021
The following one-line patch to the STK sources causes this behavior to stop, and rendering to look and sound normal.
This is enough to prove that the bug lies within the deleted line, or its side effects, and is entirely contained in the STK Sitar class.
I do not understand what is happening well enough to really fix it, but I will open an issue in the STK repository that references this issue.
vlazzarini commentedon Oct 11, 2026
ok so this is not an issue for this repository, closing it.
vlazzarini commentedon Oct 13, 2026
@umlaeute actually we're offering a local patch now as per #48