|
Media /
Miditagging of MIDI filesPlaying an MP3 in your average media player is simple. Try to play a MIDI file, however, brings all sorts of complications. Assuming that you can get your media player to recognise the format at all (hint: GStreamer applications), you then face the problem of knowing what file is what. All media players rely on tags, and yet I am having a devil of a job to get MIDI-tags recognised. This documents what is (and is not) sucessful... Title
Official Meta-EventsThe MIDI-specifications define the following meta-events:
Extending the Text Meta-Event to support tagging.As the MIDI specification does not define specific methods of tagging a file with information regarding the Artist, Date, etc, we must adopt some structured form of using this one meta-event to hold all our information, in some logical and machine parsable way.
Potential Tag structureTaken from a fictional MIDI file, generated by reading and converting a mythical piano-roll. Copyright: Handled verbatim. Text: TALB=The Sound of Music TCOM=Rodgers, Richard TDAT=2009-01-01 TENC=Doe, John TEXT=Hammerstein II, Oscar TIT*=My Favorite Things TLAN=EN TORY=1959 TPE1=Brubeck,David Warren TPUB=Josef Weinberger Ltd. TRDA=1962 Taken from a potential MIDI file, generated by reading and converting a real piano roll which was recorded by the composer in 1916, and published and released the following year by Uni-Record under the 'Melody' label. Note that, though I use ID3v2 tagnames, I am using Vorbis formatting layout, and that there are duplicate tags... :Text: TIT1=Rialto Ripples TCON=Fox Trot TCON=Ragtime TCOM=Gershwin, George TCOM=Donaldson, Will TPUB=Uni-Record TORY=1917 TPE1=Gershwin, George TPE4=Melody (Uni-Record) TRDA=1916 TENC=Unknown TOWN=Kunst der Fuge TDAT=2002-05 USER=Can *not* be used for commercial purposes without authorization! TMED=Piano Roll TXXX=Tagged according to the unoffical 'MIDITAG' specification. WXXX=http://manx.biz/opensource/Media/Midi Another Example: TPE4=QRS Roll Number=9726 TORY=1899 TIT1=Maple Leaf Rag Song TPUB=John Stark & Son TCOM=Joplin, Scott TEXT=Brown, Sydney WOAR=http://en.wikipedia.org/wiki/Scott_Joplin TPE1=Joplin, Scott TDAT=2005-06-08 TMED=Piano Roll TENC=Trachtman, Warren Unknown (as yet)...
Nota beneAny meta-tag belongs to an individual TRACK, rather than the entire MIDI file. Should we define that all our TAG information should be held in the first track only? |