Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[XP Script] Audio Module Rewrite mcisendstring
Author Message
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,588
Joined: May 2009 {mydownloads_submissions}
#1
Audio Module Rewrite mcisendstring

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]

(This post was last modified: 04-19-2020, 10:43 PM by DerVVulfman.)
03-16-2012, 04:55 AM
Find Reply
MetalRenard Offline
Feelin' Foxy?
Fearless Leader

Posts: 2,499
Joined: Dec 2010 {mydownloads_submissions}
#2
RE: Audio Module Rewrite mcisendstring

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.

Got a game on Steam! [Image: header.jpg?t=1486637353] [Image: metalrenardlogo-tiny-52718e9.png] Composer, Rocker, World Ambassador for Foxes.
03-16-2012, 12:40 PM
Website Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,588
Joined: May 2009 {mydownloads_submissions}
#3
RE: Audio Module Rewrite mcisendstring

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]

03-16-2012, 10:18 PM
Find Reply
MetalRenard Offline
Feelin' Foxy?
Fearless Leader

Posts: 2,499
Joined: Dec 2010 {mydownloads_submissions}
#4
RE: Audio Module Rewrite mcisendstring

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

Got a game on Steam! [Image: header.jpg?t=1486637353] [Image: metalrenardlogo-tiny-52718e9.png] Composer, Rocker, World Ambassador for Foxes.
03-17-2012, 03:42 AM
Website Find Reply
Kain Nobel Offline
Super Moderator
Super Moderators

Posts: 694
Joined: May 2009 {mydownloads_submissions}
#5
RE: Audio Module Rewrite mcisendstring

This is so awesome, thank you DerVVulfman :D

[Image: LogoCombo.png]

"We are currently in the planning stages and everything you see is a mock up of what tomorrow's reality will hopefully become."
03-17-2012, 10:15 AM
Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,588
Joined: May 2009 {mydownloads_submissions}
#6
RE: Audio Module Rewrite mcisendstring

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]

03-28-2012, 06:31 AM
Find Reply
KasperKalamity Offline
Sellenite King
*****
Registered

Posts: 991
Joined: Oct 2011 {mydownloads_submissions}
#7
RE: Audio Module Rewrite mcisendstring

sweet! wind and waterfalls and BIRDS even! it's always been awkward to try to bring complex environmets to life with just one bgs

1. kick ass
2. take names
3. ???
4. profit
03-28-2012, 09:32 PM
Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,588
Joined: May 2009 {mydownloads_submissions}
#8
RE: Audio Module Rewrite mcisendstring

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]

03-29-2012, 03:13 AM
Find Reply
MetalRenard Offline
Feelin' Foxy?
Fearless Leader

Posts: 2,499
Joined: Dec 2010 {mydownloads_submissions}
#9
RE: Audio Module Rewrite mcisendstring

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

Got a game on Steam! [Image: header.jpg?t=1486637353] [Image: metalrenardlogo-tiny-52718e9.png] Composer, Rocker, World Ambassador for Foxes.
04-16-2012, 01:48 AM
Website Find Reply
DerVVulfman Offline
Fearless Leader
Fearless Leader

Posts: 9,588
Joined: May 2009 {mydownloads_submissions}
#10
RE: Audio Module Rewrite mcisendstring

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]

04-16-2012, 03:55 AM
Find Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
   Alysha's Cached Audio DerVVulfman 1 4,171 07-16-2020, 03:52 AM
Last Post: DerVVulfman
   Missing Audio Replacer LiTTleDRAgo 1 2,802 06-11-2017, 12:25 AM
Last Post: Whisper
   Super Simple MCISendString DerVVulfman 0 2,482 03-09-2017, 04:52 AM
Last Post: DerVVulfman
   NRGSS Module Function Library Narzew 3 5,295 09-18-2012, 10:44 PM
Last Post: Narzew
   Audio Settings EJlol 1 3,833 07-03-2012, 09:36 PM
Last Post: Erechel
   Victor Engine - Basic Module Victor Sant 0 4,230 12-21-2011, 07:46 AM
Last Post: Victor Sant
   JEM: Jennifer's Entry Module DerVVulfman 0 3,148 10-14-2010, 04:30 AM
Last Post: DerVVulfman
   Module VirtualKeys zecomeia 0 3,347 03-14-2010, 01:25 AM
Last Post: zecomeia
   AWorks Input Module vgvgf 0 3,400 09-24-2009, 01:40 AM
Last Post: vgvgf
   Audio File Encryption Dark-Yen 0 3,056 03-08-2008, 06:35 AM
Last Post: Dark-Yen



Users browsing this thread: