#============================================================================== # ■ RGSS3 ピッチ変更限界突破 Ver1.00 by 星潟 #------------------------------------------------------------------------------ # BGM・BGS・ME・SEのピッチ設定限界である50〜150の制限を解除します。 # # 使用例 # 全て、イベントコマンドのスクリプトで使用して下さい。 #(dataの部分には1以上の数字が入ります) # # $game_temp.bgm_ex_pitch = data # # 次に演奏するBGMのピッチは、設定値を無視してdataの値になります。 # # # $game_temp.bgs_ex_pitch = data # # 次に演奏するBGSのピッチは、設定値を無視してdataの値になります。 # # # $game_temp.me_ex_pitch = data # # 次に演奏するMEのピッチは、設定値を無視してdataの値になります。 # # # $game_temp.se_ex_pitch = data # # 次に演奏するSEのピッチは、設定値を無視してdataの値になります。 # # # なお、ピッチの下限は1ですが、上限はファイルによって異なります。 #============================================================================== module RPG class RPG::BGM < RPG::AudioFile alias play_expitch play unless $! def play(pos = 0) clone_data = @pitch pitch_change play_expitch(pos) @pitch = clone_data end def pitch_change return if $game_temp.bgm_ex_pitch == nil @pitch = $game_temp.bgm_ex_pitch $game_temp.bgm_ex_pitch = nil end end class RPG::BGS < RPG::AudioFile alias play_expitch play unless $! def play(pos = 0) clone_data = @pitch pitch_change play_expitch(pos) @pitch = clone_data end def pitch_change return if $game_temp.bgs_ex_pitch == nil @pitch = $game_temp.bgs_ex_pitch $game_temp.bgs_ex_pitch = nil end end class RPG::ME < RPG::AudioFile alias play_expitch play unless $! def play clone_data = @pitch pitch_change play_expitch @pitch = clone_data end def pitch_change return if $game_temp.me_ex_pitch == nil @pitch = $game_temp.me_ex_pitch $game_temp.me_ex_pitch = nil end end class RPG::SE < RPG::AudioFile alias play_expitch play unless $! def play clone_data = @pitch pitch_change play_expitch @pitch = clone_data end def pitch_change return if $game_temp.se_ex_pitch == nil @pitch = $game_temp.se_ex_pitch $game_temp.se_ex_pitch = nil end end end class Game_Temp attr_accessor :bgm_ex_pitch attr_accessor :bgs_ex_pitch attr_accessor :me_ex_pitch attr_accessor :se_ex_pitch end