interval

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type int

Type defines a type of music interval

const (
	Invalid       Type = iota
	PerfectUnison Type = iota
	MinorSecond   Type = iota
	MajorSecond   Type = iota
	MinorThird    Type = iota
	MajorThird    Type = iota
	PerfectFourth Type = iota
	Tritone       Type = iota
	PerfectFifth  Type = iota
	MinorSixth    Type = iota
	MajorSixth    Type = iota
	MinorSeventh  Type = iota
	MajorSeventh  Type = iota
	PerfectOctave Type = iota
)

func (Type) Semitones

func (i Type) Semitones() int

Semitones return count of semitones

func (Type) String

func (i Type) String() string

Jump to

Keyboard shortcuts

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