Previous Thread
Next Thread
Print Thread
Rate Thread
#17710 09/27/03 05:57 PM
Joined: Sep 2003
Posts: 20
n3o
Offline
Junior Member
Junior Member
Joined: Sep 2003
Posts: 20
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 �:�)

Sponsored Links
▼ Sponsored Links ▼ ▲ Sponsored Links ▲
#17711 10/03/03 01:43 AM
Joined: Mar 2002
Posts: 599
UGN's Resident Homo
UGN's Resident Homo
Joined: Mar 2002
Posts: 599
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.


"It's better to burn out, than to fade away."
#17712 10/04/03 06:42 PM
Joined: Sep 2003
Posts: 20
n3o
Offline
Junior Member
Junior Member
Joined: Sep 2003
Posts: 20
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

#17713 10/04/03 07:06 PM
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
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.


Domain Registration, Hosting, Management
http://www.dollardns.net
#17714 10/25/03 08:36 PM
Joined: Oct 2003
Posts: 209
Member
Member
Joined: Oct 2003
Posts: 209
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).


Those who say do not know.
Those who know do not say.

Link Copied to Clipboard
Member Spotlight
None yet
Forum Statistics
Forums41
Topics33,840
Posts68,858
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Dartur 1
Cyrez 1
Girlie 1
unreal 1
Powered by UBB.threads™ PHP Forum Software 8.0.0