leds

package
v0.0.0-...-0b60053 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NChannels = 12

Variables

This section is empty.

Functions

func NewVisualizer

func NewVisualizer(options ...func(*visualizer)) *visualizer

func WithSink

func WithSink(sink func(s beep.Streamer)) func(*visualizer)

func WithSource

func WithSource(source *Source) func(*visualizer)

Types

type Sink

type Sink struct {
	// contains filtered or unexported fields
}

func NewSink

func NewSink(stream beep.Streamer) *Sink

func (*Sink) Run

func (s *Sink) Run()

type Source

type Source struct {
	Streamer   beep.Streamer
	SampleRate beep.SampleRate
}

type Visualizer

type Visualizer interface {
	Channels() [NChannels]float64
	Wait()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL