# Pattern Visualizers, Pitch Widgets & Export

> Chain inline canvas visualizers directly onto any Strudel pattern (`_pianoroll`, `_punchcard`, `_spiral`, `_pitchwheel`, `_wordfall`, `_scope`, `_fscope`, `_spectrum`) and export studio-clean master or multi-stem WAV mixes.

Leading-underscore visual methods render crisp live HUD feedback synchronized to exact cycle phase while staying 100% compatible with strudel.cc.

## 1. Supported Inline & Global Visual Widgets

Call `._method()` at the end of a pattern (renders inside the canvas/code HUD) or `.method()` for full-panel canvas modes.

| Method | Visual Output | Best Paired With |
| --- | --- | --- |
| `._pianoroll({ labels: 1 })` | Scrolling DAW piano-roll grid | Melodies, chords, basslines |
| `._punchcard({ cycles: 4 })` | Multi-cycle rhythmic timeline cards | Drums, polylayer stacks |
| `._spiral()` | Polar radial cycle spiral | Polyrhythms & Euclidean beats |
| `._pitchwheel()` | Chromatic 12-tone harmonic wheel | `.scale(...)` & chord voicings |
| `._wordfall()` | Cascading text/note event waterfall | Sample chops & `word` vocals |
| `._scope()` | Time-domain stereo oscilloscope | Bass, waveshaping & FM synths |
| `._fscope()` | Frequency spectrum / FFT trace | Filters & harmonic resonance |
| `._spectrum()` | Vertical spectral bar analyzer | Full mixes & master EQ checks |

### Example: Piano Roll + Spectrum + Scope Stack

A self-visualizing groove with an inline piano roll on the harmony and oscilloscope on the sub bass.

```js
setCpm(30);

$: s("bd ~ [~ bd] ~, ~ sd ~ ~, hh*8").gain(0.75);
$: note("<c2 eb2 f2 g2>")
  .s("lila_808")
  .lpf(600)
  .gain(0.72)
  ._scope();
$: chord("<Cm9 Ebmaj7 Fm9 G7>")
  .voicing()
  .s("lila_rhodes")
  .room(0.45)
  .gain(0.42)
  ._pianoroll({ labels: 1 });
```

## 2. Offline 64-Bit Master & Stem WAV Export

Even at 0 Sparks and offline from AI endpoints, Sandbox `More -> Audio & Export` bakes up to 120 seconds of deterministic stereo 64-bit Aether + SuperDough WAV audio locally in your browser.

- Honors all active public/private control values AND `@slider` Auto-Sweep LFO automations deterministically.
- Exports either a unified Master Stereo WAV or split instrument Stems (Drums, Bass, Chords, Leads, Spatial) routed by each voice’s `defaultStem`.
