notes

package
v0.0.0-...-67e2934 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C = Pitch{523.25, "c", -1, false}
View Source
var FluteRange []Pitch
View Source
var Pause = Pitch{-1.0, "p", 0, false}
View Source
var PitchByName map[string]Pitch

Functions

This section is empty.

Types

type Pitch

type Pitch struct {
	Frequency float64
	Name      string
	Bottom    float64 // Position relative to first line, in line intervals
	IsHalf    bool    // true if this pitch represents half tone
}

func GuessNote

func GuessNote(frequency float64) (Pitch, int)

func (Pitch) HasAdditionalLine

func (p Pitch) HasAdditionalLine() bool

func (Pitch) Title

func (p Pitch) Title() string

type SongNote

type SongNote struct {
	Pitch    Pitch
	Time     float64
	Duration float64
}

func (SongNote) End

func (sn SongNote) End() float64

Jump to

Keyboard shortcuts

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