Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandNotes ¶
Explode a sequence of notes into "chords" of those notes that play each as a single note. The number of hands sets how many hands should be playing the pattern.
func GenScales ¶
Replace the scales in the given problem set with newly generated ones. In order for the results to be meaningful, we rely on the "INTEGER PRIMARY KEY" field in SQLITE3 to always be 1 larger than the current largest value (starting at 1 for an empty table).
Types ¶
type Note ¶
type Note int
func NoteOfText ¶
Decode a textual representation of a note. Notes are a letter possibly followed by a sharp or flat sign (in ascii or Unicode). The resulting note will be between middle C and the C above that (for a B#). Returns an error if the not is not valid.
type Scale ¶
type Scale struct { Intervals string // Intervals between the notes, must describe 1 octave. Pattern []int // The pattern for arps. Octaves int // How many octaves for this pattern. Extra int // How many extra patterns to go below start at end. Hands int // How many hands to play }
The description of a scale exercise. This describes how to build a scale exercise.