Documentation
¶
Overview ¶
Package visualizer renders audio snapshots into bounded terminal canvases. It knows nothing about processes, sockets, Bubble Tea, or playback commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Modes = []string{
"spectrum", "bars", "mirror", "skyline", "dots", "peaks", "ribbon",
"waterfall", "spectrogram", "scope", "stereo-scope", "wave", "filled-wave",
"vectorscope", "lissajous", "orbit", "rings", "radar", "spiral",
"particles", "rain", "matrix", "flame", "embers", "pulse", "diamonds",
"tunnel", "starburst", "led", "vu", "balance",
}
Modes is the stable order used by the REPL's picker and cycle binding.
Functions ¶
Types ¶
type Renderer ¶
type Renderer struct {
// Frame is the most recently supplied audio snapshot.
Frame audio.Frame
// contains filtered or unexported fields
}
Renderer owns only presentation state: attack/release, peak hold, and a fixed-size history. Advance is separate from Render, so resize/redraw cannot advance animation. The subscriber, rather than terminal redraws, drives time.
func (*Renderer) Advance ¶
Advance updates presentation state using an audio frame and elapsed time.
Click to show internal directories.
Click to hide internal directories.