Reuse a patch with independent controls

Understand nested patches, independent instance state and reusable Frames using two stereo gain stages.

Template: Two Gain Stages. You will learn: definitions, instances and nested Frames.

  1. Open Two Gain Stages and inspect the two Level controls in its Frame.
  2. Preview the demo input. Change one Level while leaving the other at its default.
  3. Create a copy and open Patch. The first and second nodes both instantiate the same gain definition.
  4. Open a nested instance to inspect its gain node and public Level parameter.
  5. Return to the main Frame. Each nested Frame binds to its own instance, so editing one control leaves the other independent.
  6. Save or publish the composition to share its portable graph and Frames together.

Read Groups and reusable patches and Frames for the ideas behind this.

The template

Learn to reuse a patch without sharing its mutable state. Two Gain Stages places two instances of one gain definition in series. Each instance has its own Level value and its own nested Frame.

Create from Two Gain Stages Preview on tune.toys

Patch: gain “first” audio output connected to gain “second” audio input. Patch inputs audio output connected to gain “first” audio input. gain “second” audio output connected to Patch outputs audio input.
Frame preview: Two stagesFrame “Two stages” with 2 elements: frame first, frame second.frameframe
Frame preview (static).

Controls

  • The first Level scales the incoming stereo audio.
  • The second Level scales the output of the first instance.
  • Both controls use the same reusable definition, with independent values.

Edit this page on GitHub · Updated 2026-11-01

esc

↑ ↓ move↩ open⌘↩ new tabesc close