chano

chano — Send data to the outwards software bus

Description

Send data to a channel of the outward software bus.

Syntax

chano kval, kchan
chano aval, kchan

Initialization

Performance

xval --- value to transmit

kchan -- a positive integer that indicates which channel of the software bus to write

Note that the inward and outward software busses are independent, and are not mixer buses. The last value remains until a new value is written. There is no imposed limit to the number of busses but they use memory so small numbers are to be preferred.

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
           a1   oscil     p4, p5, 100
                chano     1, a1
        endin
        

Credits

Author: John ffitch
2005

New in Csound5.00