SDL_Mixer: Improved MIDI playback patch

CWC wrote:

Speaking as a musician, all my midi files have leading silence.

If it’s the case that many midi editors insert silence like that, then a Mix_SkipSilence() is a good
idea if it can also be implemented for different formats. The whole point of of libraries like
SDL_mixer is to get more portability and consistency between different music and sound formats.

This debate is quite strange to me, because it seems quite obvious that this is a peculiarity of midi in particular - it may be very time consuming to implement such a feature for other formats with
dubious relevance (what are the chances anyone actually wants that behavior?).On 08/08/2011 11:00 PM, Beoran wrote:

CWC wrote:

Speaking as a musician, all my midi files have leading silence.

If it’s the case that many midi editors insert silence like that, then a Mix_SkipSilence() is a good
idea if it can also be implemented for different formats. The whole point of of libraries like
SDL_mixer is to get more portability and consistency between different music and sound formats.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier

[quote=“Forest Hale”]This debate is quite strange to me, because it seems quite obvious that this is a peculiarity of midi in particular - it may be very time consuming to implement such a feature for other formats with
dubious relevance (what are the chances anyone actually wants that behavior?).

[quote]

Well, if that’s the case, then only a Mix_MidiSkipSilence, then. So it’s clear it’s midi-specific. Does that simplify the debate? :slight_smile:

Actually, you missed the point. The editor does not insert silence, I
do, because it’s necessary in order for all the gear to sync up. But
that’s only necessary for recording purposes.

I do agree with you that the capability to easily strip leading silence
is a good thing. But I also agree with others who have said that it
should not become default behavior. If it’s a clean bit of code that can
be placed into the library and used on a clip by clip basis, I’m all for it.On 8/9/2011 12:00 AM, Beoran wrote:

CWC wrote:
Speaking as a musician, all my midi files have leading silence.

If it’s the case that many midi editors insert silence like that, then
a Mix_SkipSilence() is a good
idea if it can also be implemented for different formats. The whole
point of of libraries like
SDL_mixer is to get more portability and consistency between different
music and sound formats.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

With the way native_midi processes files, any silence stripping needs to happen at load time and not some later point.? That makes setting it up on a clip-by-clip basis a lot harder.________________________________
From: charlesw@blackfoot.net (charlesw)
Subject: Re: [SDL] SDL_Mixer: Improved MIDI playback patch

I do agree with you that the capability to easily strip leading silence is a good thing. But I also agree with others who have said that it should not become default behavior. If it’s a clean bit of code that can be placed into the library and used on a clip by clip basis, I’m all for it.