goborator

package module
v0.0.0-...-f1a23bd Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: AGPL-3.0 Imports: 6 Imported by: 1

README

Goborator

Simple Gaborator cgo implementation.

Requires c-gaborator installed.

git clone --recursive --depth 1 https://git.gammaspectra.live/S.O.N.G/c-gaborator.git
cd c-gaborator && mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="-march=native" -DCMAKE_C_FLAGS_RELEASE="-march=native" \
-DCMAKE_INSTALL_PREFIX="/usr"
make
sudo make install

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gaborator

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

func NewGaborator

func NewGaborator(blockSize int, sampleRate float64, bandsPerOctave int, minimumFrequency, maximumFrequency, referenceFrequency float64, stepSize int) *Gaborator

func (*Gaborator) GaborBlockTransform

func (g *Gaborator) GaborBlockTransform(source chan []float32, outputCallback func(output []float32)) error

func (*Gaborator) GaborTransform

func (g *Gaborator) GaborTransform(source chan float32, outputCallback func(output []float32)) error

func (*Gaborator) GetBandwidth

func (g *Gaborator) GetBandwidth() float64

func (*Gaborator) GetBlockSize

func (g *Gaborator) GetBlockSize() int

func (*Gaborator) GetLatency

func (g *Gaborator) GetLatency() int64

func (*Gaborator) GetNumberOfBands

func (g *Gaborator) GetNumberOfBands() int

func (*Gaborator) Process

func (g *Gaborator) Process(block []float32, outputCallback func(output []float32)) error

func (*Gaborator) ProcessingFinished

func (g *Gaborator) ProcessingFinished()

Jump to

Keyboard shortcuts

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