{"by":"lmichaelis","descendants":20,"id":40616509,"kids":[40621087,40622846,40626506,40621133,40621680,40620942,40621873,40628817],"score":91,"text":"DirectMusic[1] is a deprecated Windows API for playing dynamic music scores authored using DirectMusic Producer[2]. It was originally released as part of DirectX in 1999 and discontinued with the release in Windows Vista around 2009-ish.<p>Due to my involvement with projects[3] re-implementing an old game engine for the early 2000&#x27;s games Gothic and Gothic II[4], I came to notice that existing solutions[5] were incorrect and hard to use. Thus, I was tasked with writing a new, correct re-implementation of the API.<p>Today, my re-implementation is able to (mostly) play back so-called style-based segments[6] and is fully tested against both the Gothic and Gothic II soundtracks. I am actively working on getting the Lego Island 2 soundtrack working as well.<p>There are many features of DirectMusic which the library does not currently support, simply because I have not been able to find or test soundtracks using them, so if you want to contribute, I&#x27;d love to know about software shipping with DirectMusic soundtracks!<p>[1]: <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;DirectMusic\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;DirectMusic</a><p>[2]: <a href=\"https:&#x2F;&#x2F;www.vgmpf.com&#x2F;Wiki&#x2F;index.php?title=DirectMusic_Producer\" rel=\"nofollow\">https:&#x2F;&#x2F;www.vgmpf.com&#x2F;Wiki&#x2F;index.php?title=DirectMusic_Produ...</a><p>[3]: Specifically GothicVR (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;GothicVRProject&#x2F;GothicVR\">https:&#x2F;&#x2F;github.com&#x2F;GothicVRProject&#x2F;GothicVR</a>) and OpenGothic (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;Try&#x2F;OpenGothic\">https:&#x2F;&#x2F;github.com&#x2F;Try&#x2F;OpenGothic</a>) through my ZenKit library (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;GothicKit&#x2F;ZenKit\">https:&#x2F;&#x2F;github.com&#x2F;GothicKit&#x2F;ZenKit</a>)<p>[4]: <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Gothic_II\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Gothic_II</a><p>[5]: There is libdmusic (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;libdmusic&#x2F;libdmusic\">https:&#x2F;&#x2F;github.com&#x2F;libdmusic&#x2F;libdmusic</a>) which is unmaintained and an embedded implementation in OpenGothic (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;Try&#x2F;OpenGothic\">https:&#x2F;&#x2F;github.com&#x2F;Try&#x2F;OpenGothic</a>)<p>[6]: <a href=\"https:&#x2F;&#x2F;documentation.help&#x2F;DirectMusic&#x2F;howmusicvariesduringplayback.htm\" rel=\"nofollow\">https:&#x2F;&#x2F;documentation.help&#x2F;DirectMusic&#x2F;howmusicvariesduringp...</a>","time":1717840935,"title":"Show HN: I wrote a partial re-implementation of DirectMusic","type":"story","url":"https://github.com/GothicKit/dmusic"}