Documentation
¶
Index ¶
- func FetchAll() []os.FileInfo
- type Attributes
- type Bar
- type ChordConvert
- type Clef
- type Degree
- type Encoding
- type Forward
- type Harmony
- type Identification
- type Key
- type KeyConvert
- type MXLDoc
- type Note
- type NoteDuration
- type Parser
- func (p *Parser) GetBarCount() int
- func (p *Parser) GetBarDuration() int
- func (p *Parser) GetSixteenthNote() int
- func (p *Parser) Parse() (string, error)
- func (p *Parser) ParseChordsFromBar(index int) (string, error)
- func (p *Parser) ParseNotesFormBar(index int) string
- func (p *Parser) TotalDivisibleLength(length int) int
- type Part
- type Pitch
- type PitchConvert
- type Root
- type Tie
- type Time
- type Validate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attributes ¶
type Attributes struct {
Key Key `xml:"key"`
Time Time `xml:"time"`
Divisions int `xml:"divisions"`
Clef Clef `xml:"clef"`
}
Attributes represents
type Bar ¶
type Bar struct {
Number int `xml:"number,attr"`
Atters Attributes `xml:"attributes"`
Harmonies []Harmony `xml:"harmony"`
// HarmonyTag []HarmonyTag `xml:"harmony"`
Notes []Note `xml:"note"`
Forward Forward `xml:"forward"`
}
Measure represents a measure in a piece of music
type ChordConvert ¶
type ChordConvert struct {
// contains filtered or unexported fields
}
type Identification ¶
type Identification struct {
Composer string `xml:"creator"`
Encoding `xml:"encoding"`
Rights string `xml:"rights"`
Source string `xml:"source"`
Title string `xml:"movement-title"`
}
Identification holds all of the ident information for a music xml file
type KeyConvert ¶
type KeyConvert struct {
Key int
}
type MXLDoc ¶
type MXLDoc struct {
Score xml.Name `xml:"score-partwise"`
Identification `xml:"identification"`
Parts []Part `xml:"part"`
}
MXLDoc holds all data for a music xml file
type Note ¶
type Note struct {
Pitch Pitch `xml:"pitch"`
Duration int `xml:"duration"`
Dot xml.Name `xml:"dot"`
Voice int `xml:"voice"`
Type string `xml:"type"`
Rest xml.Name `xml:"rest"`
Chord xml.Name `xml:"chord"`
Tie Tie `xml:"tie"`
}
Note represents a note in a measure
type NoteDuration ¶
type Parser ¶
type Parser struct {
MusicXml MXLDoc
}
func (*Parser) GetBarCount ¶
func (*Parser) GetBarDuration ¶
func (*Parser) GetSixteenthNote ¶
func (*Parser) ParseNotesFormBar ¶
func (*Parser) TotalDivisibleLength ¶
type Pitch ¶
type Pitch struct {
Accidental int8 `xml:"alter"`
Step string `xml:"step"`
Octave int `xml:"octave"`
}
Pitch represents the pitch of a note
type PitchConvert ¶
type PitchConvert struct {
// contains filtered or unexported fields
}
type Tie ¶
type Tie struct {
Type string `xml:"type,attr"`
}
Tie represents whether or not a note is tied.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.