glovelib

package
v0.0.0-...-0624d83 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GlovelightUser = "Glovelight User"
View Source
const MaxCCValue = 127

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	BulbIds     []int  `yaml:"bulb_ids"`
	MidiInput   string `yaml:"midi_input"`
	MidiChannel uint8  `yaml:"midi_channel"`
	XCC         uint8  `yaml:"x_cc"`
	YCC         uint8  `yaml:"y_cc"`
	// contains filtered or unexported fields
}

func (*Controller) HandleCC

func (c *Controller) HandleCC(p *mid.Position, channel, controller, value uint8)

func (*Controller) Start

func (c *Controller) Start() error

func (*Controller) XYVal

func (c *Controller) XYVal() []float32

type Glovelight

type Glovelight struct {
	Controllers []*Controller `yaml:"controllers"`
	BridgeIP    string        `yaml:"bridge_ip"`
	User        string        `yaml:"user"`
	// contains filtered or unexported fields
}

func ReadGlovelightFile

func ReadGlovelightFile(location string) (*Glovelight, error)

func (*Glovelight) ConnectToBridge

func (g *Glovelight) ConnectToBridge() error

func (*Glovelight) ConnectToMIDI

func (g *Glovelight) ConnectToMIDI(justLogPorts bool) error

func (*Glovelight) Start

func (g *Glovelight) Start() error

func (*Glovelight) WriteToDisk

func (g *Glovelight) WriteToDisk() error

Jump to

Keyboard shortcuts

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