mitti

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

Listener is a Mitti OSC message receiver

func MakeListener

func MakeListener(oscServer *osc.Server) *Listener

MakeListener creates a Mitti OSC message listener

func (*Listener) Listen

func (listener *Listener) Listen() chan State

Listen registers a new listener for the decoded Mitti messages

type State

type State struct {
	Remaining int
	Elapsed   int
	Hours     int
	Minutes   int
	Seconds   int
	Frames    int
	Progress  float64
	Paused    bool
	Loop      bool
	Updated   time.Time
}

State is the Mitti playback state from osc messages

func (*State) Copy

func (state *State) Copy() State

Copy creates a new copy of the Mitti state

func (*State) CueTimeElapsed

func (state *State) CueTimeElapsed(cueTimeElapsed string)

CueTimeElapsed gets the elapsed time on current Mitti cue

func (*State) CueTimeLeft

func (state *State) CueTimeLeft(cueTimeLeft string)

CueTimeLeft gets the time left on current Mitti cue

func (*State) String

func (state *State) String() string

func (*State) ToggleLoop

func (state *State) ToggleLoop(i int32)

ToggleLoop toggles the loop state

func (*State) TogglePlay

func (state *State) TogglePlay(i int32)

TogglePlay toggles the play/pause state

Jump to

Keyboard shortcuts

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