Hi,
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 �:�)
you could bring in the windows media player control. it is msdxm.ocx on my computer. then just do MediaPlayer1.play(filename) that should work. also look into the PlaySound function in the API. it achieve the same effect.
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.
Thanks
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.
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).