[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: codercpp.gif (37 KB, 327x320)
37 KB GIF
MIDI for Construct Classic #3

We'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.
>>
Bump because I like your tenacity.
I wish I could help you big guy.
>>
I don't get it, you have the source code, what's your issue? Go pay someone to add the feature.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.