effect

package
v0.0.0-...-41dbb3c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const LedsCount = 240

Variables

This section is empty.

Functions

This section is empty.

Types

type LEDS

type LEDS [LedsCount]*RGB

func NewLEDS

func NewLEDS() LEDS

type RGB

type RGB struct {
	R, G, B uint8
}

type Spectrum

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

func NewSpectrum

func NewSpectrum(sampleRate ears.SampleRate, alphaDecay, alphaRise float64, fromHz, toHz uint16, numBands uint8) *Spectrum

func (*Spectrum) Visualize

func (s *Spectrum) Visualize(data *ears.Heard, leds LEDS)

Jump to

Keyboard shortcuts

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