Hugor with new MIDI support

Hugo programming discussion. http://www.generalcoffee.com/hugo
Hugo By Example: http://hugo.gerynarsabode.org/index.php?title=Main_Page
Roody Yogurt's Hugo Blog: http://notdeadhugo.blogspot.com

Moderators: AArdvark, Ice Cream Jonsey

User avatar
RealNC
Posts: 1356
Joined: Wed Mar 07, 2012 4:32 am

Hugor with new MIDI support

Post by RealNC » Thu Nov 29, 2018 7:29 pm

Recent Windows 10 versions have buggy MIDI support, and it sounds like crap anyway. Linux is even worse. So I've added an internal MIDI synthesizer to Hugor using Fluidsynth. I've uploaded a test build here:

http://83.212.107.13/~realnc/hugor/test ... 181130.zip

It comes with a default soundfont file (midi.sf2), but you can use your own if you want. You can test MIDI playback in the configuration dialog (there's a play button.) Please let me know if there's any issues with MIDI playback.

User avatar
Jizaboz
Posts: 1138
Joined: Tue Jan 31, 2012 2:00 pm
Location: USA
Contact:

Re: Hugor with new MIDI support

Post by Jizaboz » Fri Nov 30, 2018 11:48 am

Now this is cool!

User avatar
Ice Cream Jonsey
Posts: 21620
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new MIDI support

Post by Ice Cream Jonsey » Fri Nov 30, 2018 7:53 pm

A Crimson Spring used MIDI, I'll re-uploaded it to the archive with this.
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1356
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new MIDI support

Post by RealNC » Fri Nov 30, 2018 8:57 pm

This is a build from a dev snapshot. I don't recommend publishing anything with it. I only posted it here so you guys can test if MIDI playback works.

User avatar
Ice Cream Jonsey
Posts: 21620
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new MIDI support

Post by Ice Cream Jonsey » Sat Dec 01, 2018 4:38 pm

CORRECTION: Publishing nothing, which is good, as it means I do not have to do anything yet.
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1356
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new MIDI support

Post by RealNC » Sat Dec 15, 2018 3:42 pm

I uploaded a new dev snapshot:

http://83.212.107.13/~realnc/hugor/test ... -12-15.zip

The default MIDI soundfont is now embedded into the executable, so there's no external SF2 file anymore. When using an external soundfont, SF3 files are now supported too.

The MIDI synthesizer gain can now be adjusted. This is useful when using external soundfont files that are too loud or too quiet.

MOD music support (for games like Dragon Hunt) is now based on OpenMPT instead of ModPlug. It has better sound quality and more accurate playback.

What I'm most interested in is whether or not you get audio dropouts/pops/crackling with MIDI music on slower computers, if you happen to have one.

User avatar
Ice Cream Jonsey
Posts: 21620
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new MIDI support

Post by Ice Cream Jonsey » Sat Dec 15, 2018 11:14 pm

For what it is worth, the first update you did for Hugor is playing a .mid file correctly that I made 15 years ago. Winamp won't play it correctly - the percussion fades in and out of the right and left channel. I imported it into Abelton Live and it treats it as one giant instrument, so the percussion just comes off as piano or whatever instrument I assign it. So this is the first time in a long, long while I've been able to hear the song. Thank you!

I will try the new version now to see if that works, too.
the dark and gritty...Ice Cream Jonsey!

User avatar
RealNC
Posts: 1356
Joined: Wed Mar 07, 2012 4:32 am

Re: Hugor with new MIDI support

Post by RealNC » Sun Dec 16, 2018 5:04 am

Ice Cream Jonsey wrote:
Sat Dec 15, 2018 11:14 pm
I imported it into Abelton Live and it treats it as one giant instrument
That sounds like a type 0 MIDI file. You should try a tool that converts type 0 files to type 1. Something like this maybe:

http://gnmidi.com/gnmidfmten.htm

I'm surprised to learn though that Ableton can't read type 0 files. Seems to be a common problem. There's a macOS converter too:

https://forum.ableton.com/viewtopic.php?t=175438

User avatar
Ice Cream Jonsey
Posts: 21620
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Re: Hugor with new MIDI support

Post by Ice Cream Jonsey » Sun Dec 16, 2018 10:28 am

RealNC wrote:
Sun Dec 16, 2018 5:04 am
Ice Cream Jonsey wrote:
Sat Dec 15, 2018 11:14 pm
I imported it into Abelton Live and it treats it as one giant instrument
That sounds like a type 0 MIDI file. You should try a tool that converts type 0 files to type 1. Something like this maybe:

http://gnmidi.com/gnmidfmten.htm

I'm surprised to learn though that Ableton can't read type 0 files. Seems to be a common problem. There's a macOS converter too:

https://forum.ableton.com/viewtopic.php?t=175438
I cannot thank you enough. GNMIDI let me turn it into a type 1 file and I was able to bring it into Abelton Live (I'm on the demo mode, but I like it a lot) and I am changing instruments and packs and such and listening to this song I made so long ago become a Real Boy. Carnival Baby by Beaver lives! I will see if I can export it as a file or something. But seriously, thanks - I would never have thought of the concept of what could have been wrong with it and this is fixed and really taking me back.
the dark and gritty...Ice Cream Jonsey!

Post Reply