chnget
Prev | Orchestra Opcodes and Operators | Next

## chnget

chnget — Reads data from the software bus.

## Description

Reads data from a channel of the inward named software bus. Implies declaring the channel with imode=1 (see also chn_k, chn_a, and chn_S).

## Syntax

     ival chnget Sname

     kval chnget Sname

     aval chnget Sname

     Sval chnget Sname

## Initialization

Sname -- a string that identifies a channel of the named software bus to read.

## Performance

ival -- the control value read at i-time.

kval -- the control value read at performance time.

aval -- the audio signal read at performance time.

Sval -- the string value read at i-time.

## Example

The example shows the software bus being used as an asynchronous control signal to select a filter cutoff. It assumes that an external program that has access to the API is feeding the values.

            sr = 44100
            ksmps = 100
            nchnls = 1

            instr   1
               kc   chnget    "cutoff"
               a1   oscil     p4, p5, 100
               a2   lowpass2  a1, kc, 200
                    out       a2
            endin

## Credits

Author: Istvan Varga
2005

Prev | Up | Next
chnexport | Home | chnmix