note

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChannelDataInvalid = errors.New("channel data invalid")
)

Functions

This section is empty.

Types

type Kind

type Kind interface {
	Note(octave scale.Octave, key scale.Key, microtone scale.Microtone) Note
	BaseFrequency() float64
	BaseNote() Note
	ParseNote(str string) (Note, error)
}

type Note

type Note interface {
	Split() (scale.Octave, scale.Key, scale.Microtone)
	KeyOctave() tuning.KeyOctave
	IsCut() bool
	IsFadeout() bool
	Kind() Kind
	ToFrequency() float64
	AddMicrotones(s scale.Microtone) Note
}
var (
	None    Note = nil
	Cut     Note = &cut{}
	Fadeout Note = &fadeout{}
)

Jump to

Keyboard shortcuts

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