/hildegard:hildegard-musicfrom hildegard
Generates synthesized instrumental music, jingles, sound effects, ambience, binaural beats, and nature soundscapes from JSON recipes using Python scripts. Includes loudness checking and visual contact sheets.
Ships in hildegard. 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.
Read hildegard-craft first. This skill makes instrumental music, sound effects and long soundscapes with code you
can run anywhere: scripts/sfx.py renders a sound effect from a JSON recipe, scripts/music.py renders a piece from a
JSON score, scripts/soundscape.py renders 10 to 60 minute beds that never loop (binaural beats, isochronic tones,
waves, rain, wind, creek, crickets, fire, noise) and scripts/sheet.py draws a picture of any audio. Each one checks
its own work, so a small model that fills in the recipe carefully gets a file that is in key, in time, unclipped and at
the right loudness.
What this is not. It is synthesized: subtractive, FM, additive and plucked-string models, played by a sequencer. Expect synthesized instruments, not a recorded band; it has no singing voice and no speech. Say so every time you deliver. For a real song with a voice, or spoken words, see "Words, voices and real songs" below.
Needs Python 3.10 or newer and numpy (python3 -m pip install "numpy>=1.24"). ffmpeg is only needed to write .mp3
or .ogg. No GPU, no network, no account. Run the scripts from this skill's scripts/ folder, or with their full path.
HG in a command is the folder that holds the Hildegard skills (this skill's folder sits in it).
You cannot hear, so look. Every script takes --sheet out.png and draws a contact sheet: the waveform, a
spectrogram on a log frequency axis, the short-term loudness against its target, and the energy in nine octave bands,
with the sections of a piece marked. Open the PNG before you deliver and read it with "What the sheet shows" below.
python3 scripts/sheet.py any.wav out.png does the same for any file.
If you read nothing else, do these steps.
No shell or tools here (a chat, or tools turned off)? Then you are writing a plan: give the user the commands in order, with their file names, and the checks to run after. Never write tool-call markup or claim a result you did not get.
python3 scripts/sfx.py --list,
python3 scripts/music.py --list and python3 scripts/soundscape.py --list print each with a note. Never write a
recipe from nothing. Words or a singer in the brief: stop and use "Words, voices and real songs".cp presets/coin.json mycoin.json).note and a vary field that name the safe knobs. Mood words
map to knobs through the mood table, and only through it. Defaults: music -14 LUFS, true peak -1 dBTP; length,
key and tempo as the template has them.python3 scripts/music.py mine.json --check (or sfx.py). Fix the first ERROR and run it again. Read
the warnings; fix any your change caused. Each message and its fix: references/check-messages.md.python3 scripts/music.py mine.json out.wav --check --sheet out.png (add --bits 24 for a master). It
writes the file only when there is no error. .mp3 and .ogg work when ffmpeg is installed.out.png and read it with the table below. The last line printed is the measurement..mp3 for a small file and say which part is a
guess. You cannot hear it; the user listens and decides.Shortcuts that need no copy: python3 scripts/sfx.py --preset coin out.wav, python3 scripts/music.py --template lofi out.wav.
Music accepts --key "D major", --tempo 90, --length 30 and --seed 4 to change the key (everything is written
in scale degrees and roman numerals, so it transposes), the tempo, the exact length in seconds, and the random seed.
The same recipe and seed always give the same file.
| The brief | Start from |
|---|---|
| a UI click, toggle, pop, notification, alert, error, success | ui_click, ui_toggle, bubble_pop, notification_chime, alarm_beeps, error_buzz, success_jingle |
| a game sound: coin, laser, sparkle | coin, laser, magic_sparkle |
| a transition: pass-by, rise, hit, scene change | whoosh, riser, impact_hit, swell, thunder |
| footsteps, a knock, typing, a camera, a page, a heartbeat | footsteps_wood, door_knock, typewriter, camera_shutter, page_turn, heartbeat |
| ambience: rain, wind, fire | rain_bed, wind, fire_crackle |
| a quiet bed under a spoken announcement, a church or school video | church_announcement |
| a corporate, product or explainer bed | corporate_upbeat |
| a chill, study, cozy, cafe bed | lofi |
| trailer, reveal, drama, a slow build | cinematic_swell |
| meditation, sleep, spa, a calm scene | ambient_pad |
| country, folk, a cheerful rustic tune | country_shuffle |
| a hymn, a worship or memorial piece in four parts | hymn_chorale |
| a 15 second radio or ad bed | radio_jingle_15s |
| a lullaby, a music box, a family video | waltz_music_box |
| a long calming bed: ocean, rain, wind, a creek, crickets, a fire, brown or pink noise | ocean_beach, rain_roof_light, rain_roof_heavy, rain_leaves, rain_storm_build, wind_gentle, wind_strong, creek, crickets_night, campfire, brown_noise, pink_noise, white_noise in soundscapes/ |
| binaural beats (headphones) or isochronic tones (speakers) | binaural_delta_3hz, binaural_theta_6hz, binaural_alpha_10hz, binaural_beta_14hz, binaural_wind_down, isochronic_10hz, isochronic_wind_down |
| a mix of beds | beach_rain_alpha, forest_night, rainy_fireside |
Other lengths: change --length. A bed longer than the template: set length_s and repeat a section by raising its
bars (a progression cycles to fill the bars). Bars needed = seconds x tempo / (60 x beats per bar).
python3 scripts/soundscape.py --list, then python3 scripts/soundscape.py ocean_beach out.wav --minutes 60. The hour
never loops, the length is exact, loudness lands at -20 to -26 LUFS and true peak under -1 dBTP.
references/soundscapes.md has the recipe format, the layer types, the mixing rules and why it never repeats.
--minutes stretches a journey's stages in proportion.gain_db. One bed at 0, a detail at about -8, a tone at about -12. At most four layers.--check measures the beat frequency from the finished file for each stage. A value more than 0.1 Hz off the recipe
is an error.These exist because small models drift. Follow them literally.
references/scores.md
and references/recipes.md. Never invent one. An unknown name fails --check and the message lists the choices.--check. Never change five things and then look.Find each mood word in the brief and set the row's values. When two rows conflict, the first word in the brief wins. Everything not listed stays as the template has it.
| Mood words | Template | Tempo | Key and mode | Drums | Other changes |
|---|---|---|---|---|---|
| warm, gentle, reverent, hopeful, quiet, calm voice-over bed | church_announcement | 66 to 80 | major: G, D or F | none or soft shaker | no melody track while someone speaks |
| upbeat, energetic, bright, corporate, modern, confident | corporate_upbeat | 112 to 128 | major: C or G | corporate or four_floor | keep the bell hook; mute it under speech |
| relaxed, chill, cozy, study, cafe, mellow | lofi | 70 to 84 | major: F or C | lofi, swing 0.5 | keep the 7th chords |
| epic, dramatic, tense, powerful, cinematic, trailer | cinematic_swell | 50 to 72 | minor: D, A or E | epic toms | longer rise for more build |
| dreamy, peaceful, meditative, sleepy, floating, spa | ambient_pad | 54 to 70 | lydian or major | none | fewer melody notes |
| rustic, folksy, country, cheerful, farm, barn | country_shuffle | 96 to 120 | major: G, D or A | country_shuffle, swing 0.8 to 1 | keep the violin tune |
| sacred, solemn, hymn, worship, memorial, reverent choir | hymn_chorale | 60 to 84 | major: D, F, G or Bb | none | keep four parts; change the tune only on chord tones |
| playful, whimsical, childlike, lullaby, sweet | waltz_music_box | 80 to 112 | major: F or C | waltz_soft or none | keep the 3/4 time |
| sad, wistful, tender, longing | cinematic_swell | 56 to 70 | minor: A or D | none | rise and fade only, no peak drums |
| suspense, mystery, eerie, uneasy | ambient_pad | 50 to 62 | minor or phrygian | none | --key "E phrygian", a quiet bell |
| fast, driving, sporty, racing | corporate_upbeat | 124 to 132 | major | four_floor | pulse or eighths bass |
| retro, game, 8-bit | sfx presets | coin, laser, success_jingle |
If the brief names none of these words, use the "Which one" table and change nothing else. If it needs a mood the table lacks, say so and pick the nearest row.
For a real song, a singer, spoken words or a recorded sound, do not fake it here. Pick a route and say which.
song-suno.md is with you, follow it: it owns lyrics, hooks,
hymns and the Exclude box. Without it, deliver exactly two copyable blocks and nothing before them: Style (genre,
tempo, named instruments, vocal type, mood; under 200 characters; no artist names) and Lyrics ([Verse],
[Chorus], [Bridge], [Outro] tags; 150 to 300 words; concrete things from the brief, such as a key machine or a
bell on the door, not abstractions; a chorus that repeats; lines of similar length; no stage directions in
parentheses, which Suno sings). Never mention a file you did not open. Fill this brief first, from the request and
the mood table (not from your taste):
references/scores.md where possible ("nylon guitar, felt
piano, upright bass, brushes"), with exclusions ("no synth pads") in the negatives.references/models.md). The user downloads it and accepts its license, never you.node "$HG/hildegard-sound/scripts/voice.mjs" --file tag.txt --out tag.wav (Kokoro, Apache-2.0, no key), then mix
it over this skill's bed with hildegard-sound (HG/hildegard-sound/scripts/duck_mix.py). Premium voices that the listener's own account
pays for: the page at HG/hildegard-sound/references/puter-voice.html.node "$HG/hildegard-sound/scripts/sfx.mjs" --engine freesound --prompt "rain on a tin roof" --seconds 8 --out rain.wav.
Engines and licenses: HG/hildegard-sound/references/free-voice-and-sfx.md.A capable model can leave the preset path once it works, and keeps the same checks: scores from scratch, new effects
from layers, stems, other loudness targets, custom soundscapes with automation, and judging the result as music.
references/going-further.md has each one.
Read the PNG from top to bottom.
| Panel | A good result | A problem and its fix |
|---|---|---|
| Waveform (top) | the body fills a steady band, with a clean fade at the end and the section lines where the sections change | a flat-topped block means clipping or over-limiting: lower gain_db; a huge spike means one hit dominates: lower it |
| Spectrogram | the bass and kick at the bottom, chords and melody as horizontal lines, drums as vertical lines, a gentle fade toward the top | a solid bright band under 60 Hz is rumble: lower the bass or kick level_db; harsh bright columns above 8 kHz are hats or noise: lower them or set highcut |
| Short-term loudness | close to the dashed target and steady; sections differ by a few LU on purpose | a long dip is a thin section; a rising line is a build. Fix unplanned jumps with gain_db per section |
| Octave bands | a gentle slope: the 125 to 500 Hz bars highest, then falling toward 16 kHz | the 60 Hz bar near the top is too much bass; a high 8 kHz bar is too bright |
A sheet shows what is in the file. It does not show whether the music is good: the user's ears decide that.
For Gemini 4 Neon and other models that write long or skip constraints:
--check. Show the checker's last line, not a status report.presets/alarm_beeps.json (opens in a new tab)presets/bubble_pop.json (opens in a new tab)presets/camera_shutter.json (opens in a new tab)presets/coin.json (opens in a new tab)presets/door_knock.json (opens in a new tab)presets/error_buzz.json (opens in a new tab)presets/fire_crackle.json (opens in a new tab)presets/footsteps_wood.json (opens in a new tab)presets/heartbeat.json (opens in a new tab)presets/impact_hit.json (opens in a new tab)presets/laser.json (opens in a new tab)presets/magic_sparkle.json (opens in a new tab)presets/notification_chime.json (opens in a new tab)presets/page_turn.json (opens in a new tab)presets/rain_bed.json (opens in a new tab)presets/riser.json (opens in a new tab)presets/success_jingle.json (opens in a new tab)presets/swell.json (opens in a new tab)presets/thunder.json (opens in a new tab)presets/typewriter.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub students-of-local/hildegard --plugin hildegard17 skills in this plugin
/hildegardUse for /hildegard, /art, /vus, /mus, /suno and any request to make, edit or write creative work; routes images, video, sound, music, 3D, games, web and every kind of writing./hildegard-3dUse when making a 3D model, sculpture, figurine, game asset, relief or lithophane in Blender, OpenSCAD or code, checked each round for views, watertightness and size./hildegard-artUse when making art, an image, illustration, key art, mood board or visual style with the user's image model; posters and covers with words go to hildegard-design.Other plugins' skills for the same job