RockyRaccoon Posted June 23, 2008 Report Share Posted June 23, 2008 Hey guys. I'm currently making a simple game in Multimedia Fusion Express. (Oldbie, but a goodie!). However, I can't figure out how to make a Midi Play through the frames, without 'restarting' every frame. How can I make the midi play through frames, without restart? Link to comment Share on other sites More sharing options...
USC Posted June 23, 2008 Report Share Posted June 23, 2008 I think it can be done using the DMC2 or MCI object...I know they did it with the program of the 5th SAGE. Not quite sure how, though... Edit: Yeah, just use this tutorial... http://www.sonicfangameshq.com/view.php?sec=4&id=98 ...and don't send any "close all" to the application; it'll keep playing through the frames. Second Edit: Just realized that may not open with MF Express. Here's how; 1. Create an MCI object. Under Properties, set it's Device name to "mciqtz.drv", it's pause and resume commands to "pause" and "resume", and uncheck all the boxes. 2. In the events section, write *Start for frame (or whenever you want the music to start) -->MCI object; "Open music.mp3" -->MCI object; "Play music.mp3" 3. Add a global group that includes this line.. *End of application -->MCI object; "Close all" 4. You're done! The music will play regardless of what frame you're in. 1 Link to comment Share on other sites More sharing options...
RockyRaccoon Posted June 24, 2008 Author Report Share Posted June 24, 2008 Thanks this worked!... is there anyway I can make it loop the Midi, now? Link to comment Share on other sites More sharing options...
USC Posted June 24, 2008 Report Share Posted June 24, 2008 In the tutorial, it just said... Every "length of song" -->MCI Object; "Close all" -->MCI Object; "Open music.mp3" -->MCI object; "Play music.mp3" ...but since you're going from frame to frame, that probably wouldn't be a good idea. What you COULD do is have a global counter that's constantly being added to, and have a *global* event that, when that counter equals a certain value, performs all those operations and reset the counter. You'll have to figure what value is equal to the length of the song though. (There should be a way of having the MCI object tell you when the song's over, but I'm not sure how...) Nevermind, RedEchidna's works much, much better. Hahaha... Link to comment Share on other sites More sharing options...
RedEchidna Posted June 24, 2008 Report Share Posted June 24, 2008 Add "repeat" to the end of the "play music.mid" line. 2 Link to comment Share on other sites More sharing options...
RockyRaccoon Posted June 24, 2008 Author Report Share Posted June 24, 2008 Add "repeat" to the end of the "play music.mid" line. Okay. So it should look like "play music.mid repeat" because it's not working like that... 'repeat' as a command by itself at the end doesn't work either... ? Link to comment Share on other sites More sharing options...
USC Posted June 24, 2008 Report Share Posted June 24, 2008 Huh...well, it works for MP3s that way; I don't see why it wouldn't do the same for MIDIs...There is a bit of a pause though. How long are you waiting? Worse comes to worse, try my method. It's not nearly as efficient, but you do what you gotta do. Link to comment Share on other sites More sharing options...
RockyRaccoon Posted June 24, 2008 Author Report Share Posted June 24, 2008 Yeah, making a global counter worked... Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts