Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIDI music support #1409

Closed
MirceaKitsune opened this Issue Jun 23, 2014 · 10 comments

Comments

Projects
None yet
@MirceaKitsune
Copy link
Contributor

MirceaKitsune commented Jun 23, 2014

Followup to a discussion on IRC and a hint on the forums. I believe Minetest should add support for midi and / or mod music. There are primarily two reasons:

Firstly, this would allow adding simple music to Minetest without increased file size. Songs in ogg format are large enough to make connecting to a server take a lot of time. Midi music is very small instead, and would make music support very cheap.

Second, it would perfectly fit Minetest's theme. Like Minecraft, we use blocky voxels and x16 textures by default, which has a nice 16-bit era feel. Midi music would add to this.

@webD97

This comment has been minimized.

Copy link

webD97 commented Jun 23, 2014

+1 This makes sense!

@ShadowNinja ShadowNinja added enhancement and removed enhancement labels Jun 23, 2014

@kaeza

This comment has been minimized.

Copy link
Contributor

kaeza commented Jun 23, 2014

Personally I don't like MIDI music too much as it depends on the hardware synthetizer which tends to suck. Of course software synthetizers make the point moot, but that adds the requirement to install a huge package containing the samples (and probably a big library too).

On the other hand, there are a few lightweight libraries for module music playback (like DUMB, newer fork).

It could also be possible to play positional module sounds with OpenAL (given that they are basically a score of waveform samples). I'm not sure this would be possible with MIDI without using a software synthetizer and/or lots of hacks.

PS: Could you link to the related IRC discussion if possible?

@asl97

This comment has been minimized.

Copy link
Contributor

asl97 commented Jun 24, 2014

@kaeza there is plenty of good lightweight soundfonts ranging from as small as 3.6mb to well over 3gb
my personal fave is a 6.7mb 8bitsf.sf2

as for library, as stated in the irc log, it can be done using timidity++

irc: http://irc.minetest.ru/minetest-dev/2014-06-10#i_3754994

@MirceaKitsune

This comment has been minimized.

Copy link
Contributor Author

MirceaKitsune commented Jun 24, 2014

All I know library wise is that Timidity needs to be installed for MIDI support to work on Linux. Sounds like Minetest could add it as an optional dependency, like freetype fonts are listed in cmake.

@sapier sapier removed the protocol bump label Jun 29, 2014

@sapier sapier added this to the 0.4.11 milestone Jun 29, 2014

@stujones11

This comment has been minimized.

Copy link
Contributor

stujones11 commented Jul 6, 2014

+1 for this, see my comments in this forum topic: https://forum.minetest.net/viewtopic.php?f=5&t=9582

@twoelk

This comment has been minimized.

Copy link

twoelk commented Sep 15, 2014

+1 exactly because this should be lightweight for the server and the internet connection and rather lets the client do all the work. I don't think that any default sounds or music should use this but I could imagine it usefull if Minetest supported midi files.

This could be used for input and output and other things than music. There where some controllers using midi to transfer data and I think I remember some wheather stations using the midi protocol. Heck, maybe somebody will come up with a mapgen using midi files.

@ShadowNinja ShadowNinja modified the milestones: 0.5, 0.4.11 Nov 21, 2014

@beyondlimits

This comment has been minimized.

Copy link
Contributor

beyondlimits commented Jun 26, 2016

but that adds the requirement to install a huge package containing the samples (and probably a big library too)

A some kind of FM/PM synthesizer that imitates real instruments could be implemented. I can be lightweight, and sound great (possibly even better than that dirt-quality gm.dls that comes with Windows).

@Fixer-007

This comment has been minimized.

Copy link
Contributor

Fixer-007 commented Jun 26, 2016

mod, xm, it, s3m is much better for my ears

@nerzhul nerzhul modified the milestone: 0.5 Dec 24, 2016

@rubenwardy

This comment has been minimized.

Copy link
Member

rubenwardy commented Aug 26, 2017

duplicate of #3878

@rubenwardy rubenwardy closed this Aug 26, 2017

@rubenwardy

This comment has been minimized.

Copy link
Member

rubenwardy commented Aug 26, 2017

closing as other one has better discussion, imo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.