We are trying to simulate Imuse on AGS.
Imuse is, for example, what happens on Monkey Island 2 while you´re walking by the wharf (and then you go to see the carpenter, Wally, etc.) where the game starts. The theme changes without altering the main melody.
As, actually, it´s not able to reproduce more than one midi at the same time. What we do is to use several midis at same times, and change from one to another using getmidiposition and seekmidi.
The problem is that during that change, the instruments´ volumes are badly heard, they doesn´t load on time, and then the change isn´t good.
I wonder if, maybe, on the next version or in a nearby future, you can fix that error or make AGS able to reproduce more than one midi at the same time.
www.groggames.com.ar/proyecto/imuse.zip
In this exaple, the same midi is used for the 3 areas. But that is of no interest, what matters is how the instument's sound changes. If you go to the white area the sound stops and when going to the colour area the sounds will start fine. Then when going to another area the instuments will be heard with other volumes.
used in Repetaedly Execute of Room:
Code: ags
Thank you, Nahuel36
Imuse is, for example, what happens on Monkey Island 2 while you´re walking by the wharf (and then you go to see the carpenter, Wally, etc.) where the game starts. The theme changes without altering the main melody.
As, actually, it´s not able to reproduce more than one midi at the same time. What we do is to use several midis at same times, and change from one to another using getmidiposition and seekmidi.
The problem is that during that change, the instruments´ volumes are badly heard, they doesn´t load on time, and then the change isn´t good.
I wonder if, maybe, on the next version or in a nearby future, you can fix that error or make AGS able to reproduce more than one midi at the same time.
www.groggames.com.ar/proyecto/imuse.zip
In this exaple, the same midi is used for the 3 areas. But that is of no interest, what matters is how the instument's sound changes. If you go to the white area the sound stops and when going to the colour area the sounds will start fine. Then when going to another area the instuments will be heard with other volumes.
used in Repetaedly Execute of Room:
Region *reg= Region.GetAtRoomXY(player.x, player.y);
if(GetCurrentMusic() != reg.ID)
if((GetMIDIPosition()%4 == 0)||(GetCurrentMusic()==-1))//only change when a compass ends
{
int pos = GetMIDIPosition();
StopMusic();
PlayMusic(reg.ID);
SeekMIDIPosition(pos);
}
Thank you, Nahuel36