wavetable

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Generator wave.Generator
	Options   []wave.GeneratorParam
	Envelope  envelope.ADSR
}

type Index

type Index int

type Item

type Item struct {
	AM       Op
	FM       Op
	BaseNote note.Note
	Machine  machine.Machine
}

func Generate

func Generate(mach machine.Machine, op Operator) ([]*Item, error)

func (Item) Voice

func (i Item) Voice() voice.Voice

type Op

type Op struct {
	Wave     wave.Wave
	Envelope envelope.ADSR
}

type Operator

type Operator struct {
	Amplitude Component
	Frequency Component
}

type WaveTable

type WaveTable interface {
	Get(n note.Note) voice.Voice
	Machine() machine.Machine
	Note(o scale.Octave, k scale.Key, s scale.Microtone) note.Note
}

Jump to

Keyboard shortcuts

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