Documentation ¶
Index ¶
- Constants
- type Button
- type ButtonMessage
- func (b *ButtonMessage) EncoderPosition() uint8
- func (b *ButtonMessage) IsButtonPressed(btn Button) bool
- func (b *ButtonMessage) IsEncoderTouched() bool
- func (b *ButtonMessage) PressedButtons() []Button
- func (b *ButtonMessage) StripPosition() uint8
- func (b *ButtonMessage) StripSecondPosition() uint8
- type Color
- type ColorLevel
- type ColoredLight
- type Intensity
- type Lights
- type Mk3
- type OnButtonFunc
- type OnPadPunc
- type Pad
- type PadAction
- type PadMessage
Constants ¶
View Source
const ( Mk3VID = 0x17cc Mk3PID = 0x1700 )
View Source
const ( PadNumber13 Pad = iota PadNumber14 PadNumber15 PadNumber16 PadNumber9 PadNumber10 PadNumber11 PadNumber12 PadNumber5 PadNumber6 PadNumber7 PadNumber8 PadNumber1 PadNumber2 PadNumber3 PadNumber4 PadUndo = PadNumber1 PadRedo = PadNumber2 PadStepUndo = PadNumber3 PadStepRedo = PadNumber4 PadQuantize = PadNumber5 PadQuantize50 = PadNumber6 PadNudgeLeft = PadNumber7 PadNudgeRight = PadNumber8 PadClear = PadNumber9 PadClearAuto = PadNumber10 PadCopy = PadNumber11 PadPaste = PadNumber12 PadSemitoneMinus = PadNumber13 PadSemitonePlus = PadNumber14 PadOctaveMinus = PadNumber15 PadOctavePlus = PadNumber16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button int
const ( ButtonProject Button = iota ButtonFavorites ButtonBrowser ButtonVolume ButtonSwing ButtonTempo ButtonPlugin ButtonSampling ButtonArrowLeft ButtonArrowRight ButtonPitch ButtonMod ButtonPerform ButtonNotes ButtonGroup ButtonAuto ButtonLock ButtonNoteRepeat ButtonRestart ButtonErase ButtonTap ButtonFollow ButtonPlay ButtonRec ButtonStop ButtonShift ButtonFixedVel ButtonPadMode ButtonKeyboard ButtonChords ButtonStep ButtonScene ButtonPattern ButtonEvents ButtonVariation ButtonDuplicate ButtonSelect ButtonSolo ButtonMute ButtonEncoder )
type ButtonMessage ¶
type ButtonMessage struct {
// contains filtered or unexported fields
}
func (*ButtonMessage) EncoderPosition ¶
func (b *ButtonMessage) EncoderPosition() uint8
func (*ButtonMessage) IsButtonPressed ¶
func (b *ButtonMessage) IsButtonPressed(btn Button) bool
func (*ButtonMessage) IsEncoderTouched ¶
func (b *ButtonMessage) IsEncoderTouched() bool
func (*ButtonMessage) PressedButtons ¶
func (b *ButtonMessage) PressedButtons() []Button
func (*ButtonMessage) StripPosition ¶
func (b *ButtonMessage) StripPosition() uint8
func (*ButtonMessage) StripSecondPosition ¶
func (b *ButtonMessage) StripSecondPosition() uint8
type ColorLevel ¶
type ColorLevel uint8
const ( ColorLevelLow ColorLevel = iota ColorLevelMedium ColorLevelHigh ColorLevelFaded )
func (ColorLevel) String ¶
func (i ColorLevel) String() string
type ColoredLight ¶
type ColoredLight struct { Level ColorLevel Color Color }
type Lights ¶
type Lights struct { Buttons [39]Intensity Pads [16]ColoredLight Strip [35]ColoredLight }
type Mk3 ¶
type Mk3 struct {
// contains filtered or unexported fields
}
func (*Mk3) SetOnButtonFunc ¶
func (m *Mk3) SetOnButtonFunc(fn OnButtonFunc)
func (*Mk3) SetOnPadFunc ¶
type OnButtonFunc ¶
type OnButtonFunc func(msg ButtonMessage)
type OnPadPunc ¶
type OnPadPunc func(msg PadMessage)
type PadMessage ¶
type PadMessage struct {
// contains filtered or unexported fields
}
func (*PadMessage) Action ¶
func (p *PadMessage) Action() PadAction
func (*PadMessage) Pad ¶
func (p *PadMessage) Pad() Pad
func (*PadMessage) Velocity ¶
func (p *PadMessage) Velocity() uint16
Source Files ¶
Click to show internal directories.
Click to hide internal directories.