scheduleInstrument Control:Invocationscheduleschedule
Adds a new score event.
Description
Adds a new score event.
Syntaxschedule insnum, iwhen, idur [, ip4] [, ip5] [...]schedule "insname", iwhen,
idur [, ip4] [, ip5] [...]schedule iPar[]Initializationinsnum -- instrument number. Equivalent to p1 in a score i statement. insnum must be a number greater than the number of the calling instrument.
insname -- A string (in double-quotes) representing a named instrument.
iwhen -- start time of the new event. Equivalent to p2 in a score i statement. iwhen must be nonnegative. If iwhen is zero, insum must be greater than or equal to the p1 of the current instrument.
idur -- duration of event. Equivalent to p3
in a score i
statement. .
iPar[] -- event parameters as an i-time array. .
ip4, ip5, ... -- Equivalent to p4, p5,
etc., in a score i
statement. The opcode also
accepts strings as arguments for p4-pN.
Performanceschedule 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.
Examples
Here is an example of the schedule opcode. It uses the file schedule.csd.
Example of the schedule opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoInstrument Invocation More information on this opcode: http://www.csoundjournal.com/issue15/phrase_loops.html , written by Jim Aikin CreditsAuthor: &namejohn;University of Bath/Codemist Ltd.Bath, UKNovember 1998Example written by &namekevin;.New in Csound version 3.491Based on work by &namegabriel;Thanks goes to David Gladstein, for clarifying the iwhen parameter.