csound / csound.github.io

Csound Project Homepage
24 stars 27 forks source link

Audio rate `expsegr` opcode is affected by control rate. #76

Closed IronAttorney closed 4 years ago

IronAttorney commented 4 years ago

MINIMUM_BUG_EXAMPLE.csd.zip

When using the audio rate expsegr opcode, (specifically the version of expsegwith the release segment), the results are impacted by the control rate.

Attached is a minimal example in which I have one instrument using expsegr, and a different version of the same instrument using the non release version expseg commented out so they can be quickly switched between for testing. With the first instrument, ksmps up to around 96 produce audio, but the audio varies with the ksmps value. For ksmps > 96, there is silence (I think the first trigger has infinite amplitude and I guess the rest are silenced). The second version is unaffected by the value of ksmps.

I believe linesegr works as expected.

vlazzarini commented 4 years ago

closing this here as it is the wrong place. Moved to the csound issues, https://github.com/csound/csound/issues/1358