Thread overview
MIDI in D?
Jan 24, 2006
Adma
Jan 24, 2006
pragma
Jan 24, 2006
Lars Ivar Igesund
January 24, 2006
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?


January 24, 2006
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
January 24, 2006
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