metronome

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_BEATS_PER_PERIOD = 4
	DEFAULT_BPM_SPEED        = 120
	DEFAULT_SAMPLE_RATE      = 96000
	OUTPUT_COUNT             = 1
)

* Global constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metronome

type Metronome interface {
	BeatsPerPeriod() uint32
	Process(outputBuffer []float64)
	SampleRate() uint32
	SetBeatsPerPeriod(count uint32) error
	SetSampleRate(rate uint32)
	SetSpeed(speed uint32) error
	SetTick(name string, coefficients []float64)
	SetTock(name string, coefficients []float64)
	Tick() (string, []float64)
	Tock() (string, []float64)
	Speed() uint32
}

* Interface type representing a metronome.

func Create

func Create() Metronome

* Creates a new metronome.

Jump to

Keyboard shortcuts

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