Board index » delphi » Midi Files

Midi Files

I'm writing a database that stores music script, lyrics and a midi
file of the tunes. I'd like to store all this info into my .db file
rather than having 4 or 5 hundred .mid files on the cd rom.

Can I store midi files in as blob field and then play them back.

The Mediaplayer seems to need a filename ...

Thanks

 

Re:Midi Files


On Thu, 16 Oct 1997 18:37:52 GMT, donwa...@thezone.net (Don Walsh)
wrote:

Quote
>I'm writing a database that stores music script, lyrics and a midi
>file of the tunes. I'd like to store all this info into my .db file
>rather than having 4 or 5 hundred .mid files on the cd rom.

>Can I store midi files in as blob field and then play them back.

>The Mediaplayer seems to need a filename ...

The Mediaplayer does indeed need a filename, but why not extract a
temprorary copy of the MIDI from the database to a file, and then play
that file?

Also, at least WAV files can be played directly from memory (using
Windows API calls), but I'm uncertain if this procedure can be used
with MIDI files as well.

HTH.

Regards,

Jani J?rvinen
Helsinki Finland

Tools, information, tips, reviews & bug lists
for professional Delphi, Win32 and WinHelp developers.

mailto:ja...@dystopia.fi
http://www.dystopia.fi/~janij/

Other Threads