smftimeline

package
v1.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeLine

type TimeLine struct {
	// contains filtered or unexported fields
}

func New

func New(ticks smf.MetricTicks) *TimeLine

func (*TimeLine) AddTimeSignature

func (t *TimeLine) AddTimeSignature(num, denom uint8)

AddTimeSignature adds the given timesignature at the current cursor position

func (*TimeLine) Forward

func (t *TimeLine) Forward(num, denom uint32)

Forward sets the cursor forward for the given ratio of whole notes

func (*TimeLine) ForwardNBars

func (t *TimeLine) ForwardNBars(nbars uint32)

ForwardNBars checks the bar where the cursor currently is and goes n bars ahead and sets the cursor to the start of that bar.

func (*TimeLine) GetDelta

func (t *TimeLine) GetDelta() int32

GetDelta returns the delta of the current cursor position to the last delta position and sets the last delta position to the current cursor position returns -1, if cursor is before last delta

func (*TimeLine) Reset

func (t *TimeLine) Reset()

Reset resets the cursor and last delta

func (*TimeLine) Ticks

func (t *TimeLine) Ticks(num, denom uint32) int64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL