Versions in this module Expand all Collapse all v0 v0.2.0 Oct 23, 2024 Changes in this version + const Mk3PID + const Mk3VID + const PadClear + const PadClearAuto + const PadCopy + const PadNudgeLeft + const PadNudgeRight + const PadNumber1 + const PadNumber10 + const PadNumber11 + const PadNumber12 + const PadNumber13 + const PadNumber14 + const PadNumber15 + const PadNumber16 + const PadNumber2 + const PadNumber3 + const PadNumber4 + const PadNumber5 + const PadNumber6 + const PadNumber7 + const PadNumber8 + const PadNumber9 + const PadOctaveMinus + const PadOctavePlus + const PadPaste + const PadQuantize + const PadQuantize50 + const PadRedo + const PadSemitoneMinus + const PadSemitonePlus + const PadStepRedo + const PadStepUndo + const PadUndo + type Button int + const ButtonArrowLeft + const ButtonArrowRight + const ButtonAuto + const ButtonBrowser + const ButtonChords + const ButtonDuplicate + const ButtonEncoder + const ButtonErase + const ButtonEvents + const ButtonFavorites + const ButtonFixedVel + const ButtonFollow + const ButtonGroup + const ButtonKeyboard + const ButtonLock + const ButtonMod + const ButtonMute + const ButtonNoteRepeat + const ButtonNotes + const ButtonPadMode + const ButtonPattern + const ButtonPerform + const ButtonPitch + const ButtonPlay + const ButtonPlugin + const ButtonProject + const ButtonRec + const ButtonRestart + const ButtonSampling + const ButtonScene + const ButtonSelect + const ButtonShift + const ButtonSolo + const ButtonStep + const ButtonStop + const ButtonSwing + const ButtonTap + const ButtonTempo + const ButtonVariation + const ButtonVolume + func (i Button) String() string + type ButtonMessage struct + 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 uint8 + const ColorBlue + const ColorCyan + const ColorFuchsia + const ColorGreen + const ColorLightOrange + const ColorLime + const ColorMagenta + const ColorMint + const ColorOff + const ColorOrange + const ColorPlum + const ColorPurple + const ColorRed + const ColorTurquoise + const ColorViolet + const ColorWarmYellow + const ColorWhite + const ColorYellow + func (i Color) String() string + type ColorLevel uint8 + const ColorLevelFaded + const ColorLevelHigh + const ColorLevelLow + const ColorLevelMedium + func (i ColorLevel) String() string + type ColoredLight struct + Color Color + Level ColorLevel + type Intensity uint8 + const IntensityHigh + const IntensityLow + const IntensityMedium + const IntensityOff + func (i Intensity) String() string + type Lights struct + Buttons [39]Intensity + Pads [16]ColoredLight + Strip [35]ColoredLight + func NewLights() Lights + type Mk3 struct + func OpenMk3() (*Mk3, error) + func (m *Mk3) Close() error + func (m *Mk3) Lights() Lights + func (m *Mk3) Run(ctx context.Context) error + func (m *Mk3) SetLights(lights Lights) error + func (m *Mk3) SetOnButtonFunc(fn OnButtonFunc) + func (m *Mk3) SetOnPadFunc(fn OnPadPunc) + func (m *Mk3) SetScreen(img image.Image) error + type OnButtonFunc func(msg ButtonMessage) + type OnPadPunc func(msg PadMessage) + type Pad uint8 + func (i Pad) String() string + type PadAction uint8 + const PadActionPressed + const PadActionReleased + const PadActionTouched + func (i PadAction) String() string + type PadMessage struct + func (p *PadMessage) Action() PadAction + func (p *PadMessage) Pad() Pad + func (p *PadMessage) Velocity() uint16