pad

package
v0.0.0-...-51c700d Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.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 Hit

type Hit struct {
	X int
	Y int
}

type Pad

type Pad struct {
	*midi.Device
	// contains filtered or unexported fields
}

func Open

func Open() (*Pad, error)

Open opens a connection to the Novation Launchpad.

func (*Pad) Close

func (pad *Pad) Close() error

Close closes the connection to the Pad.

func (*Pad) FlashLight

func (pad *Pad) FlashLight(x int, y int, onColor byte, offColor byte) error

FlashLight flashes the button at x,y with the on and off colors as defined in the Novation Launchpad programmer guide.

func (*Pad) Light

func (pad *Pad) Light(x, y, red int, green int, blue int) error

Light lights the button at x,y with the given red, green, and blue values.

func (*Pad) Listen

func (pad *Pad) Listen(buttonchannel chan Hit) error

Listen for button events from the Launchpad.

func (*Pad) Program

func (pad *Pad) Program() error

Programm puts the Launchpad in Program mode.

func (*Pad) Reset

func (pad *Pad) Reset() error

Reset the connection to the Launchpad.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳