naporin0624 avatar

color-palette-ref

APC Mini MK2 color palette reference with velocity values and custom RGB via SysEx. Use when user as

提供方 naporin0624|开源

APC Mini MK2 Color Palette Reference

Color reference for velocity values. For complete details, see reference.md.

Primary Colors

ColorVelocityHex
Off00x00
White30x03
Red50x05
Orange90x09
Yellow130x0D
Green210x15
Cyan330x21
Blue450x2D
Purple490x31
Magenta530x35
Pink570x39

Brightness (MIDI Channel)

ChannelBrightness
0-610%-100% solid
7-10Pulse animation
11-15Blink animation

Custom RGB via SysEx

type RGBPair = readonly [number, number];

const encodeRGB = (value: number): RGBPair =>
  [(value >> 7) & 0x01, value & 0x7F] as const;

const setCustomRGB = (output: Output, pad: number, r: number, g: number, b: number): void => {
  const [rMSB, rLSB] = encodeRGB(r);
  const [gMSB, gLSB] = encodeRGB(g);
  const [bMSB, bLSB] = encodeRGB(b);

  output.send('sysex', [
    0xF0, 0x47, 0x7F, 0x4F, 0x24, 0x00, 0x08,
    pad, pad, rMSB, rLSB, gMSB, gLSB, bMSB, bLSB,
    0xF7
  ]);
};

Peripheral Buttons

TypeLED ColorOnBlink
Track 1-8Redvelocity=1velocity=2
Scene 1-8Greenvelocity=1velocity=2
color-palette-ref - 适用于 Claude Code 与 Cursor 的 AI 智能体 Skill | Agent Skills