03-06-2008, 04:35 AM
MP3 loop performance
Version: VX 1.00
(by Cogwheel)
Originally posted at http://members.jcom.home.ne.jp/cogwheel/
Not by DerVVulfman
Ripped from Cogwheel's Japanese site.
Version: VX 1.00
(by Cogwheel)
Originally posted at http://members.jcom.home.ne.jp/cogwheel/
Not by DerVVulfman
Ripped from Cogwheel's Japanese site.
Introduction
At RPGMaker VX, MP3 it is the script which it makes the halfway playback halfway loop correspond.
Introduction is long, as for MP3 where tune fades out lastly as BGM of the game you use and are harsh is, but such strange feeling is rather cancelled by using this script.
In addition both John Don battle using this script, when it performs MP3, Don John tune performing also it is possible from the middle to make play.
However, you use, being to require considerable patience, we request preparedness.
When method of using the case/when sentence is not recognized, we recommend that you inspect with VX help.
Script
MP3 loop performance (Original Japanese)
Instructions
When in the game, it executes with $game_audio.fadein (2), and the event script modifies tune immediately after the that fading in performance is possible. (The to loop the music limitation which is converted)
33 - the part of 46th line, becomes setting of the loop.
When "satoc-boss09-2"
In this part, music file name is input.
File format corresponds to mp3, ogg, wav and mid.
Type = "Battle"
Music type is set.
Especially, if with what, "Normal" other than you are not concerned in the suitable character string.
Simply, aggressive tune by "Dungeon" designating "Battle" and Don John tune as, inside Don John battle when it does, after the battle ending Don John tune, from first is not, it is possible to in the past to reopen from the position where it performed.
START = 0 loop = 96040 fin = 202680
Here is the first liver.
In "START" performance start position, in "loop" the case where tune was performed to end performance reopening position, [ msec (1/1000 seconds) ] please describe performance end position to "fin" at the unit.
Speaking simply, tune is performed as "START" - "fin" -> "loop" - "fin" -> "loop" -... with said.
FAQ
"Fin" -> the occasion where it moves to "loop", somewhat the sound flying occurs. With respect to the quality of mp3, being to be impossible in regard to this point please acknowledge the perfect loop which does not have sound break.
When RPGMaker VX is not put in active state, after performing, the loop do to "fin" position, performance breaks off at that place. In that case the occasion where it puts in active state, again it is performed is reopened from "loop" position. It is specification.
When the position "of fin" exceeds the maximum length of tune, tune is not performed.
Variable bit in case of mp3 which was compressed at rate, the possibility of becoming the position where loop and fin position are not supposed is high, is. In that case doing, it will cope e.g., you abandon gently, or in the production person re-encode at upper fixed bit rate of permission.
Pitch it does not correspond to modification. Because loop timing deviates, in the future there is no correspondence schedule.
Compatibility
RPGMaker VX
Credits and Thanks
Cogwheel.