[Csnd] turnoff and clicks

The following csd will produce clicks every time the instr 2 is scheduled, as long as the “turnoff” opcode
is present. Changing instr 1000 to 1 removes the clicks. I don’t remember having this issue before.Were there any changes in this respect?

<CsoundSynthesizer>
<CsOptions>
-odac 

</CsOptions>

<CsInstruments>
sr     = 44100
ksmps  = 64
nchnls = 2
0dbfs  = 1

instr 1000
  a0 oscili 0.1, 1000
  a0 *= linenr:a(1, 0.1, 0.1, 0.01)
  outch 1, a0
endin

instr 2
  kt timeinstk
  println "kt %d", kt
  turnoff
endin

</CsInstruments>

<CsScore>

i1000 1 10
i2 3 0.1
i2 4 0.1
; f0 3600

</CsScore>
</CsoundSynthesizer>

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here