music

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChordToLilypond added in v0.3.0

func ChordToLilypond(c string, beats ...float64) (d string)

ChordToLilypond takes a chord like Bbm7/F and converts it into suitable lilypond (bes:m7/f)

func NoteToMidi

func NoteToMidi(note string, octave int) int

Types

type Chord

type Chord struct {
	Notes []Note
	On    bool
}

func (Chord) String

func (c Chord) String() string

type Note

type Note struct {
	Name   string
	Octave int
	MIDI   int
}

func ChordToNotes added in v0.3.0

func ChordToNotes(c string) (notes []Note, err error)

ChordToNotes converts chords to notes using lilypond

func ClosestNote added in v0.2.0

func ClosestNote(name string, n Note) (n2 Note)

func MidiToNote added in v0.2.0

func MidiToNote(midi int) Note

func NewNote

func NewNote(name string, octave int) Note

func ParseCluster

func ParseCluster(cluster string, lastNote0 ...Note) (ns []Note, err error)

Jump to

Keyboard shortcuts

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