analyzers

package
v0.0.0-...-e340b1f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	Analyze([]float64) []float64
}

func NewSmartAnalyzer

func NewSmartAnalyzer(
	fftSize int,
	ledCount int,
	sampleRate float64,
	decayFactor float64,
	dbfsThreshold float64,
	audibleLow float64,
	audibleHigh float64,
	mirror bool,
) Analyzer

type PayloadSender

type PayloadSender = func(ledData []byte)

type Queue

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

func NewQueue

func NewQueue(fftSize int, analyzer *Analyzer, effect *effects.Effect, sender *PayloadSender) *Queue

func (*Queue) Enqueue

func (q *Queue) Enqueue(monoFloats []float64, recursiveCall bool)

func (*Queue) Size

func (q *Queue) Size() int

type SmartAnalyzer

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

func (*SmartAnalyzer) Analyze

func (sa *SmartAnalyzer) Analyze(sampleChunk []float64) []float64

Jump to

Keyboard shortcuts

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