协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
grammar-and-qa【开发与工程】Understand, validate, and debug deepjazz abstract grammar tokens and note-cleanup behavior without training.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a deepjazz task is about abstract grammar tokens,
music21 note/chord roundtrips, or QA cleanup of generated notes. This is
legacy deepjazz operating knowledge, not a modern general-purpose music theory
library.
parse_melody(fullMeasureNotes, fullMeasureChords) and
unparse_grammar(m1_grammar, m1_chords) behavior.R,0.125, C,0.250, or
S,0.250,<M2,m-3>.music21 smoke check around parsing, pruning,
unparsing, and cleanup.midi-preprocessing sub-skill.lstm-generation sub-skill.prune_grammar -> unparse_grammar -> prune_notes -> clean_up_notes order and structural validation signals.music21 and
avoids training, playback, downloads, network, and writes.Inspect the token fields with the grammar reference before editing generated grammar. The implementation splits tokens by commas; do not rely on compact comment-only interval notation.
If the runtime only needs a dependency/cleanup sanity check, run:
python scripts/grammar_roundtrip_smoke.py --seed 7 --json
For generated grammar, keep the legacy order:
prune_grammar, then unparse_grammar, then prune_notes, then
clean_up_notes.
Treat exact pitches as nondeterministic. Prefer structural checks: token classes, element counts, valid float durations, at least one generated note, no zero-length notes after cleanup, and no adjacent same-offset note chords.