Documentation
¶
Index ¶
- Variables
- func FileExists(file string) bool
- type Option
- type Score
- func (sc *Score) AddFilter(t *filter.Filter)
- func (sc *Score) AddInclude(filepath string, tableName string, params []string) error
- func (sc *Score) AddLyrics(l map[string][]string)
- func (sc *Score) AddProperty(key, value string)
- func (sc *Score) AddScale(t items.Mode)
- func (sc *Score) AddSketch(name string) interface{ ... }
- func (sc *Score) AddTimbre(t *timbre.Timbre)
- func (sc *Score) AddToken(key string, value string)
- func (sc *Score) AddTrack(t *track.Track)
- func (sc *Score) AddTuning(t *tuning.Tuning)
- func (sc *Score) Bank(trackName string) (bank int8)
- func (sc *Score) Channel(trackName string) (ch int8)
- func (sc *Score) Delay(trackName string) (del [2]int)
- func (sc *Score) Embed(patterns ...string) error
- func (sc *Score) External(filename string, params []string) (*Score, error)
- func (sc *Score) FileGroup(trackName string) (fg string)
- func (s *Score) FilterTrack(colName string, events []*items.Event) []*items.Event
- func (sc *Score) Format() error
- func (s *Score) GetBarIdxOf(pos uint) (baridx int)
- func (sc *Score) GetExternalSketch(filename, sketch_table string, params []string) (*sketch.Sketch, error)
- func (sc *Score) GetExternalToken(file, name string) (string, error)
- func (sc *Score) GetIncludedSketch(filename, sketch_table string, params []string) (*sketch.Sketch, error)
- func (s *Score) GetMode(name string) items.Mode
- func (sc *Score) GetSketch(name string) (*sketch.Sketch, error)
- func (sc *Score) GetToken(name string) (string, error)
- func (sc *Score) GetTrack(track string) (*track.Track, error)
- func (sc *Score) HasTrack(track string) bool
- func (sc *Score) Include(filename string, sketch string, params []string) error
- func (sc *Score) Lyric(part string, fromLine, toLine int) (tokens []string, err error)
- func (sc *Score) NoEmptyLines() bool
- func (sc *Score) Parse() error
- func (sc *Score) PitchBendRange(trackName string) (pb uint8)
- func (sc *Score) Program(trackName string) (prog int8)
- func (sc *Score) Properties() map[string]interface{}
- func (sc *Score) SetGroupCol(int, []string)
- func (sc *Score) SetRealColNum(n int)
- func (sc *Score) Transpose(trackName string) (track int8)
- func (sc *Score) Unroll() error
- func (sc *Score) VelocityScale(trackName string) (vc [5]uint8)
- func (sc *Score) Volume(trackName string) (vol int8)
- func (sc *Score) WriteUnrolled(wr io.Writer) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FileExists ¶
Types ¶
type Option ¶
type Option func(s *Score)
func NoEmptyLines ¶ added in v1.0.34
func NoEmptyLines() Option
func PrintBarComments ¶
func PrintBarComments() Option
type Score ¶
type Score struct { IsUnrolled bool Bars []*items.Bar Parts map[string][2]uint Tracks map[string]*track.Track Tunings map[string]*tuning.Tuning Timbres map[string]*timbre.Timbre Scales map[string]items.Mode Filters map[string]*filter.Filter Sketches map[string]*sketch.Sketch Unrolled map[string][]*items.Event Files map[string]*file.File Parent *Score // contains filtered or unexported fields }
func (*Score) AddInclude ¶
func (*Score) AddProperty ¶
func (*Score) FilterTrack ¶
func (*Score) GetBarIdxOf ¶
gets the bar idx of an event at the given position returns -1, if no bar could be found
func (*Score) GetExternalSketch ¶ added in v1.0.30
func (*Score) GetExternalToken ¶ added in v1.0.30
func (*Score) GetIncludedSketch ¶
func (*Score) NoEmptyLines ¶ added in v1.0.34
func (*Score) PitchBendRange ¶
func (*Score) Properties ¶
func (*Score) SetGroupCol ¶ added in v1.0.30
func (*Score) SetRealColNum ¶ added in v1.0.30
func (*Score) VelocityScale ¶
Click to show internal directories.
Click to hide internal directories.