Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MusicNoteFallback ¶
Types ¶
type AlbumArt ¶
type AlbumArt struct {
// contains filtered or unexported fields
}
func NewAlbumArt ¶
func NewAlbumArt() *AlbumArt
type AudioAware ¶
type AudioAware interface {
SetAudioData(data *audio.FrequencyData)
}
AudioAware is implemented by visualizers that consume real-time frequency data.
type ImageAware ¶
type Lyrics ¶
type Lyrics struct {
// contains filtered or unexported fields
}
func (*Lyrics) SetInstrumental ¶
func (l *Lyrics) SetInstrumental()
func (*Lyrics) SetProgress ¶
type LyricsAware ¶
type LyricsAware interface {
SetLyrics(lines []string)
SetInstrumental()
}
LyricsAware is implemented by visualizers that display lyrics.
type MilkdropPreset ¶
type MilkdropPreset struct {
// contains filtered or unexported fields
}
MilkdropPreset is a Milkdrop-style visualizer driven by a pluggable warp function. Use the NewMilkdrop* constructors to create specific presets.
func NewMilkdropKaleidoscope ¶
func NewMilkdropKaleidoscope() *MilkdropPreset
NewMilkdropKaleidoscope creates a Milkdrop preset that folds the framebuffer into mirror-symmetric sectors. Bass shifts the number of segments.
func NewMilkdropRipple ¶
func NewMilkdropRipple() *MilkdropPreset
NewMilkdropRipple creates a Milkdrop preset that displaces pixels along radial sine waves, creating expanding concentric ripples.
func NewMilkdropSpiral ¶
func NewMilkdropSpiral() *MilkdropPreset
NewMilkdropSpiral creates a Milkdrop preset that warps the framebuffer in a rotating spiral. Bass tightens the spiral; time adds a slow drift.
func NewMilkdropTunnel ¶
func NewMilkdropTunnel() *MilkdropPreset
NewMilkdropTunnel creates a Milkdrop preset using inverse-radius mapping to produce an infinite tunnel rushing toward the viewer.
func (*MilkdropPreset) Advance ¶
func (m *MilkdropPreset) Advance()
func (*MilkdropPreset) Init ¶
func (m *MilkdropPreset) Init(seed string, durationMs int)
func (*MilkdropPreset) SetAudioData ¶
func (m *MilkdropPreset) SetAudioData(data *audio.FrequencyData)
func (*MilkdropPreset) View ¶
func (m *MilkdropPreset) View(w, h int) string
type Oscillogram ¶
type Oscillogram struct {
// contains filtered or unexported fields
}
func NewOscillogram ¶
func NewOscillogram() *Oscillogram
func (*Oscillogram) Advance ¶
func (o *Oscillogram) Advance()
func (*Oscillogram) Init ¶
func (o *Oscillogram) Init(seed string, durationMs int)
func (*Oscillogram) SetAudioData ¶
func (o *Oscillogram) SetAudioData(data *audio.FrequencyData)
func (*Oscillogram) View ¶
func (o *Oscillogram) View(width, height int) string
type ProgressAware ¶
type ProgressAware interface {
SetProgress(progressMs int)
}
ProgressAware is implemented by visualizers that need real-time playback progress.
type Spectrum ¶
type Spectrum struct {
// contains filtered or unexported fields
}
Spectrum renders a classic spectrum analyzer with vertical bars and peak hold indicators.
func NewSpectrum ¶
func NewSpectrum() *Spectrum
func (*Spectrum) SetAudioData ¶
func (s *Spectrum) SetAudioData(data *audio.FrequencyData)
type Starfield ¶
type Starfield struct {
// contains filtered or unexported fields
}
func NewStarfield ¶
func NewStarfield() *Starfield
func (*Starfield) SetAudioData ¶
func (sf *Starfield) SetAudioData(data *audio.FrequencyData)