UGN Security

Midi files!

Posted By: n3o

Midi files! - 09/28/03 01:57 AM


I was wondering if any body could help me in being able to integrate a midi file into an application.

I am currently using VB Pro 5.

Any help would be greatly appreciated!

Thanks for those who help :)
Posted By: BackSlash

Re: Midi files! - 10/03/03 09:43 AM

you could bring in the windows media player control. it is msdxm.ocx on my computer. then just do that should work. also look into the PlaySound function in the API. it achieve the same effect.
Posted By: n3o

Re: Midi files! - 10/05/03 02:42 AM

The only problem with doing that, is it will not actually be intergrating the midi file its self.

Do you know anyway of actually putting the midi script for playing the notes into the appliction.

Posted By: SilentRage

Re: Midi files! - 10/05/03 03:06 AM

add it as a resource file. When the program runs you can save the resource file to a temp directory as a temp file and play it.
Posted By: Red Mage

Re: Midi files! - 10/26/03 04:36 AM

If you know all of the notes, you can input it as:

PLAY "O4ABCDEFGO2ABC" (ABCDEFG being notes, O1-4 being octaves, and using + or - for sharp and flat)

Unfortunatly this only works if you know every note, and I'm not sure if it can do multiple notes at the same time (I use QBasic, so I don't know what the newer ones can do).
© 2018 UGN Security Forum