voice

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Voice

type Voice interface {
	Get() (float32, bool)
	IsPlaying() bool
	Advance(amt time.Duration)
	KeyOn()
	KeyOff()
	Cut()
	SetNote(n note.Note)
	SetOutputSampleRate(sampleRate float64)
	SetFM(mod pwm.Modulator, env envelope.Envelope)
}

func NewVoice

func NewVoice(mod pwm.Modulator, env envelope.Envelope, base note.Note) Voice

Jump to

Keyboard shortcuts

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