arrange-tape
БесплатноБез исполняемых скриптовНе проверенCompose an arrangement for a tape — plan which elements enter and exit over time, then generate a playable CCArrangement.
от jeremyruppel★ 64 звезды на GitHubОб этом скилле
Arrange Tape
This skill composes an arrangement for a tape — the performance plan for how elements are introduced, removed, and layered over time.
What is an arrangement?
A tape's .scd defines all the musical elements (Pdefs, Ndefs, effects, sidechains). An arrangement defines when each element plays and stops, turning a static loop into a track with structure.
Arrangements use CCArrangement — a declarative class where you list sections as [name, bars, elements] arrays. The class handles all Pdef/Ndef start/stop diffing and runs one Routine on TempoClock.default for drift-free timing.
Process
Step 1: Understand the tape
Read tapes/<name>.scd — the header comment and the code — to understand:
- What elements exist (all Pdef/Ndef names)
- The tempo (needed to calculate total duration)
- The vibe/genre (informs pacing and conventions)
- Effects and sidechains (may need to be activated/deactivated per section)
Step 2: Plan the arrangement with the user
Propose a section-by-section plan. Use standard arrangement conventions for the genre. Common structures:
Dance/electronic (~2-4 min):
- Intro → Build → Drop → Break → Drop 2 → Outro
Ambient/textural:
- Emerge → Develop → Peak → Dissolve
Hip-hop/R&B:
- Intro → Verse → Hook → Verse 2 → Hook → Outro
For each section, specify:
- Name and length in bars
- Which elements are active during that section
- Any parameter changes (effect tweaks, filter sweeps, etc.)
Present the plan as a table or outline and get user approval before writing code.
Step 3: Write the arrangement
The arrangement lives at the end of the tape's .scd as the last numbered block. Assign it to ~arrangement — don't call .play. If the tape already has an ~arrangement block, replace it.
// N. Arrangement - play with ~arrangement.play
~arrangement = CCArrangement([
[\intro, 8, [\kick, \hat]],
[\build, 8, [\kick, \hat, \bass, \rim]],
[\drop, 16, [\kick, \hat, \bass, \rim, \lead, \pad]],
[\break, 8, [\hat, \pad]],
[\drop2, 16, [\kick, \hat, \bass, \rim, \lead, \pad]],
[\outro, 8, [\kick, \hat]],
]);
Helper code the arrangement needs (e.g. functions that hot-swap Pdef sources in action functions) goes just before ~arrangement, in the same block.
To try it live before saving, execute the block via cc_execute and then ~arrangement.play.
Each section is [name, bars, elements]:
- name — a symbol identifying the section (posted to console automatically)
- bars — how many bars this section lasts
- elements — which Pdefs/Ndefs should be playing during this section
The class automatically diffs element lists between sections — elements not in the next section are stopped, new elements are started. You never need to manually call .play or .stop on individual Pdefs.
Optional action function: Add a 4th element for custom per-section logic. It runs on every beat of the section as { |beat, arrangement| }, with beat counting from 0 within the section. Wrap anything that should happen once in if(beat == 0), or it fires on every beat:
// Once, when the section starts
[\drop, 16, [\kick, \hat, \bass, \lead], { |beat|
if(beat == 0) { ~cc.fx.route(\lead, \fx_delay) }
}]
// On the last bar only: a fill
[\build, 8, [\kick, \hat], { |beat|
if(beat == 28) { Pdef(\fill).play }
}]
Fades: put a CCFade in the action slot to ease the master volume across the section. Levels are 0–1, relative to the volume when the arrangement started, and the arrangement puts the volume back when it stops or finishes. The curve is any Env curve (default \sin).
[\intro, 8, [\kick, \hat], CCFade.in], // silence → full
[\dip, 4, [\pad], CCFade(1, 0.5)], // full → half
[\outro1, 4, [\kick, \hat], CCFade(1, 0.5, \lin)], // chain fades across
[\outro2, 4, [\kick], CCFade(0.5, 0, \lin)], // several sections
// Combine with other per-beat logic
[\intro, 8, [\kick], { |beat, arr| CCFade.in.value(beat, arr); if(beat == 0) { ... } }]
Don't fade by hand with s.volume or Ndef(\out_main): out_main misses unrouted patterns, and a raw s.volume fade isn't restored on stop.
Rules:
- List all active elements per section — the class computes what to start/stop
- Build tension by layering elements gradually — don't start everything at once
- Breaks should strip down to 2-3 elements, then rebuild
- Outros should remove elements gradually, with the most fundamental element (usually kick) last
- The final section's elements are automatically stopped when the arrangement ends
Step 4: Update the tape's header comment
Add or update the ## Arrangement section in the tape's /* ... */ header (before ## Notes) to document what was composed:
## Arrangement (<total bars> bars, ~<duration>)
1. **<Section>** (<bars> bars) - <description
Установить arrange-tape в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл arrange-tape?
Compose an arrangement for a tape — plan which elements enter and exit over time, then generate a playable CCArrangement.
Как установить скилл arrange-tape?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл arrange-tape запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic