schedule insnum, iwhen, idur[, p4, p5, ...] schedwhen ktrigger, kinsnum, kwhen, kdur[, p4, p5, ...]
Adds a new score event
insnum - instrument number for new event
iwhen - time at which new event is to occur
idur - duration of new event
ktrigger - trigger value for new event
schedule adds a new score event. The arguments, including options, are the same as in a score. The iwhen time (p2) is measured from the time of this event.
If the duration is zero or negative the new event is of MIDI type, and inherits the release sub-event from the scheduling instruction.
In the case of schedwhen, the event is only scheduled when the k-rate value ktrigger is first non-zero.
;; Double hit and 1 sec separation instr 1 schedule 2, 1, 0.5, p4, p5 a1 shaker p4, 60, 0.999, 0, 100, 0 out a1 endin instr 2 a1 marimba p4, cpspch(p5), p6, p7, 2, 6.0, 0.05, 1, 0.1 out a1 endin instr 3 kr table kr, 1 schedwhen kr, 1, 0.25, 1, p4, p5 endin
John ffitch
University of Bath/Codemist Ltd.
Bath, UK
November, 1998 (New in Csound version 3.491)
Based on work by Gabriel Maldonado