chnset
Prev | Orchestra Opcodes and Operators | Next

## chnset

chnset — Writes data to the named software bus.

## Description

Write to a channel of the named software bus. Implies declaring the channel with imode=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.

## Performance

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

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

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

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

## Example

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

            sr = 44100
            ksmps = 100
            nchnls = 1

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

## Credits

Author: Istvan Varga
2005

Prev | Up | Next
chnparams | Home | cigoto