Skip to content

Reference library > Operators > ChannelArray

ChannelArray

ChannelArray()

Takes an array of inputs and spreads them across multiple channels of output.

Examples

#-------------------------------------------------------------------------------
# Using ChannelArray to pan a low tone to the left and a high tone to the right.
#-------------------------------------------------------------------------------
low = TriangleOscillator(220)
high = TriangleOscillator(660)
panned = ChannelArray([low, high]) * 0.3
panned.play()

Last update: 2024-02-15
Created: 2023-12-03