Documentation ¶
Overview ¶
Note has an adjustment symbol (Sharp or Flat) to render the "accidental notes for a given name (e.g. of a chord, scale or key)
In music, a pitch class is a set of all pitches that are a whole number of octaves apart, e.g., the pitch class C consists of the Cs in all octaves.
A Note is used to represent the relative duration and pitch of a sound.
A Note is used to represent the relative duration and pitch of a sound.
https://en.wikipedia.org/wiki/Musical_note
Credit ¶
Charney Kaye <hi@charneykaye.com> https://charneykaye.com
XJ Music https://xj.io
A perfect octave is the interval between one musical pitch and another with half or double its frequency.
Note can be the Root of a Chord, Key or Scale.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdjSymbol ¶
type AdjSymbol int
Expression of the "accidental notes" as either Sharps or Flats
func AdjSymbolBegin ¶
AdjSymbolBegin the adjustment symbol (Sharp or Flat) that begins a given name (e.g. the Root of a chord, scale or key)
func AdjSymbolOf ¶
AdjSymbolOf the adjustment symbol (Sharp or Flat) for a given name (e.g. of a chord, scale or key)
type Class ¶
type Class int
Class of pitch for a note (across all octaves)
func RootAndRemaining ¶
Parse all forms using Regexp's against a string
type Note ¶
type Note struct { Class Class // Class of pitch Octave Octave // Octave # Performer string // Can be used to sort out whose Notes are whose Position float64 // Can be used to represent time within the composition Duration float64 // Can be used to represent time of note duration Code string // Can be used to store any custom values }
Note models a musical note