Use Non-Frames Version Previous Page Next Page
Orchestra Syntax: Orchestra Header Statements

strset, pset

          strset   iarg, "stringtext"
          pset       con1, con2, ...

Description

Allow certain global parameters to be initialized at orchestra load time, rather than instrument initialization or performance time.

Initialization

iarg - numeric value to be associated with an alphanumeric string

con1, con2, etc. - preset values for a MIDI instrument

strset (optional) allows a string, such as a filename, to be linked with a numeric value. Its use is optional.

pset (optional) defines and initializes numeric arrays at orchestra load time. It may be used as an orchestra header statement (i.e. instrument 0) or within an instrument. When defined within an instrument, it is not part of its i-time or performance operation, and only 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.

Examples

The following statement, used in the orchestra header, will allow the numeric value 10 to substituted anywhere the soundfile asound.wav is called for.

  strset 10, "asound.wav"

The example below illustrates pset as used within an instrument.

instr 1
      pset  0,0,3,4,5,6     ; pfield substitutes
  a1  oscil  10000, 440, p6

Use Non-Frames Version Previous Page Next Page
Orchestra Syntax: Orchestra Header Statements