www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - MIDI in D?

reply Adma <Adma_member pathlink.com> writes:
Currently I program in C++ and use the Midi functions like midioutshortmsg and
the like. does D have any Midi or other sound capabilities that allow for
variable sound frequency or note output?
Jan 24 2006
parent reply pragma <pragma_member pathlink.com> writes:
In article <dr5kir$27lq$1 digitaldaemon.com>, Adma says...
Currently I program in C++ and use the Midi functions like midioutshortmsg and
the like. does D have any Midi or other sound capabilities that allow for
variable sound frequency or note output?
Unfortunately, D has no built-in support for multimedia. Things that the Windows Multimedia SDK or SDL handles, are simply left to those API's. Since you're working under Windows, your best bet is to simply take the .lib file from the Multimedia SDK, convert it to an OMF implib and interface with it from D. Aside: I find it quite dissapointing that SDL doesn't do midi in/out. There are messageboard posts going back 5 years on the topic, yet nothing was ever done. - EricAnderton at yahoo
Jan 24 2006
parent Lars Ivar Igesund <larsivar igesund.net> writes:
pragma wrote:

 In article <dr5kir$27lq$1 digitaldaemon.com>, Adma says...
Currently I program in C++ and use the Midi functions like midioutshortmsg
and the like. does D have any Midi or other sound capabilities that allow
for variable sound frequency or note output?
Unfortunately, D has no built-in support for multimedia. Things that the Windows Multimedia SDK or SDL handles, are simply left to those API's. Since you're working under Windows, your best bet is to simply take the .lib file from the Multimedia SDK, convert it to an OMF implib and interface with it from D. Aside: I find it quite dissapointing that SDL doesn't do midi in/out. There are messageboard posts going back 5 years on the topic, yet nothing was ever done. - EricAnderton at yahoo
Or better yet, use Derelict for SDL support. Lars Ivar Igesund
Jan 24 2006