Documentation
¶
Index ¶
- Constants
- func Versionate(file string, v *Version) (file_versionated string)
- type Bar
- type Position
- type Positions
- type Song
- func (s *Song) AddBar(pos uint64, num, denom uint8) *Bar
- func (s *Song) AddTrack(withContent bool, channel int8) *Track
- func (s *Song) BarLines() string
- func (s *Song) LastTrack() *Track
- func (s *Song) NoOfContentTracks() (no uint16)
- func (s *Song) RenumberBars()
- func (s *Song) RenumberTracks()
- func (s *Song) Save(file string) error
- func (s *Song) TrackWidth(i int) uint8
- type TempoChange
- type TempoChanges
- type TimeSig
- type TimeSigs
- type Track
- type TrackMessage
- type Version
- type Versions
Constants ¶
View Source
const VERSION = "0.0.3"
View Source
const VERSION_FILE = "VERSION"
Variables ¶
This section is empty.
Functions ¶
func Versionate ¶
Types ¶
type Bar ¶
func (*Bar) AddPosition ¶
func (*Bar) SetMessageByRelTicks ¶
func (*Bar) SortPositions ¶
func (b *Bar) SortPositions()
type Position ¶
type Position struct { Bar *Bar Comment string Mark string Beat uint8 Tempo float32 Fraction [2]float64 Messages []*TrackMessage }
func (*Position) GetMessage ¶
func (p *Position) GetMessage(track uint16) *TrackMessage
func (*Position) WithinFraction ¶
type Song ¶
type Song struct { CopyRight string Properties map[string]string Bars []*Bar Tracks []*Track // contains filtered or unexported fields }
func (*Song) NoOfContentTracks ¶
func (*Song) RenumberBars ¶
func (s *Song) RenumberBars()
func (*Song) RenumberTracks ¶
func (s *Song) RenumberTracks()
func (*Song) TrackWidth ¶
type TempoChange ¶
type TempoChanges ¶
type TempoChanges []*TempoChange
func (TempoChanges) Len ¶
func (p TempoChanges) Len() int
func (TempoChanges) Less ¶
func (p TempoChanges) Less(a, b int) bool
func (TempoChanges) Swap ¶
func (p TempoChanges) Swap(a, b int)
type TrackMessage ¶
Click to show internal directories.
Click to hide internal directories.