Estimate the BPM of a show's audio files and write each tempo into its song macro's `SetVar $songbpm` line on grandMA2, so the speed master tracks per song. Use whenever the user points at a folder of performance audio and wants BPM detected and pushed into the song macros — "analyze the BPM", "calculate tempos and update the macros", "fill in $songbpm from these tracks", "get the BPM for the set". Requires the gma2 MCP connected and the song macros already built (see the connect and setlist skills). Needs ffmpeg; pulls librosa via uv.
Ships in gma2. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Detect each song's tempo from its audio and write it into the matching song
macro's line 2 (SetVar $songbpm=<n>), which the engine feeds to the BPM speed
master on song change. Detection lives in scripts/analyze_bpm.py; all console
writes go through the gma2 MCP.
S1_…, S2_… in song
order. Mixed .wav/.mp3 is fine.setlist skill); the console is
connected via the gma2 MCP.ffmpeg must be on PATH. Run the analyzer with uv so librosa loads into an
ephemeral environment (nothing gets installed permanently):
uv run --with librosa --with soundfile --with numpy python \
plugins/gma2/skills/bpm/scripts/analyze_bpm.py "<audio folder>"
It decodes each file to mono 22.05 kHz via ffmpeg, runs librosa beat tracking, and
prints JSON sorted by folder then by the S<n> track number — one entry per file
with bpm, raw, duration_s, and a suspect flag (with half/double
alternatives) for likely octave errors.
The analyzer sorts by folder + S<n>, which mirrors the rundown's artist/song
order. Map each file to its song ID the same way the set list was numbered
(artist-offset blocks: 101/111/121…, +1 per song). Sanity-check the mapping
against the song names — if the audio folders or counts don't match the built
macros (e.g. an extra track that isn't in the rundown), surface the discrepancy
and don't invent a macro for it.
Automatic trackers often lock onto half or double the musical tempo. Report the
suspect entries (bpm < 75 or > 170) with their half/double alternatives and
let the user confirm — the musically-correct octave needs ears. Write the detected
value by default; offer to halve/double on request. Missing BPM defaults to 60.
For each mapped song, set line 2 via the MCP send_raw_command:
Assign Macro 1.<id>.2 /cmd="SetVar $songbpm=<bpm>"
Read back a few: List Macro 1.<id>.2 should show SetVar $songbpm=<bpm>. Report
the full table (id · name · BPM), mark the suspects you flagged, and remind the
user the show isn't saved.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/connectInstall, register, and verify the gma2 MCP server so Claude can drive a grandMA2 lighting console (or onPC) over Telnet. Use this whenever the user wants to "connect to grandMA2", "set up the MA2 console", "install gma2 mcp", "hook up the lighting desk", asks why the gma2 tools aren't available, or is about to run any other gma2 skill (presets / setlist / bpm) and the server isn't connected yet. This is the entry point for the whole gma2 plugin — run it first.
/cuelistImport a song's cue-list CSV (section markers like PGM IN / INTRO / VER 1 / CHOR 1 with a number, name, and timecode) into that song's grandMA2 sequence, building each section as a labelled cue so the operator gets a navigable skeleton to program against. Use whenever the user hands over a per-song CSV of cues/sections and wants it pushed onto the console — "save this cue list to the sequence", "import these cues", "build the cues from this CSV", "turn this section map into cues for the song", or points at a file named like `S1_<song>.csv`. Assumes the song's sequence already exists (built by the setlist skill) and the gma2 MCP is connected (connect skill). Prefer this over hand-typing Store commands — it parses the CSV, maps it to the right sequence, guards against clobbering existing cues, and verifies the result.
/designAct as a professional concert lighting designer on grandMA2: design each song's looks from its audio energy, its section map and the rig's real 3D geometry (MVR), then program them into that song's cues as preset-referenced values with layered fade times, per-song effects locked to the BPM speed master, plus a follow-spot sheet for the operator. Use whenever the user wants the lighting itself designed or programmed — "design the lighting for this song", "program the looks", "fill in the cues", "what should this chorus look like", "設計燈光", "編燈", "打光". Requires the gma2 MCP connected (connect skill) and the song's sequence with labelled empty cues already built (setlist + cuelist skills); the presets skill supplies the palettes this skill references. NOT for UI, web or graphic design (that is the separate design-canvas skill), and NOT for building the empty cue skeleton from a CSV (that is cuelist).
/presetsBuild grandMA2 Gobo / Color / Beam / Focus preset palettes from fixture-type XML profiles, programming the correct per-fixture-type DMX value for each named function so one logical preset works across mixed fixtures. Use whenever the user wants to "build presets", "make a color palette", "set up gobo/beam/focus presets", "program a preset pool", or hands over fixture XML files and a console to populate presets on. Requires the gma2 MCP server connected (run the connect skill first). Prefer this over hand-writing preset commands — it resolves fixture-specific values from the profiles instead of guessing.
/setlistBuild a grandMA2 per-song show system from a set list / rundown: for each song a selector macro, a sequence (with a home cue), a same-named executor on the "Set List" page, a per-song page and view, plus one cue on a master "Set List" cuelist coloured by artist. Everything is linked BY NAME so the existing "Song Change" macro engine drives it. Use whenever the user hands over a rundown / set list (PDF or text) and wants the song macros / sequences / pages / executors built or rebuilt, says "build the set-list system", "set up the songs", "program the show structure from this rundown", or wants to understand/map an existing song-macro engine. Requires the gma2 MCP connected (run the connect skill first).
/gma2:bpmfrom gma2
npx claudepluginhub chienchuanw/chuan-skills --plugin gma2