[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79MBR4591GJPG6YG3D4DDTK":3,"skill-same:01M79MBR4591GJPG6YG3D4DDTK":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79MBR4591GJPG6YG3D4DDTK","godot-audio",null,"Play and mix audio in Godot 4.x: AudioStreamPlayer (2D\u002F3D variants), audio buses with volume\u002Fmute and effects, music vs SFX routing, db\u002Flinear volume, and precise sync-to-beat playback timing. Use when playing sounds or music in a Godot project, routing AudioStreamPlayer nodes to buses, adjusting bus volume via AudioServer, or syncing gameplay to the beat.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-audio\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: godot-audio\ndescription: >\n  Play and mix audio in Godot 4.x: AudioStreamPlayer (2D\u002F3D variants), audio buses\n  with volume\u002Fmute and effects, music vs SFX routing, db\u002Flinear volume, and precise\n  sync-to-beat playback timing. Use when playing sounds or music in a Godot project,\n  routing AudioStreamPlayer nodes to buses, adjusting bus volume via AudioServer, or\n  syncing gameplay to the beat.\nlicense: Apache-2.0\ncompatibility: Godot 4.3+\nmetadata:\n  engine: godot\n  category: godot\n  difficulty: intermediate\n---\n\n# Godot Audio (4.x)\n\nPlay SFX and music, route them through buses, control volume in decibels, and time\ngameplay to the beat. Targets **Godot 4.3+**.\n\n## When to use\n\n- Use when playing sound effects or music, routing audio to buses (Master\u002FMusic\u002FSFX),\n  adjusting volume\u002Fmute from code, adding bus effects (reverb, compressor), positional 3D\n  audio, or syncing events to music.\n\n**When *not* to use:** engine-agnostic audio *design* (adaptive music structure, mixing\nphilosophy, ducking patterns) → `audio-design`; importing\u002Fencoding assets outside Godot.\n\n## Core workflow\n\n1. **Pick the player node:**\n   - `AudioStreamPlayer` — non-positional (music, UI, global SFX).\n   - `AudioStreamPlayer2D` \u002F `AudioStreamPlayer3D` — positional; volume\u002Fpan from distance.\n2. **Assign an `AudioStream`** to `stream` (`.ogg` for music\u002Floops, `.wav` for short SFX)\n   and `play()`. Set `autoplay` for music that starts with the scene.\n3. **Route to a bus.** Set the player's `bus` to a named bus (e.g. `\"Music\"`, `\"SFX\"`).\n   Define buses in the Audio panel (bottom dock); each can have volume, mute, solo, and\n   effects.\n4. **Control volume in dB**, not linear (audio is logarithmic). `0 dB` = unchanged,\n   `-80 dB` ≈ silent. Convert with `linear_to_db`\u002F`db_to_linear`.\n5. **Drive volume\u002Fmute from code** with `AudioServer` by bus index.\n6. **For rhythm**, compute precise playback time using output latency compensation.\n\n## Patterns\n\n### 1. One-shot SFX (fire-and-forget)\n\n```gdscript\n@onready var sfx: AudioStreamPlayer = $Sfx   # stream assigned in the editor\n\nfunc play_jump() -> void:\n    sfx.pitch_scale = randf_range(0.95, 1.05)   # slight variation avoids fatigue\n    sfx.play()\n\n# For many overlapping copies, use an AudioStreamPlayer with an\n# AudioStreamPolyphonic stream, or spawn short-lived players and free on `finished`.\n```\n\n### 2. Set a bus's volume and mute via AudioServer\n\n```gdscript\nfunc set_music_volume(linear_0_to_1: float) -> void:\n    var bus := AudioServer.get_bus_index(\"Music\")\n    # Convert a 0..1 slider to decibels; clamp avoids -inf at 0.\n    AudioServer.set_bus_volume_db(bus, linear_to_db(maxf(linear_0_to_1, 0.0001)))\n\nfunc toggle_sfx(muted: bool) -> void:\n    AudioServer.set_bus_mute(AudioServer.get_bus_index(\"SFX\"), muted)\n```\n\n### 3. Crossfade between two music tracks\n\n```gdscript\n@onready var a: AudioStreamPlayer = $MusicA\n@onready var b: AudioStreamPlayer = $MusicB\n\nfunc crossfade_to(stream: AudioStream, secs := 1.5) -> void:\n    b.stream = stream\n    b.volume_db = -40.0\n    b.play()\n    var tw := create_tween().set_parallel(true)\n    tw.tween_property(a, \"volume_db\", -40.0, secs)   # fade out current\n    tw.tween_property(b, \"volume_db\", 0.0, secs)     # fade in next\n    tw.chain().tween_callback(a.stop)\n    var tmp := a; a = b; b = tmp                      # swap roles\n```\n\n### 4. Beat-accurate timing (compensate for output latency)\n\n```gdscript\n@onready var music: AudioStreamPlayer = $Music\n\nfunc get_playback_time() -> float:\n    # Add time since the last audio mix, subtract output latency, for sub-frame accuracy.\n    var t := music.get_playback_position() + AudioServer.get_time_since_last_mix()\n    return t - AudioServer.get_output_latency()\n```\n\n## Pitfalls\n\n- **Treating volume as linear.** `volume_db`\u002F`set_bus_volume_db` are decibels. Setting\n  `volume_db = 0.5` is nearly full volume, not half. Map sliders with `linear_to_db`.\n- **`linear_to_db(0.0)` is `-inf`.** Clamp the linear value to a small minimum (e.g.\n  `0.0001`) before converting, or special-case 0 → mute.\n- **Bus name typos fail quietly.** `get_bus_index(\"Muisc\")` returns `-1`; calls then error\n  or no-op. Match the exact bus name from the Audio panel.\n- **Short SFX cut off** when the same player is retriggered. Use separate players, an\n  `AudioStreamPolyphonic`, or `AudioStreamPlayer` per-shot freed on `finished`.\n- **Music doesn't loop** unless the import\u002Fstream loop is enabled (`.ogg` import has a\n  Loop option; `AudioStreamWAV` has `loop_mode`).\n- **Syncing to `get_playback_position()` alone is jittery** — it updates per audio mix,\n  not per frame; add `get_time_since_last_mix()` and subtract `get_output_latency()`.\n- **3D audio inaudible** → no `AudioListener3D`\u002F`Camera3D` to hear it, or `max_distance`\u002F\n  attenuation too tight, or wrong bus muted.\n\n## References\n\n- For the bus layout (`.tres`), adding effects (reverb\u002Fcompressor\u002FEQ) and side-chain\n  ducking, `AudioStreamPolyphonic`\u002F`AudioStreamInteractive`, microphone capture, and\n  procedural audio with `AudioStreamGenerator`, read `references\u002Fbuses-and-effects.md`.\n\n## Related skills\n\n- `audio-design` — engine-agnostic adaptive music, mixing, and ducking practice.\n- `godot-animation` — syncing animation\u002FTween to `get_playback_position()`.\n- `godot-ui-control` — volume sliders wired to `AudioServer`.\n","# Godot Audio (4.x)\n\nPlay SFX and music, route them through buses, control volume in decibels, and time\ngameplay to the beat. Targets **Godot 4.3+**.\n\n## When to use\n\n- Use when playing sound effects or music, routing audio to buses (Master\u002FMusic\u002FSFX),\n  adjusting volume\u002Fmute from code, adding bus effects (reverb, compressor), positional 3D\n  audio, or syncing events to music.\n\n**When *not* to use:** engine-agnostic audio *design* (adaptive music structure, mixing\nphilosophy, ducking patterns) → `audio-design`; importing\u002Fencoding assets outside Godot.\n\n## Core workflow\n\n1. **Pick the player node:**\n   - `AudioStreamPlayer` — non-positional (music, UI, global SFX).\n   - `AudioStreamPlayer2D` \u002F `AudioStreamPlayer3D` — positional; volume\u002Fpan from distance.\n2. **Assign an `AudioStream`** to `stream` (`.ogg` for music\u002Floops, `.wav` for short SFX)\n   and `play()`. Set `autoplay` for music that starts with the scene.\n3. **Route to a bus.** Set the player's `bus` to a named bus (e.g. `\"Music\"`, `\"SFX\"`).\n   Define buses in the Audio panel (bottom dock); each can have volume, mute, solo, and\n   effects.\n4. **Control volume in dB**, not linear (audio is logarithmic). `0 dB` = unchanged,\n   `-80 dB` ≈ silent. Convert with `linear_to_db`\u002F`db_to_linear`.\n5. **Drive volume\u002Fmute from code** with `AudioServer` by bus index.\n6. **For rhythm**, compute precise playback time using output latency compensation.\n\n## Patterns\n\n### 1. One-shot SFX (fire-and-forget)\n\n```gdscript\n@onready var sfx: AudioStreamPlayer = $Sfx   # stream assigned in the editor\n\nfunc play_jump() -> void:\n    sfx.pitch_scale = randf_range(0.95, 1.05)   # slight variation avoids fatigue\n    sfx.play()\n\n# For many overlapping copies, use an AudioStreamPlayer with an\n# AudioStreamPolyphonic stream, or spawn short-lived players and free on `finished`.\n```\n\n### 2. Set a bus's volume and mute via AudioServer\n\n```gdscript\nfunc set_music_volume(linear_0_to_1: float) -> void:\n    var bus := AudioServer.get_bus_index(\"Music\")\n    # Convert a 0..1 slider to decibels; clamp avoids -inf at 0.\n    AudioServer.set_bus_volume_db(bus, linear_to_db(maxf(linear_0_to_1, 0.0001)))\n\nfunc toggle_sfx(muted: bool) -> void:\n    AudioServer.set_bus_mute(AudioServer.get_bus_index(\"SFX\"), muted)\n```\n\n### 3. Crossfade between two music tracks\n\n```gdscript\n@onready var a: AudioStreamPlayer = $MusicA\n@onready var b: AudioStreamPlayer = $MusicB\n\nfunc crossfade_to(stream: AudioStream, secs := 1.5) -> void:\n    b.stream = stream\n    b.volume_db = -40.0\n    b.play()\n    var tw := create_tween().set_parallel(true)\n    tw.tween_property(a, \"volume_db\", -40.0, secs)   # fade out current\n    tw.tween_property(b, \"volume_db\", 0.0, secs)     # fade in next\n    tw.chain().tween_callback(a.stop)\n    var tmp := a; a = b; b = tmp                      # swap roles\n```\n\n### 4. Beat-accurate timing (compensate for output latency)\n\n```gdscript\n@onready var music: AudioStreamPlayer = $Music\n\nfunc get_playback_time() -> float:\n    # Add time since the last audio mix, subtract output latency, for sub-frame accuracy.\n    var t := music.get_playback_position() + AudioServer.get_time_since_last_mix()\n    return t - AudioServer.get_output_latency()\n```\n\n## Pitfalls\n\n- **Treating volume as linear.** `volume_db`\u002F`set_bus_volume_db` are decibels. Setting\n  `volume_db = 0.5` is nearly full volume, not half. Map sliders with `linear_to_db`.\n- **`linear_to_db(0.0)` is `-inf`.** Clamp the linear value to a small minimum (e.g.\n  `0.0001`) before converting, or special-case 0 → mute.\n- **Bus name typos fail quietly.** `get_bus_index(\"Muisc\")` returns `-1`; calls then error\n  or no-op. Match the exact bus name from the Audio panel.\n- **Short SFX cut off** when the same player is retriggered. Use separate players, an\n  `AudioStreamPolyphonic`, or `AudioStreamPlayer` per-shot freed on `finished`.\n- **Music doesn't loop** unless the import\u002Fstream loop is enabled (`.ogg` import has a\n  Loop option; `AudioStreamWAV` has `loop_mode`).\n- **Syncing to `get_playback_position()` alone is jittery** — it updates per audio mix,\n  not per frame; add `get_time_since_last_mix()` and subtract `get_output_latency()`.\n- **3D audio inaudible** → no `AudioListener3D`\u002F`Camera3D` to hear it, or `max_distance`\u002F\n  attenuation too tight, or wrong bus muted.\n\n## References\n\n- For the bus layout (`.tres`), adding effects (reverb\u002Fcompressor\u002FEQ) and side-chain\n  ducking, `AudioStreamPolyphonic`\u002F`AudioStreamInteractive`, microphone capture, and\n  procedural audio with `AudioStreamGenerator`, read `references\u002Fbuses-and-effects.md`.\n\n## Related skills\n\n- `audio-design` — engine-agnostic adaptive music, mixing, and ducking practice.\n- `godot-animation` — syncing animation\u002FTween to `get_playback_position()`.\n- `godot-ui-control` — volume sliders wired to `AudioServer`.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"godot","intermediate","Play and mix audio in Godot 4.x: AudioStreamPlayer (2D\u002F3D variants), audio buses with volume\u002Fmute and effects, music vs SFX routing, db\u002Flinear volume, and precise sync-to-beat playback timing. Use when playing sounds or music in a Godot project, routing AudioStreamPlayer nodes to buses, adjusting bus volume via AudioServer, or syncing gameplay to the beat.\n","Godot 4.3+","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill godot-audio",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill godot-audio",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill godot-audio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-audio\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fbuses-and-effects.md","REFERENCE","参考文档",3592,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-audio\u002Freferences\u002Fbuses-and-effects.md",[56,64,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]