MIDI Playback

New releases and general discussions.

Post » Sun Jun 08, 2008 12:31 pm

I know MIDI is old and all and it sounds really crappy, but in not such a long time, this is a good thing. The TIGsource Chinese Bootleg Demakes competition is coming some time soon-ish, and I want to be able to play crappy MIDIs without having to send 4 MB mp3 versions of them with the game. That would be great.
B
2
S
2
G
4
Posts: 110
Reputation: 1,670

Post » Sun Jun 08, 2008 3:41 pm

AH yes you can play midi, no worries man.

1. Right click-> Insert the Audio Object Direct Sound into the layout (it will not be visible)
2. Several play options:
2a. Start of Layout-> Direct Sound/ Play music "filename.mid" (Works with Midi)

2b. Start of Layout-> Direct Sound/ Load File "filename.wav" (you can edit which channel, but it is okay to leave at channel 0)
+
Play Direct Sound Channel 0 (or you can specify another channel)

2c. Start of Layout-> Direct Sound/ Autoplay "filename.wav"

The channels allow you to have multiple sound files be loaded/played at once. Really cool!
Hope this helps! :D
B
13
S
3
G
5
Posts: 286
Reputation: 3,193

Post » Sun Jun 08, 2008 8:54 pm

Huh. I've tried using "Play Music" to play MIDI's before, but it never worked.
B
2
S
2
G
4
Posts: 110
Reputation: 1,670

Post » Mon Jun 09, 2008 2:22 am

OH! the midi needs to be in the same directory as your cap file. also include the extension name, so if your mid is cheesewhiz, it'd be

"cheeswhiz.mid"
B
13
S
3
G
5
Posts: 286
Reputation: 3,193

Post » Mon Jun 09, 2008 2:34 am

On a nearly-related side note, I would expect any self-respecting Construct user to have their file extensions unhidden in Windows.
B
3
S
2
G
4
Posts: 310
Reputation: 2,120

Post » Tue Jun 10, 2008 2:46 am

I did both of those. I'm not stupid.
B
2
S
2
G
4
Posts: 110
Reputation: 1,670

Post » Tue Jun 10, 2008 2:52 am

Not saying you are, man. Not one bit. Some people who view this later, however, may benefit from advice like that the rest of us consider common knowledge.
B
3
S
2
G
4
Posts: 310
Reputation: 2,120

Post » Sun Jun 15, 2008 12:49 am

Windows Media Player on my machine has a nasty habit of fading the MIDI volume on my PC to zero. I've no idea why. Check the windows mixer and see if the MIDI volume is up; 'Play Music' should work fine with midi files. Try opening the file in Windows Media Player - if it works there, Play Music should be able to play it too.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests