envelope

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADSR

type ADSR struct {
	Attack  time.Duration
	Decay   time.Duration
	Sustain float32
	Release time.Duration
}

type Envelope

type Envelope interface {
	KeyOn()
	KeyOff()
	Cut()
	IsPlaying() bool
	Get() (float32, bool)
	Advance(dur time.Duration)
}

func NewADSR

func NewADSR(settings ADSR) Envelope

Jump to

Keyboard shortcuts

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