AgentSkillsCN

color-palette-ref

APC Mini MK2配色参考,包含力度值与通过SysEx自定义的RGB色彩。当用户询问“色彩”、“力度值”、“RGB”、“调色板”、“亮度”、“LED颜色”,或需要在APC Mini MK2上精确设定特定颜色时,此技能便能提供有力支持。

SKILL.md
--- frontmatter
name: color-palette-ref
description: APC Mini MK2 color palette reference with velocity values and custom RGB via SysEx. Use when user asks about "color", "velocity value", "RGB", "palette", "brightness", "LED color", or needs to set specific colors on the APC Mini MK2.

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

typescript
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