status

package
v0.0.0-...-486f928 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduledEvent

type ScheduledEvent struct {
	When  uint
	Event *synth.Event
}

func NewScheduledEvent

func NewScheduledEvent(when uint, ev *synth.Event) *ScheduledEvent

type Status

type Status struct {
	BPM               float64
	Playing           bool
	Granularity       int
	Time              uint
	IntRegisters      []int
	IntArrayRegisters [][]int
	FloatRegisters    []float64
	ScheduledEvents   []*ScheduledEvent
}

func NewStatus

func NewStatus(bpm float64, granularity int) Status

func (*Status) GetScheduledEvents

func (s *Status) GetScheduledEvents(t uint) []*ScheduledEvent

func (*Status) IncrementTime

func (s *Status) IncrementTime()

func (*Status) ResetTime

func (s *Status) ResetTime()

func (*Status) ScheduleEvent

func (s *Status) ScheduleEvent(duration uint, ev *synth.Event)

Jump to

Keyboard shortcuts

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