Csound Csound-dev Csound-tekno Search About

Re: pset

Date1999-02-26 12:37
Fromjpff@maths.bath.ac.uk
SubjectRe: pset
Message written at 26 Feb 1999 09:46:45 +0000
--- Copy of mail to rasmuse@hem.passagen.se ---

pset   con1, con2, con3,...

Give preset values to array variables for later reference.

This unit defines and initialises numeric arrays at Orchestra
load-time.  Although defined within an instrument it is not part of
its i-time or performance operation

Pset the pfield array (one one statement is allowed per instrument).
These values are available as i-time defauts.  When an instrument is
triggered from MIDI it only gets p1 and p2 from the event, and
p3,p4,... will receive teh actual preset values.

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

(adapted from Csound manual v1.1 by Barry Vercoe)