AgentSkillsCN

midi-protocol-lookup

查阅APC Mini MK2 MIDI协议详情,包括音符编号、MIDI通道、力度值以及SysEx格式。当用户询问“MIDI音符”、“通道”、“力度”、“状态字节”、“SysEx”、“协议”,或需要理解MIDI消息如何控制APC Mini MK2时,此技能便能为您答疑解惑。

SKILL.md
--- frontmatter
name: midi-protocol-lookup
description: Look up APC Mini MK2 MIDI protocol details including note numbers, MIDI channels, velocity values, and SysEx format. Use when user asks about "MIDI note", "channel", "velocity", "status byte", "SysEx", "protocol", or needs to understand how MIDI messages control the APC Mini MK2.

APC Mini MK2 MIDI Protocol Reference

Quick reference for MIDI protocol. For complete details, see reference.md.

MIDI Message Structure

  • Note On: [0x9n, note, velocity] (n = channel 0-15)
  • Note Off: [0x8n, note, velocity]
  • Control Change: [0xBn, cc, value]

Note Mapping

RegionNotesPurpose
Pad Grid0-638x8 RGB pads (row * 8 + col)
Track Buttons100-107Red LEDs
Scene Buttons112-119Green LEDs
Shift122No LED
Faders (CC)48-56CC 48-55 + Master 56

MIDI Channel Effects

ChannelEffect
0-6Brightness 10%-100%
7-10Pulse animation
11-15Blink animation

Use channel 6 (0x96) for full brightness.

SysEx Custom RGB

code
F0 47 7F 4F 24 00 08 [pad] [pad] [R-MSB] [R-LSB] [G-MSB] [G-LSB] [B-MSB] [B-LSB] F7

RGB encoding:

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