• Welcome to Dark Bit Factory & Gravity.
 

MIDI Player

Started by Rbz, November 04, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Rbz

Here is a simple C code to play MIDI music that I have used in my entry for CC Compo - "The Graveyard".

I hope someone find it useful  :)


Compile with Dev-Cpp 4.9.9.2


:cheers:


Challenge Trophies Won:

taj

thanks rbraz :-) karma up!
Challenge Trophies Won:

taj

OMG I never knew it was that small! Man you learn something everyday.
Challenge Trophies Won:

Jim

FWIW I used the same code to play the mp3 file in my demo.

mciSendString("open waveaudio pumpkin.mp3 alias mymp3");
mciSendString("play mymp3");


Fryer's demo does the same with his midi file.

Jim
Challenge Trophies Won:

taj

lol if I loaded my synth code , you'd be here for days reading it...its so big it crosses multiple files.
Challenge Trophies Won:

Stonemonkey

Ah, didn't know it could play mp3s. There's an example program for playing midis and wavs in freebasic at:

Freebasic->Examples->windows->winmm->winmmhlp.bas