compose-sacred-music
À propos
Cette compétence permet aux développeurs de composer ou d'analyser de la musique sacrée dans le style modal d'Hildegarde de Bingen. Elle gère la sélection modale, le contour mélodique, la mise en texte et la notation neumatique pour des formes liturgiques comme les antiennes. Utilisez-la pour créer des pièces hildegardiennes, analyser la structure du chant grégorien ou mettre en musique des textes latins.
Installation rapide
Claude Code
Recommandénpx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/compose-sacred-musicCopiez et collez cette commande dans Claude Code pour installer cette compétence
Documentation
作聖樂
依 Hildegard von Bingen 之風作或析聖樂,守其 Symphonia harmoniae caelestium revelationum 與調式原則。
用
- 欲以 Hildegard 風作新聖樂
- 須析某 Hildegard 曲之結構、調式、詞配
- 研中世調式樂與紐姆記譜
- 欲明 Hildegard 作品之禮儀脈絡
- 擬演或教 Hildegard 之樂
- 須拉丁聖詞配樂之導
入
- 必:旨(作新曲 OR 析現曲)
- 作必:聖詞(拉丁為佳,英可為學)
- 作必:禮脈(antiphon、sequence、responsory、hymn)
- 析必:所析 Hildegard 曲名(如「O vis aeternitatis」)
- 可:節日或禮季(影響調擇)
- 可:演者級(簡音節 vs 華麗花唱)
- 可:調好(若作)
行
一:擇調(作)或識調(析)
擇或識治旋律結構之禮儀調。
The Eight Church Modes (Medieval System):
┌──────┬─────────┬────────────┬──────────┬─────────────────────┐
│ Mode │ Name │ Final Note │ Range │ Character │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 1 │ Dorian │ D │ D-D │ Serious, meditative │
│ │ (auth.) │ │ (octave) │ Hildegard's most │
│ │ │ │ │ common │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 2 │ Dorian │ D │ A-A │ Reflective, subdued │
│ │ (plag.) │ │ (below) │ │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 3 │ Phrygian│ E │ E-E │ Mystical, intense │
│ │ (auth.) │ │ │ │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 4 │ Phrygian│ E │ B-B │ Penitential, dark │
│ │ (plag.) │ │ │ │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 5 │ Lydian │ F │ F-F │ Joyful, bright │
│ │ (auth.) │ │ │ (avoids B♮-F tritone│
│ │ │ │ │ with B♭) │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 6 │ Lydian │ F │ C-C │ Gentle, pastoral │
│ │ (plag.) │ │ │ │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 7 │ Mixolyd.│ G │ G-G │ Triumphant, regal │
│ │ (auth.) │ │ │ │
├──────┼─────────┼────────────┼──────────┼─────────────────────┤
│ 8 │ Mixolyd.│ G │ D-D │ Warm, contemplative │
│ │ (plag.) │ │ │ │
└──────┴─────────┴────────────┴──────────┴─────────────────────┘
Hildegard's Modal Preferences:
- Mode 1 (Dorian authentic): Most common — used for Marian texts, visions,
theological depth
- Mode 5 (Lydian authentic): Second most common — for joyful, celebratory texts
(Trinity, angels, saints)
- Mode 3 (Phrygian): Rare but striking — for penitential or mystical intensity
- Plagal modes: Less common in Hildegard; she prefers wide, soaring melodies
that require authentic (higher) range
Modal Selection by Liturgical Context:
- Marian feasts → Mode 1 (Dorian)
- Trinity, angels → Mode 5 (Lydian) or Mode 7 (Mixolydian)
- Penitential seasons (Lent) → Mode 4 (Phrygian plagal)
- General saints → Mode 1 or Mode 8
得: 調已識(析)或擇(作),末音與特範已立。
敗: 不確→默取 Mode 1(Dorian authentic,末於 D)。此為 Hildegard 最常,寬旋範。
二:旋線與範
立 Hildegard 風之寬範高翔旋線。
Hildegard's Melodic Signature:
- WIDE RANGE: Regularly spans a 10th or more (often over an octave)
- Contrast with typical Gregorian chant: 6th-octave range
- Hildegard frequently leaps from low final note to high climax notes
- DRAMATIC LEAPS: Leaps of 5th, 6th, octave common — not stepwise motion
- CLIMACTIC ASCENTS: Melismas often ascend to the highest note on key theological terms
- ARCH CONTOURS: Opening ascent → sustained peak → descending resolution
Example from "O vis aeternitatis" (Mode 1, Dorian):
Text: "O vis ae-ter-ni-ta-tis"
↓ ↓ ↓ ↓ ↓ ↓
Contour: D - A - (D-E-F-G-A-C-D) [melisma on "aeternitatis"]
Low start → Leap up 5th → Climactic melisma ascending to high D
Composing Melodic Contour:
1. Identify key theological/mystical words in text (e.g., "aeternitatis", "viriditas", "sanctus")
2. Reserve highest melodic climax for THE most important word
3. Begin low (near final note) to establish grounding
4. Build to climax in middle of phrase or on penultimate word
5. Resolve down to final note at phrase end
Hildegard's Melismatic Technique:
- Syllabic (1 note per syllable): Opening phrases, conjunctions, articles
- Neumatic (2-4 notes per syllable): Mid-phrase, build momentum
- Melismatic (5+ notes per syllable): Climactic words, theological depth
- Example: "aeternitatis" may carry 15-30 notes across the word
得: 旋線已草、高點已識、範已畫(至少 9 度,宜 10-12 度),音節與花唱分配已定。
敗: 範於演者過寬→降高點一級(如高 D → C)。拱形留而範縮。
三:詞配——音節與花唱
依音節、紐姆、花唱分配映聖詞於旋律。
Hildegard's Text-Setting Principles:
SYLLABIC (1 note = 1 syllable):
- Use for: Opening words, conjunctions ("et", "in", "de"), articles
- Purpose: Establish text clarity, set rhythm
- Example: "O vis" (2 notes only, clear entry)
NEUMATIC (2-4 notes per syllable):
- Use for: Mid-phrase words, transitional words, building phrases
- Purpose: Add lyrical flow without overwhelming text
- Example: "de" (3-note neume), "ca" (2-note neume)
MELISMATIC (5-30+ notes per syllable):
- Use for: Theologically significant words, climactic moments, final syllables
- Purpose: Create mystical/ecstatic expression, allow voice to soar
- Example: "aeternitatis" (20-note melisma), "viriditas" (18-note melisma)
- Hildegard's melismas often follow scalar patterns (ascending/descending scales)
with inserted leaps for intensity
Text-Setting Decision Tree:
1. Is this word theologically central? → MELISMATIC
2. Is this word structural (conjunction, article)? → SYLLABIC
3. Is this word transitional or building tension? → NEUMATIC
4. Where does the phrase need to breathe? → Insert syllabic section for clarity
Example Analysis: "O vis aeternitatis" (Antiphon for Trinity)
O → Syllabic (1 note) — opening invocation
vis → Syllabic (1-2 notes) — short, clear
aeter- → Neumatic (3-4 notes) — building
-ni- → Neumatic (2-3 notes) — continuing
-ta- → MELISMATIC (20+ notes) — CLIMAX on theological term
-tis → Neumatic-syllabic resolution (3-4 notes) → final note D
Liturgical Form Conventions:
ANTIPHON (short, before/after psalm):
- Simple, moderate melisma, clear final cadence
- Example: "O vis aeternitatis" — 1 phrase, moderate range
SEQUENCE (long, paired stanzas):
- Each stanza pair shares same melody
- More elaborate melismas than antiphons
- Example: "O viridissima virga" — multi-stanza, extended form
RESPONSORY (call-and-response structure):
- Soloist sings verse (melismatic), choir responds (simpler)
- Most virtuosic of Hildegard's forms
- Example: "O ignis Spiritus" — highly melismatic solo sections
得: 詞全映旋,音節/紐姆/花唱擇已標。要神詞得花唱。詞雖飾仍明。
敗: 詞失明(花唱過)→非要詞簡為音節。花唱只留於每句 1-2 最要詞。
四:紐姆記譜(選——為真)
如欲史準,以中世方形紐姆於 4 線譜記。
Medieval Neumatic Notation Basics:
STAFF: 4 lines (not modern 5-line)
- Line 3 (from bottom) = Final note (D, E, F, or G depending on mode)
- C-clef or F-clef indicates pitch reference
NEUME SHAPES (square notation):
- PUNCTUM: Single square note (1 syllable, 1 pitch)
- VIRGA: Single note with ascending tail (emphasis)
- PODATUS (PES): Two notes ascending (◡ shape)
- CLIVIS: Two notes descending (⌢ shape)
- SCANDICUS: Three notes ascending
- CLIMACUS: Three notes descending
- PORRECTUS: Down-up motion (⌣ shape)
- TORCULUS: Up-down motion (◡⌣ shape)
Notation Example for "O vis aeternitatis":
(Simplified — actual notation would be on 4-line staff with square neumes)
O vis ae-ter-ni-ta-----------------tis
│ │ │ │ │ └── Extended melisma ──┘
Punctum Podatus Scandicus → Climacus chain → Virga (final D)
Modern Alternative:
- Use modern 5-line staff with stemless noteheads
- Group notes with slurs to indicate neumes
- Mark text syllables clearly under each neume group
得:(選)用者求史準→紐姆草供。演用可以現代譜。
敗: 紐姆過難→供現代譜加明分句。Hildegard 之樂可以現代譜演而不失本色。
五:禮脈與演注
置作或析於禮用,供演導。
Liturgical Context by Form:
ANTIPHON:
- Use: Before and after psalms in Divine Office (Lauds, Vespers, etc.)
- Timing: Sung once before psalm, repeated after psalm
- Performers: Choir or solo cantor
- Hildegard examples: "O vis aeternitatis", "O quam mirabilis"
SEQUENCE:
- Use: After the Alleluia before the Gospel (Mass)
- Timing: Feast days, major liturgical celebrations
- Structure: Paired stanzas (1a-1b, 2a-2b, etc.) — same melody for each pair
- Hildegard examples: "O viridissima virga" (for Virgin Mary)
RESPONSORY:
- Use: After readings in Matins (early morning Office)
- Structure: Solo verse → Choir response → Doxology
- Performers: Trained cantor for verses (melismatic), full choir for response
- Hildegard examples: "O ignis Spiritus Paracliti"
HYMN (rare in Hildegard):
- Use: Specific hours of Divine Office
- Structure: Strophic (same melody for each stanza)
- Hildegard composed few hymns; focused on antiphons, sequences, responsories
Performance Guidance:
TEMPO:
- Slow to moderate — allow melismas to unfold without rushing
- Hildegard's music is contemplative, not rhythmically driven
- Approximately ♩= 60-72 for modern performance
DYNAMICS:
- Subtle swells on climactic melismas
- No strong accents — smooth, flowing line
- Natural decay at phrase ends (not clipped)
ORNAMENTATION:
- Historical practice: Small ornaments (liquescence) on certain neumes
- Modern practice: Minimal ornamentation; let the written melisma suffice
- Breath marks: Marked by scribe or singer at natural phrase breaks
PRONUNCIATION:
- Ecclesiastical Latin (Italian-style: "ae" = "ay", "ti" = "tee")
- OR restored classical Latin (for historically informed performance)
- Vowels pure and sustained; consonants clear but not harsh
ENSEMBLE:
- Women's voices (Hildegard's nuns sang these)
- Unaccompanied (a cappella) OR drone (sustained low note on final)
- Modern performances sometimes add harp or medieval fiddle (not historical
for Hildegard's convent, but aesthetically compatible)
得: 禮用已識(何時何處唱)、演注已供(速、強、音)、史脈已明。
敗: 禮脈不明→焦演注。Hildegard 之樂可於音樂會演而不嚴守禮。
驗
- 調已識或擇(1-8,附末音)
- 旋範至少 9 度(宜 10-12 度)
- 要神詞得花唱
- 高點於詞中最要字
- 句起於低(近末音),終於末音
- 詞雖飾仍明(非每字花唱)
- 禮脈已注(antiphon/sequence/responsory)
- 演注已供(速、強、音)
- 若析:比 Hildegard 真作已引
忌
- 過花唱:每音節加花唱→詞隱。留於要字
- 忽調:Hildegard 守調界。勿飄至無關音
- 現代節:中世聖樂非節制。勿加 4/4 拍號
- 範窄:Hildegard 之標為寬範。少於 9 度非 Hildegard 風
- 早高點:最高音過早→無處可築。留給要字
- 平淡段:長音節段無旋趣→扁。混音節與紐姆
- 忽詞意:旋須事神意。隨置花唱為反 Hildegard
參
practice-viriditas— Hildegard 之樂為 viriditas(綠活力)之表consult-natural-history— 諸曲涉 Physica 之草石素assess-holistic-health— 樂於 Hildegard 整體系為療媒meditate(esoteric 域)— 唱 Hildegard 樂可為觀練formulate-herbal-remedy— 部分曲涉治草
Dépôt GitHub
Compétences associées
llamaguard
AutreLlamaGuard est le modèle de Meta, doté de 7 à 8 milliards de paramètres, conçu pour modérer les entrées et sorties des LLM selon six catégories de sécurité comme la violence et les discours haineux. Il offre une précision de 94 à 95 % et peut être déployé avec vLLM, Hugging Face ou Amazon SageMaker. Utilisez cette compétence pour intégrer facilement le filtrage de contenu et des garde-fous de sécurité dans vos applications d'IA.
cost-optimization
AutreCette compétence de Claude aide les développeurs à optimiser les coûts du cloud grâce au redimensionnement des ressources, aux stratégies d'étiquetage et à l'analyse des dépenses. Elle fournit un cadre pour réduire les dépenses cloud et mettre en œuvre une gouvernance des coûts sur AWS, Azure et GCP. Utilisez-la lorsque vous devez analyser les coûts d'infrastructure, redimensionner les ressources ou respecter des contraintes budgétaires.
quantizing-models-bitsandbytes
AutreCette compétence quantifie les LLMs en précision 8 bits ou 4 bits à l'aide de bitsandbytes, permettant une réduction de 50 à 75 % de la mémoire utilisée avec une perte de précision minime. Elle est idéale pour exécuter des modèles plus volumineux sur une mémoire GPU limitée ou pour accélérer l'inférence, prenant en charge des formats comme INT8, NF4 et FP4. La compétence s'intègre à HuggingFace Transformers et permet l'entraînement QLoRA ainsi que l'utilisation d'optimiseurs en 8 bits.
dispatching-parallel-agents
AutreCette compétence Claude déploie plusieurs agents pour enquêter et résoudre simultanément 3 problèmes indépendants ou plus. Elle est conçue pour des scénarios impliquant des défaillances non liées qui peuvent être résolues sans état partagé ni dépendances. La capacité fondamentale est la résolution de problèmes en parallèle, en assignant un agent par domaine problématique indépendant afin de maximiser l'efficacité.
