d Statement (De Note Statement)

d — removes an active instrument at a specific time.

Description

This statement calls for an instrument that has been held to be removed at a specific time.

Syntax

i  p1  p2  p3  p4

Initialization

p1 -- Instrument number. An optional fractional part can provide an additional tag for specifying ties between particular notes of consecutive clusters.

p2 -- Starting time in arbitrary units called beats.

p3 -- ignored but required. Usually zero.

Performance

Beats are evaluated as seconds, unless there is a t statement in this score section or a -t flag in the command-line.

Action times are relative to the beginning of a section ( see s statement), which is assigned time 0.

Note statements within a section may be placed in any order. Before being sent to an orchestra, unordered score statements must first be processed by Sorter, which will reorder them by ascending p2 value. Notes with the same p2 value will be ordered by ascending p1; if the same p1, then by ascending p3.

Examples

Here is an example of the d statement. It uses the file d_statement.csd.

Example 1277. Example of the d statement.

<CsoundSynthesizer>

<CsInstruments>
instr 1
  a1  oscil 10000, 440
      out   a1
endin
instr sound
  a1  oscil 10000, 440
      out   a1
endin
</CsInstruments>

<CsScore>
f 0 10
i 1 0 -1
d 1 1 0

i "sound" 3 -1
i "-sound" 4 0
e
</CsScore>

</CsoundSynthesizer>


See Also

Score Statements

Credits

Author: John ffitch, new in version 6.09.