MIDI for Construct Classic #2We're trying to create a MIDI plugin for Construct Classic, a free game builder https://sourceforge.net/projects/construct/As it turns out, it doesn't support the .mid format. Older versions before 0.98.3 and systems before Windows Vista supported it in the DirectSound.csx plugin.The source code is available at https://github.com/aolko/construct/ but it doesn't include the DirectSound plugin. Perhaps it's been converted to ".\Plugins\XAudio2.csx" and ".\Plugins\Runtime\XAudio2.csx" which contains libraries for several formats.Can anyone with C++ knowledge help? The forums say the project used Microsoft Visual Studio 2008.If it can't play MIDI files directly, then maybe it can play MIDI files via hex commands.***One option shown in the video is launching MIDI files via playsmf.exe (https://github.com/MrBMueller/playsmf)But this isn't very convenient and there's a delay.I had to remove the audio track. Video with sound: https://limewire.com/d/hGxrO#NeoQFBl7Bx***What the plugin should be able to do:- Play/loop/pause/stop/change track, load *.mid from resources or a file. Also, position and stop data. This is used as background music.- MIDI playback using MIDI Hex Commands. Examples: NoteOn - 903C7F, NoteOff - 803C00. These are game sounds (SFX).- Optionally use your own .sf2 sound bank from resources or a file (https://github.com/bradhowes/SF2Lib https://github.com/schellingb/TinySoundFont)Alternatively, you don't need a full-fledged MIDI player to play MIDI files. You can convert MIDI files into a 2D array with a set of commands and save them as such.
get fucked windows
>>108640260This requires a plugin.
>>108640256Sure. My rate is 100 USD/hour.
>>108642336How many hours can you do it in?
>>108642633Getting midi data from construct to audio output maybe 1-2 hours. The real time sink here is getting some shitty ancient C++ to compile. Honestly find an indian on fiverr and ask them to write a plugin that forwards midi data to fluidsynth. It will handle the soundfonts as well.
>>108642944>FluidsynthThis solution is too cumbersome. Can't C++ work directly with DirectSound?
>>108643079DirectSound is deprecated, it's better to depend on something that is actively maintained and guaranteed to work in the future
there's like a million open source midi players you can just rip off...