Previous Thread
Next Thread
Print Thread
Rate Thread
Midi files! #17710
09/27/03 06:57 PM
09/27/03 06:57 PM
Joined: Sep 2003
Posts: 20
England
n3o Offline OP
Junior Member
n3o  Offline OP
Junior Member

Joined: Sep 2003
Posts: 20
England
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 ¦:¬)

Re: Midi files! #17711
10/03/03 02:43 AM
10/03/03 02:43 AM
Joined: Mar 2002
Posts: 599
TN
BackSlash Offline
UGN's Resident Homo
BackSlash  Offline
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
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."
Re: Midi files! #17712
10/04/03 07:42 PM
10/04/03 07:42 PM
Joined: Sep 2003
Posts: 20
England
n3o Offline OP
Junior Member
n3o  Offline OP
Junior Member

Joined: Sep 2003
Posts: 20
England
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

Re: Midi files! #17713
10/04/03 08:06 PM
10/04/03 08:06 PM
Joined: Mar 2002
Posts: 1,273
OH, USA
SilentRage Offline
DollarDNS Owner
SilentRage  Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
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
Re: Midi files! #17714
10/25/03 09:36 PM
10/25/03 09:36 PM
Joined: Oct 2003
Posts: 209
here.
Red Mage Offline
Member
Red Mage  Offline
Member

Joined: Oct 2003
Posts: 209
here.
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.

Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,203
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums41
Topics33,680
Posts68,697
Average Daily Posts1
Members2,174
Most Online1,567
Apr 25th, 2010
Latest Postings
Animation,
by JohanKaariainen. 08/15/19 01:18 AM
Blackbeard.....
by Gremelin. 10/03/18 07:02 PM
Top Posters(All Time)
UGN Security 41,392
Gremelin 7,203
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 3
Black Beard Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Dartur Likes: 1
fleshwound Likes: 1
Ghost Likes: 2
Girlie Likes: 1
Gremelin Likes: 14
Powered by UBB.threads™ PHP Forum Software 7.7.0