Repository navigation
VFG-95 場面の動きに合わせて効果音を付ける - #58
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Shorts の場面の動き (切り替え・題のグリッチ・節点が灯る・粒が届く・弾く・合わさる・数え上がりとその終わり) の時刻に、短い効果音を重ねます。語りより十分小さくし、設定
sfx.enabledで切れます。変更内容
src/render/sfx.ts: 動きのイベントから鳴らす時刻の一覧を作る純粋な関数。同じ音は最短 0.25 秒 (灯る・カチカチは 0.1 秒) あけて間引き、全体の上限 60 件を超えたら優先の低い音から落とし、語りが鳴っている間は音量を下げるsrc/render/remotion/sfx/に置いた。借りた素材は無く、作り方と CC0 での提供は同ディレクトリのLICENSE.mdとscripts/sfx/に書いたsfx(enabled既定 true、volume0.25、duck0.5)。描画の入力sfxに反映し、BGM と同じ流れで有効・無効を決める。描画の段階のハッシュにも含めるHtml5AudioをSequenceで重ねる (横の本編は対象外)scripts/shorts-scenes/render.tsが、効果音を付けて描き、鳴らす時刻の一覧sfx.txtを出す動作確認
pnpm lint、pnpm typecheck、pnpm test、pnpm format:checkリスクの確認
.env*、キー、トークン) を含めていない人が確認すること
runs/sfx/<台本名>/shorts.mp4と、横のsfx.txt(どの時刻にどの音か) を参照してください補足
sfx.volumeで上げてくださいcountStartからcountEndまでは、0.13 秒おき (最大 12 回) のカチカチを並べます