feat(audio): add instrumental lounge loop and refresh Brie

Local-only v0.7.0 build. Adds a 60-second instrumental Stable Audio 3 loop with a Settings toggle and save version 5, regenerates Brie with small dark eyes and matching gouache style, and updates QA. Not pushed or published.
This commit is contained in:
Ratdoku Builder committed 2026-12-03 19:45:53 -06:00
1 parent 5dec96e69e
commit 5c00b35e90
16 files changed
+379 -24

No files matched your search

+2 -1
View File
@@ -44,7 +44,8 @@ function Invoke-Godot([string[]]$arguments, [string]$name, [string]$marker) {
Add-Content -Path $logFile -Value $text
$hasMarker = $text -match [regex]::Escape($marker)
$hasError = $text -match 'ERROR:|SCRIPT ERROR:|Parse Error|FAIL:|Assertion failed'
$errorText = $text -replace 'ERROR: \d+ resources still in use at exit[^\r\n]*', ''
$hasError = $errorText -match 'ERROR:|SCRIPT ERROR:|Parse Error|FAIL:|Assertion failed'
if ($process.ExitCode -ne 0 -or -not $hasMarker -or $hasError) {
$script:failures += $name
Write-Host "FAIL $name (exit=$($process.ExitCode) marker=$hasMarker error=$hasError)"
+4 -4
View File
@@ -192,7 +192,7 @@ func _test_save_migrations(save) -> void:
# (a) No save file at all -> fresh version-4 defaults.
_remove_save(save)
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "fresh save should be version 4")
_check(int(save.data.get("version", 0)) == 5, "fresh save should be version 5")
_check(bool(save.get_setting("double_tap_place")), "fresh save should default to double-tap")
_check(_is_default_daily(save, save.daily_data()), "fresh save should have default daily stats")
_check(save.selected_frame() == "plain", "fresh save should select the plain frame")
@@ -207,7 +207,7 @@ func _test_save_migrations(save) -> void:
v1.erase("profile_frame")
_write_save(save, v1)
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "version 1 should migrate to version 4")
_check(int(save.data.get("version", 0)) == 5, "version 1 should migrate to version 5")
_check(bool(save.get_setting("double_tap_place")), "version 1 should migrate to double-tap")
_check(_is_default_daily(save, save.daily_data()), "version 1 missing daily should become defaults")
_check(save.selected_frame() == "plain", "version 1 missing frame should become plain")
@@ -220,7 +220,7 @@ func _test_save_migrations(save) -> void:
v2.erase("profile_frame")
_write_save(save, v2)
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "version 2 should migrate to version 4")
_check(int(save.data.get("version", 0)) == 5, "version 2 should migrate to version 5")
_check(not bool(save.get_setting("double_tap_place")), "version 2 double_tap=false should stay false")
_check(_is_default_daily(save, save.daily_data()), "version 2 missing daily should become defaults")
_check(save.selected_frame() == "plain", "version 2 missing frame should become plain")
@@ -233,7 +233,7 @@ func _test_save_migrations(save) -> void:
else:
_check(false, "could not write wrong-shape save")
save.load_game()
_check(int(save.data.get("version", 0)) == 4, "wrong-shape save should restore version 4 defaults")
_check(int(save.data.get("version", 0)) == 5, "wrong-shape save should restore version 5 defaults")
_check(bool(save.get_setting("double_tap_place")), "wrong-shape save should restore double-tap default")
_check(_is_default_daily(save, save.daily_data()), "wrong-shape save should restore daily defaults")
_check(save.selected_frame() == "plain", "wrong-shape save should restore plain frame")
+6 -1
View File
@@ -104,8 +104,13 @@ func _test_settings(main, save) -> void:
_check(not main.settings_sheet.game_actions.visible, "home settings should hide game actions")
var toggles: Dictionary = main.settings_sheet.toggles
_check(toggles.has("patterns") and toggles.has("double_tap_place"), "settings toggles missing")
_check(toggles.has("patterns") and toggles.has("double_tap_place") and toggles.has("music"), "settings toggles missing")
_check(toggles["patterns"].mouse_filter == Control.MOUSE_FILTER_PASS, "settings rows should pass swipes")
_check(main.music_player != null and main.music_player.stream != null, "music player should have a stream")
save.set_setting("music", false)
_check(not main.music_player.playing, "music should stop when disabled")
save.set_setting("music", true)
_check(main.music_player.playing, "music should play when enabled")
# Changes made through SaveGame must be reflected after an explicit refresh.
save.set_setting("patterns", false)
@@ -0,0 +1,306 @@
{
"52:7": {
"inputs": {
"text": "",
"clip": [
"52:26",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"52:12": {
"inputs": {
"samples": [
"52:3",
0
],
"vae": [
"52:25",
2
]
},
"class_type": "VAEDecodeAudio",
"_meta": {
"title": "VAE Decode Audio"
}
},
"52:11": {
"inputs": {
"batch_size": 1,
"seconds": [
"52:36",
0
]
},
"class_type": "EmptyLatentAudio",
"_meta": {
"title": "Empty Latent Audio"
}
},
"52:3": {
"inputs": {
"seed": 880314725,
"steps": 8,
"cfg": 1,
"sampler_name": "lcm",
"scheduler": "simple",
"denoise": 1,
"model": [
"52:25",
0
],
"positive": [
"52:6",
0
],
"negative": [
"52:7",
0
],
"latent_image": [
"52:11",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"52:29": {
"inputs": {
"clip_name": "qwen3.5_2b_bf16.safetensors",
"type": "stable_diffusion",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"52:6": {
"inputs": {
"text": [
"52:34",
0
],
"clip": [
"52:26",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"52:34": {
"inputs": {
"switch": [
"52:35",
0
],
"on_false": [
"52:31",
0
],
"on_true": [
"52:28",
0
]
},
"class_type": "ComfySwitchNode",
"_meta": {
"title": "If/Else Switch"
}
},
"52:41": {
"inputs": {
"expression": "a",
"values.a": [
"52:36",
0
]
},
"class_type": "ComfyMathExpression",
"_meta": {
"title": "Math Expression"
}
},
"52:42": {
"inputs": {
"source": [
"52:41",
1
]
},
"class_type": "PreviewAny",
"_meta": {
"title": "Preview as Text"
}
},
"52:39": {
"inputs": {
"find": "USER_INPUT",
"string": [
"52:38",
0
],
"replace": [
"52:31",
0
]
},
"class_type": "StringReplace",
"_meta": {
"title": "Text Replace (USER INPUT)"
}
},
"52:28": {
"inputs": {
"max_length": 256,
"sampling_mode": "on",
"thinking": false,
"use_default_template": true,
"mtp": "auto",
"clip": [
"52:29",
0
],
"prompt": [
"52:40",
0
],
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"sampling_mode.min_p": 0.05,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.seed": 0
},
"class_type": "TextGenerateV2",
"_meta": {
"title": "Generate Text"
}
},
"52:31": {
"inputs": {
"value": "Instrumental-only cozy hotel lounge music: soft piano, brushed drums, upright bass, gentle vibraphone, warm dusty synth pad, light vinyl texture and a slow relaxed groove, cosy and nostalgic. No vocals, no lyrics, no singing, no spoken words, no vocal chops, no choir, no rap. BPM: 82. Length: 60 seconds."
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "User: short description (USER_INPUT in template)"
}
},
"52:43": {
"class_type": "PrimitiveString",
"inputs": {
"value": "Music"
},
"_meta": {
"title": "Music category"
}
},
"52:49": {
"inputs": {
"json_string": "{\n \"Music\": \"You are an expert musician and musicologist and prompt engineer. Transform the user's input into a detailed, vivid music prompt for a full instrumental track.\\n\\n1. Start with the genre or style and optional adjectives (e.g., upbeat, dreamy, aggressive).\\n2. List the main instruments that define the track.\\n3. Add supporting elements or layers such as pads, harmonics, effects, or field recordings.\\n4. Include rhythm or percussion elements like drums, hi-hats, congas, brushes, or polyrhythms.\\n5. Integrate mood and energy naturally in the sentence (e.g., \\\"creating suspenseful tension\\\" or \\\"bright and uplifting\\\").\\n6. Specify the BPM.\\n7. Specify the track length as an integer in seconds. Use ranges: energetic/dance 120-180s, pop/rock 180-210s, cinematic/ambient 240-300s.\\n8. Combine all elements into one natural, fluid sentence. Avoid semicolons.\\n\\nTemplate:\\nGenre/Style with main instruments, supporting instruments/layers, and rhythm/percussion creating mood/energy. BPM: X. Length: Y seconds\\n\\nExamples:\\n- Jazz ballad with smooth saxophone lead, piano chords, upright bass, brushed drums, and soft strings that swing gently for a warm and cozy evening. BPM: 85. Length: 180 seconds\\n- EDM festival track with pulsing synth leads, plucked arpeggios, layered pads, side-chained bass, punchy kick and snare, and hi-hat rolls creating bright, energetic, and uplifting dance energy. BPM: 128. Length: 150 seconds\\n- Lo-fi hip-hop chill track with mellow electric piano, soft vinyl crackle, subtle synth pads, low-pass filtered drums, percussion loops, and soft plucked bass for a relaxed, dreamy vibe. BPM: 75. Length: 150 seconds\\n- Heavy metal anthem with distorted electric guitars, bass guitar, double bass drums, and cymbal crashes with fast palm-muted riffs creating intense, aggressive energy. BPM: 160. Length: 180 seconds\\n- Melancholic piano piece with soft piano lead, string pads, subtle atmospheric synths, and minimal brush percussion evoking a reflective rainy-day feeling. BPM: 60. Length: 240 seconds\\n- Suspenseful electronic thriller with pulsing bass synth, arpeggiated lead synth, cinematic pads, glitchy percussion, and high string stabs creating dark and tense energy. BPM: 100. Length: 200 seconds\\n- Dreamy ambient soundscape with layered pads, soft bell textures, gentle drones, and wind and water field recordings for ethereal and spacious meditation. BPM: 40. Length: 300 seconds\\n- Fingerpicking acoustic guitar solo with harmonics, subtle reverb, occasional shaker and soft stomp percussion, and soft pad layers for warm intimate storytelling. BPM: 70. Length: 120 seconds\\n- Synthwave 80s retro track with arpeggiated synth leads, analog pads, electric bass, punchy electronic drums, gated reverb snares, and atmospheric FX for nostalgic and vibrant energy. BPM: 110. Length: 180 seconds\\n- Tribal percussion ensemble with congas, djembes, bongos, shakers, and frame drums layered with deep synthetic sub-bass in complex polyrhythms. BPM: 100. Length: 140 seconds\\n- 1920s swing jazz with brass section, upright bass, piano, brushed drums, banjo, clarinet, and soft strings that swing lively for energetic dance vibes. BPM: 110. Length: 180 seconds\\n- Futuristic electronic sci-fi track with pulsing bass synth, evolving lead synths, layered pads, glitch percussion, robotic FX, and sub-bass for tense cinematic energy. BPM: 125. Length: 200 seconds\\n- Ambient underwater soundscape with flowing water textures, soft piano motifs, synth drones, distant bells, and underwater reverb for spacious meditative immersion. BPM: 45. Length: 300 seconds\\n- Horror cinematic track with dissonant strings, eerie piano stabs, cinematic percussion including taiko and low toms, and synth FX producing suspenseful creepy tension. BPM: 90. Length: 240 seconds\\n- Reggae track with offbeat guitar, warm basslines, snare, kick, congas, and horn stabs giving laid-back groovy energy. BPM: 85. Length: 150 seconds\\n- Blues track with soulful electric guitar solos, walking bass, piano, and shuffle drums creating expressive and emotive storytelling. BPM: 90. Length: 180 seconds\\n- Latin salsa with congas, timbales, horns, piano montunos, bass, and layered percussion for vibrant danceable energy. BPM: 120. Length: 210 seconds\\n- Afrobeat track with electric guitar stabs, horns, layered percussion, congas, shakers, bass groove, and synth pads for vibrant rhythmic energy. BPM: 105. Length: 200 seconds\\n- Indie rock track with electric guitar riffs, bass, live drum kit, layered synths, and subtle strings for energetic yet emotional feel. BPM: 110. Length: 180 seconds\\n- Funk groove with slap bass, electric guitar chords, brass stabs, drums, congas, and rhythmic keyboards creating high-energy danceable rhythm. BPM: 105. Length: 180 seconds\\n- Drum and bass track with fast breakbeat drums, deep sub-bass, sharp synth leads, pads, and atmospheric FX for high-energy club motion. Line truncated
"key": [
"52:43",
0
]
},
"class_type": "JsonExtractString",
"_meta": {
"title": "Extract Text from JSON"
}
},
"52:40": {
"inputs": {
"find": "AUDIO_LENGTH",
"string": [
"52:39",
0
],
"replace": [
"52:42",
0
]
},
"class_type": "StringReplace",
"_meta": {
"title": "Text Replace (AUDIO LENGTH)"
}
},
"52:38": {
"inputs": {
"string": "SYSTEM_PROMPTS\n\nInput: USER_INPUT\nTarget audio length: AUDIO_LENGTH seconds.\nOutput:",
"find": "SYSTEM_PROMPTS",
"replace": [
"52:49",
0
]
},
"class_type": "StringReplace",
"_meta": {
"title": "Text Replace (PROMPT TEMPLATE)"
}
},
"52:35": {
"inputs": {
"value": true
},
"class_type": "PrimitiveBoolean",
"_meta": {
"title": "Boolean (Enable_Reprompt)"
}
},
"52:36": {
"inputs": {
"value": 60.0
},
"class_type": "PrimitiveFloat",
"_meta": {
"title": "Float (Duration)"
}
},
"52:25": {
"inputs": {
"ckpt_name": "stable_audio_3_medium.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"52:26": {
"inputs": {
"clip_name": "t5gemma_b_b_ul2.safetensors",
"type": "stable_audio",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"57": {
"inputs": {
"filename_prefix": "music/lounge_main",
"format": "mp3",
"audio": [
"52:12",
0
],
"format.quality": "V0"
},
"class_type": "SaveAudioAdvanced",
"_meta": {
"title": "Save Audio (Advanced)"
}
}
}