Use Non-Frames Version Previous Page Next Page
Orchestra Syntax: Variable Initialization

=, init, tival, divz

  ir       =          iarg
  kr       =          karg
  ar       =          xarg
  ir       init       iarg
  kr       init       iarg
  ar       init       iarg
  ir       tival
  ir       divz       ia, ib, isubst
  kr       divz       ka, kb, ksubst
  ar       divz       xa, xb, ksubst

Description

= (simple assignment) - Put the value of the expression iarg (karg, xarg) into the named result. This provides a means of saving an evaluated result for later use.

init – Put the value of the i-time expression iarg into a k- or a-rate variable, i.e., initialize the result. Note that init provides the only case of an init-time statement being permitted to write into a perf-time (k- or a-rate) result cell; the statement has no effect at perf-time.

tival – Put the value of the instrument's internal "tie-in" flag into the named i-rate variable. Assigns 1 if this note has been "tied" onto a previously held note ( see i statement); assigns 0 if no tie actually took place. (See also tigoto.)

divz – Whenever b is not zero, set the result to the value a / b; when b is zero, set it to the value of subst instead.

pset – This unit defines and initializes numeric arrays at orchestra load time. Although defined within an instrument it is not part of its i-time or performance operation. One statement is allowed per instrument. These values are available as i-time defaults. When an instrument is triggered from MIDI it only gets p1 and p2 from the event, and p3, p4, etc. will receive the actual preset values.



Use Non-Frames Version Previous Page Next Page
Orchestra Syntax: Variable Initialization