/ Examples / Effects / MixGainPan


Projects .. AudioIO .. Control
NoteStreams .. Instruments
Filters .. Effects .. LiCK Effects
Plot .. Utility .. Pure ChucK


Wherein we present basic sound plumbing nodes.

Right-click to copy examples to your workspace

MixGainPan

In most cases a simple chain comprised of sound generator and Channel is sufficient to deliver your ideas to ears. There are times when a more complex audio signal chain is required and in those cases these plumbing nodes can be helpful.

In this contorted example, we explore notions of mono and stereo audio processing.

Channel Node

The Channel node is the heart of the audio processing piping. It has several features:

As we'll see, the capabilities of the other audio piping nodes are a subset of Channel's capabilities. In some cases, you may find that a more nuanced subset of Channel's capability may more clearly express your intent.

Gain Node

The Gain node is used to add/combine N signals into one while scaling the result. Remember than many UGens support a gain control so you needn't instantiate one simply to scale a single signal. Signals are combined according to its Op parameter. The usual operation is to add inputs (aka Mix) but its other options can come in handy:

Pan Node

The Pan node used to convert a mono signal to stereo and to locate a signal in the stereo field.

Mix Node

The Mix node is used to mix stereo input down to a mono channel.

The Example

Here are the highlights of the graph seen below:

You can trace the signals through the Channel nodes by invidivually toggles their ToDAC parameter. Initially, you can hear the final results because ChanMooshed has ToDAC checked. If you uncheck this parameter then enable ToDAC for Channel you can hear the effect of Panner. Next you can disable Channel's ToDAC and audition both ChanLeft and ChanRight signals.

Additional Examples

Two additional examples, testA.chg and testB.chg are provided to help you further explore your options for stereo effects configurations. The Two tests differ in one important way and we'll leave it as an exercise for you to hear the difference.

home .. topics .. interface .. reference .. examples .. tipjar