Thread #108609400
File: codercpp.png (17 KB)
17 KB PNG
Good morning, tea, coffee, and a cheesecake.
I'm crying out for 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 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.
12 RepliesView Thread
>>
>>108609400
quick LLM question for
how to play midi files on windows? in my C++ program
gives several options. perhaps just do that - add some library to play midi - and do it yourself?
unless it must be coupled more with your construct thing
>>
>>108609400
just convert the midi file to mp3 or whatever.
>file size
it's like 1mb or so for a good bitrate 1min song.
I personally use audacity for recording audio, you just set the microphone to a speaker or something for lookback recording. I like using an old version of synthfont for playing custom soundfonts (but I think you could import a midi into a music program and set the instruments to VST's or whatever, that would help with exporting the audio without needing audacity, and synthfont will not export to mp3 or maybe not, I don't know).
I do like midi because sometimes it might keep playing an instrument when you pause the audio (like the classic windows player), but there are songs that have really long notes, and it would be annoying if you want to transition to different music.
>1mb is too big
It's not, many game engines are like 30mb+ for the binary. If construct was 1mb or less, I can see the appeal but if you did save like 4mb from your project (4 mins of audio), I don't think anyone would care, and also I think you need to download a mp3 player that supports midi just to play midi files since I think the new windows media player can't play midi files (if people wanted to play the music files).
>>
>>108609507
Yes, it is the plugin for Construct Classic that is needed.
>>108609651
MIDI is a must.
It would be even better if the plugin could use its own .sf2 file.
>>
>>
>>
>>
>>
File: fff.png (60.7 KB)
60.7 KB PNG
>>108609400
If this were possible in C++, developers have long since made a separate plugin.
>>
>>
>>
File: midi_in_playsmf_nosound.mp4 (3.2 MB)
3.2 MB MP4
Hello, dear friends!
Regarding launching MIDI in Construct Classic.
One option is to launch MIDI files via playsmf.exe (https://github.com/MrBMueller/playsmf)
But this isn't very convenient and there's a delay.
I had to delete the audio track.
See, even here they skimp on sound.
https://limewire.com/d/hGxrO#NeoQFBl7Bx