Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Archangel (aka SoupDragon) on Sun 08/06/2003 16:18:51

Title: MIDI sustain controller
Post by: Archangel (aka SoupDragon) on Sun 08/06/2003 16:18:51
This is a really strange problem. I have a MIDI, that's essentially a piano solo, which makes extensive use of the sustain midi control. It plays fine with any media player; winamp, winMP, whatever, but when I use it in an ags game, for some reason the sustain control doesn't function, leaving a very staccato and weird sounding piece. I've tried using both midi formats (1 and 0) to no avail. Can anyone help me?
Title: Re:MIDI sustain controller
Post by: Pumaman on Sun 08/06/2003 16:25:06
It's possible that the AGS MIDI player doesn't support the Sustain feature. I don't know I'm afraid, I'm not very up on how the various music players work, and the guy who wrote the MIDI player that AGS uses doesn't seem to be around any more.

It has been noted to have a couple of deficiencies so this could be one of them I'm afraid.
Title: Re:MIDI sustain controller
Post by: Archangel (aka SoupDragon) on Sun 08/06/2003 17:56:01
Ack! That really, really sucks. Any chance of that going on the feature suggestions list? Or do any midi masterminds here have a workaround?
Title: Re:MIDI sustain controller
Post by: ThunderStorm on Sun 08/06/2003 18:02:25
Far from being a MIDI mastermind, I just want to add that I noticed that problem too, and I reported it quite a long time ago. If I remember correctly, Chris then suggested to use MOD music instead :P
I'd like to see this problem fixed too, as it makes some pieces really sound strange, as Archangel said.
Title: Re:MIDI sustain controller
Post by: Pumaman on Sun 08/06/2003 18:12:40
Can you provide an example MIDI file with this problem so I can just make sure for myself before taking the problem further?
Title: Re:MIDI sustain controller
Post by: Archangel (aka SoupDragon) on Sun 08/06/2003 18:21:33
I pm'ed you with a url, cj.
Title: Re:MIDI sustain controller
Post by: Synthetique on Mon 09/06/2003 14:26:15
well.. if you make a midi song, you could convert it to .it with modplug tracker., .it is similar to .mod and .xm ..I dont know if the AGS engine plays it so if not, open it in madtracker2 and convert it to .xm ..
Title: Re:MIDI sustain controller
Post by: ThunderStorm on Mon 09/06/2003 16:27:46
Actually, I tried opening a MIDI in ModPlug Tracker, but what sounded like sweeping synthies before turned into a feeling of traffic jam, which was not what I had intended  ::)
Title: Re:MIDI sustain controller
Post by: Synthetique on Mon 09/06/2003 17:25:14
well you have to fix it up a bit in modplug. cuz it sux a bit..
Title: Re:MIDI sustain controller
Post by: Pumaman on Mon 09/06/2003 21:28:48
I raised this problem with the development team behind AGS's sound system - they replied that yes it's a known problem, but that nobody is interested enough in MIDI to fix it, so they recommend converting the tune to a MOD/XM instead. Sorry.
Title: Re:MIDI sustain controller
Post by: Pumaman on Sat 14/06/2003 20:18:19
Ah, I have been suggested a workaround. Try this:
http://www.agsforums.com/acwin.zip

It seems to improve the situation for me.
Title: Re:MIDI sustain controller
Post by: ThunderStorm on Sat 14/06/2003 21:47:36
Hey, thanks! I will try that as soon as possible!

EDIT: To be honest - this sounds more like a bugfix than a workaround to me  :)
At least the MIDI file I tried played just fine now.

Thanks a lot!
Title: Re:MIDI sustain controller
Post by: Archangel (aka SoupDragon) on Sun 15/06/2003 21:01:36
Great, that's perfect :) How soon's this gonna be incorporated into the official release?

Edit: urgh, so it's not quite perfect... the sustain doesn't cut off when you change music! So half the notes last forever into the next tune :/
Title: Re:MIDI sustain controller
Post by: Pumaman on Sun 15/06/2003 22:15:03
Ah well spotted, I'll fix it for beta 1.