Created
May 3, 2020 05:15
-
-
Save triacontane/f5c9330c9bfd2641f475ad41089c1ccd to your computer and use it in GitHub Desktop.
演奏位置を保持したままBGMのピッチを変更します。
This file contains 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
var bgm = AudioManager._currentBgm; | |
var pos = AudioManager._bgmBuffer.seek(); | |
// BGMのpitchを変数[1]から取得 | |
bgm.pitch = $gameVariables.value(1); | |
AudioManager.playBgm(bgm); | |
AudioManager._bgmBuffer.play(true, pos); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BGMを演奏していないときに実行するとエラーになります。