Audio Module Rewrite mcisendstring
#1
Audio Module Rewrite mcisendstring
Version: 1.3



Introduction
This system overrides the AUDIO module for the BGM, BGS and ME systems, only letting the SE functions alone. Its primary function is to let the end user have multiple channels for these systems where only one existed before. This means that while the default audio system for RPGMaker XP allowed you to have only one BGS file playing at any one time, you can now have two or more background files playing simultaneously.

You can still use the default Map Event commands and the like for the principle 'first' channel.



Features
  • Multiple channels of BGM, BGS and ME, allowing you to play multiple background sounds simultaneously
  • Default commands still function as normal
  • Script calls for additional channels
  • Allows the end-user to make music start and loop where he wants (some edits required)
  • Comes with a custom loop-point editor (makes the edits for you)



Demo
(>CLICKIES!!!<)



Script
Kinda big. Also, the demo comes with an editor for enhanced loop systems.



Instructions
Besides s small help screen, there is a big help file included in the download.



Notes
Aw, I wish I could have done this with DirectX. It's not the best for midi.... but who uses midi nowadays? Like the default system, neither .wma or .ogg files allow for pitch adjustment. I wouldn't recommend trying to loop pitch-adjusted music with the custom loop-point system anyway.

Also, an additional file is present for those wishing to hear .Ogg Vorbis files with the system, a format normally not audible with the winmm.dll.


Patches
A patch to work with my VEHICLES system


Compatibility
Unless you have something else overwriting the Audio Module or sections of the Game_System class, it should be pretty much compatible with anything for RPGMaker XP.



Credits and Thanks
Cogwheel for the base mechanics dealing with the mcisendstring for RPGMaker XP.



Terms and Conditions
Free for commercial and non-commercial use. Due credit is all that's wanted.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#2
Is it possible to make this do a Zelda like musical background - when you approach an enemy a new track superimposes on the old one to add danger.
For example:

Harp music playing, grassy plains, gentle.
Enemy approaches! Draw your sword! - rhythm and a new melody are added to the original piece to make it more urgent.
Reply }
#3
Commander Wyatt made a system for MrMo's ABS that recognizes on-screen enemies and changes tunes when you're in a range (in mah MrMo demo). But it's also made for the default Audio and doesn't have the fancy fade-in/fade-out effects that THIS Audio Module could now allow.

Adding more melodies to an existing track... nope. That's something that needs to add to an existing piece or sync at an exact moment/millisecond.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#4
But I could theoretically fade one in at the same time as I fade another out, only they're both the same song, just one has percussion on it. :D
Reply }
#5
This is so awesome, thank you DerVVulfman :D
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }
#6
Version 1.1 now.

Added the ability to make files stop looping and just end, and added its own 'ranged audio' system.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#7
sweet! wind and waterfalls and BIRDS even! it's always been awkward to try to bring complex environmets to life with just one bgs
Reply }
#8
Yep. Only thing that annoys me is that there is a little 'kick' when you enter the range of an event (even a low volume one). You can reduce the amount of kick depending on what file format and filesize you have. .Ogg is probably the worst in filetypes. You may wanna go .wma instead.

Off topic... kinda: I tried coming up with a method to CACHE audio, but meh. Crash n burn....
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#9
Hey DerVV. I just tested it out and there's a slight issue with it.
When I tell it to play more than one file at a time, it loads them one at a time then plays them. This means that they're out of sync with each other.
Is there a way to introduce a delay of a few seconds before it plays them so that it loads them all first and then plays them in sync?

Also, is it possible to make a function where you can pan the music? I'd need one BGM to play on the right and another on the left, with a third in the centre.
Thanks man. :P
Reply }
#10
Sorry. I kinda mentioned in a thread (maybe here... maybe somewhere else) that I tried to find a way to cache the audio files. But it was crash n burn. Because they cannot cache, they aren't pre-loaded. So yeah... each one has to load before beginning play. That's a drawback.

And I searched for a 'balance' effect to control left/right balance. *sigh* Maybe there IS one, but I haven't found one yet.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Kichi's Kached Audio DerVVulfman 2 8,596 08-21-2023, 11:01 PM
Last Post: DerVVulfman
   Missing Audio Replacer LiTTleDRAgo 1 5,892 06-11-2017, 12:25 AM
Last Post: Whisper
   Super Simple MCISendString DerVVulfman 0 4,895 03-09-2017, 04:52 AM
Last Post: DerVVulfman
   Audio Settings EJlol 1 6,537 07-03-2012, 09:36 PM
Last Post: Erechel
   NRGSS Module Function Library Narzew 2 8,231 05-12-2012, 11:07 AM
Last Post: Narzew
   JEM: Jennifer's Entry Module DerVVulfman 0 5,500 10-14-2010, 04:30 AM
Last Post: DerVVulfman
   Module VirtualKeys zecomeia 0 5,238 03-14-2010, 01:25 AM
Last Post: zecomeia
   Audio File Encryption Dark-Yen 0 5,390 03-08-2008, 06:35 AM
Last Post: Dark-Yen
   Timer Rewrite Mac 0 4,914 03-08-2008, 05:21 AM
Last Post: Mac
   Profession/Offices Module EX-PLUS! Mephistox 0 5,026 03-07-2008, 06:54 AM
Last Post: Mephistox



Users browsing this thread: 1 Guest(s)