Use Non-Frames Version Previous Page Next Page
Orchestra Syntax: Instrument Invocation

schedule, schedwhen

          schedule  insnum, iwhen, idur[, p4, p5, ...]
          schedwhen ktrigger, kinsnum, kwhen, kdur[, p4, p5, ...]

Description

Adds a new score event

Initialization

insnum – instrument number. Equivalent to p1 in a score i statement.

iwhen – start time of the new event. Equivalent to p2 in a score i statement.

idur – duration of event. Equivalent to p3 in a score i statement.

Performance

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.

Example

;; 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

Author

John ffitch
University of Bath/Codemist Ltd.
Bath, UK
November, 1998 (New in Csound version 3.491)
Based on work by Gabriel Maldonado


Use Non-Frames Version Previous Page Next Page
Orchestra Syntax: Instrument Invocation