synth

package
v0.0.0-...-2889c3b Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyAction

type KeyAction int
const (
	KeyActionOn KeyAction = iota
	KeyActionOff
	KeyActionCut
	KeyActionFadeout
)

type Synth

type Synth interface {
	Run(onTick SynthTickFunc) error
	Close()
	C() <-chan *premix.PremixData
	Machine() machine.Machine
	Note(o scale.Octave, k scale.Key, s scale.Microtone) note.Note
	KeyAction(n note.Note, a KeyAction)
}

func NewSynth

func NewSynth(tickInterval time.Duration, voices wavetable.WaveTable, numPremixBuffers int, sampleRate float64, mixVolume float32) Synth

type SynthTickFunc

type SynthTickFunc func(s Synth, amt time.Duration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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