Documentation
¶
Index ¶
- Variables
- func EventsFromSketchDef(name string, sketchDef [][2]string, sc Score, params []string) (evts []*items.Event, err error)
- type Score
- type Sketch
- func (p *Sketch) AddColumn(name string)
- func (s *Sketch) FirstColumn() (colName string)
- func (p *Sketch) ParseLine(tabs []string) error
- func (s *Sketch) Unroll(_tr *track.Track, colName string, params ...string) ([]*items.Event, error)
- func (s *Sketch) UnrolledBars() (unrolled []*items.Bar, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateReg = regexp.MustCompile(regexp.QuoteMeta("#") + "([0-9]+)")
Functions ¶
Types ¶
type Score ¶
type Score interface { GetSketch(sketch_table string) (*Sketch, error) GetIncludedSketch(filename, sketch_table string, params []string) (*Sketch, error) HasTrack(name string) bool GetTrack(track string) (*track.Track, error) GetToken(name string) (string, error) Embed(patterns ...string) error GetMode(name string) items.Mode FilterTrack(colName string, events []*items.Event) []*items.Event Properties() map[string]interface{} Lyric(part string, fromLine, toLine int) (tokens []string, err error) }
type Sketch ¶
type Sketch struct { Name string Bars []*items.Bar Positions [][2]uint // bar+position Columns map[string][]string Parts map[string][2]uint // absolute positions Score Score File string // contains filtered or unexported fields }
func SketchFromSketchDef ¶ added in v1.0.2
func (*Sketch) FirstColumn ¶
Click to show internal directories.
Click to hide internal directories.