chnset

chnset — Writes data to the named software bus.

Description

Write to a channel of the named software bus. Implies declaring the channel with imod=2 (see also chn_k, chn_a, and chn_S).

Syntax

chnset ival, Sname
chnset kval, Sname
chnset aval, Sname
chnset Sval, Sname

Initialization

Sname -- a string that indicates which named channel of the software bus to write.

ival -- the control value to write at i-time.

Sval -- the string value to write at i-time.

Performance

kval -- the control value to write at performance time.

aval -- the audio signal to write at performance time.

Example

The example shows the software bus being used to write pitch information to a controlling program.

        sr = 44100
        kr = 100
        ksmps = 1

        instr   1
           a1    in
           kp,ka pitchamdf a1
                 chnset    kp, "pitch"
        endin
      

Credits

Author: Istvan Varga
2005