Skip to content

turnoff3

Turn off instance(s) of other instruments at performance time in the queue of scheduled events.

Syntax

turnoff3 kinsno

Performance

kinsno -- instrument to be turned off (can be fractional) if zero or negative, no instrument is turned off

Examples

The following example uses the turnoff3 opcode.

Example of the turnoff3 opcode.
<CsoundSynthesizer>

<CsInstruments>
instr 1
  print p2
  turnoff3 1
  schedule  1,6,0.1
  endin

</CsInstruments>

<CsScore>
i1 0 0.1
i1 1 0.1
i1 2 0.1
i1 3 0.1
i1 4 0.1
i1 5 0.1
e
</CsScore>

</CsoundSynthesizer>

See also

Duration Control Statements

Credits

Author: John ffitch
2020

New in Csound 6.16