Presentation is loading. Please wait.

Presentation is loading. Please wait.

Metamidi: a tool for automatic metadata extraction from MIDI files Tomás Pérez-García, Jose M. Iñesta, and David Rizo Computer Music Laboratory University.

Similar presentations


Presentation on theme: "Metamidi: a tool for automatic metadata extraction from MIDI files Tomás Pérez-García, Jose M. Iñesta, and David Rizo Computer Music Laboratory University."— Presentation transcript:

1 metamidi: a tool for automatic metadata extraction from MIDI files Tomás Pérez-García, Jose M. Iñesta, and David Rizo Computer Music Laboratory University of Alicante {tperez,inesta,drizo}@dlsi.ua.es

2 Introduction Metadata permit organization, indexing, and retrieval of music information. Metadata are an important subject of research. metamidi is introduced as a tool for metadata extraction from MIDI files: – Global technical – Track content description and metaevents

3 MIDI Metadata File global metadata: – filename, text metaevents, size, format, number of tracks, resolution, tempo, meter, key, timbral, … Track metatada: – Text metaevents: track name, instrument name, lyrics, markers, … – Content description: duration, occupation, polyphony, pitch range, …

4 The metamidi tool Downloadable from our group web site – http://grfia.dlsi.ua.es/gen.php?id=resources Source code, DTD, XSD Developed in ANSI C 4.2.4 version Open source Tested under Linux.

5 The metamidi tool metamidi –{r|x|l} file [-o fileoutput] Metadata output formats: -r: register -l: line -x: XML -r ------- Midi features -------- name: /Users/inesta/metamidi/straussmyrthenbluten.mid text metaevent: $ size: 48323 format: 1 num tracks: 5 resolution: 1024 tempo: 176.00 tempo changes: 70 meter: 6/8(0),1/4(15360),6/8(24576),1/4(113664),3/4(114688) meter changes: 5 key: FM(0),CM(225280),FM(335872),BbM(385024),FM(495616),BbM(606208) key changes: 6 instruments: 1 percussion: -1 duration: 1515521 has sysex: 0 ------ Features of track 0 ---- text metaevent: $ channel: -1 duration: 1515521 duration rate: 1.00 occupation: 0 occupation rate: 0.00 polyphony duration rate: 0.00 max polyphony: 0 avg polyphony: 0.00 low pitch: -1 high pitch: -1 modulations: 0 aftertouches: 0 pitch bends: 0 program changes: $

6 The metamidi tool metamidi –{r|x|l} file [-o fileoutput] Metadata output formats: -r: register -l: line -x: XML -l '/Users/inesta/metamidi/straussmyrthenbluten.mid';'$';48323;1;5;1024;176.00;70;6/8(0), 1/4(15360),6/8(24576),1/4(113664),3/4(114688);5;FM(0),CM(225280),FM(335872),BbM(385024 ),FM(495616),BbM(606208);6;1;-1;1515521;0;|0;'$';-1;1515521;1.00;0;0.00;0.00;0;0.00;- 1;-1;0;0;0;$;|1;'Acoustic Grand Piano';1;1515521;1.00;606315;0.40;0.47;4;1.69;33;69;0;0;0;1(0);|2;'ACP 4';4;1515521;1.00;1263793;0.83;0.71;4;1.85;43;93;0;0;0;1(0);|3;'ACP 3';3;1515521;1.00;127284;0.08;0.27;9;1.71;48;84;0;0;0;1(0);|4;'B.S. Lengton';2;1515521;1.00;760688;0.50;0.96;4;2.87;29;70;0;0;0;1(0);

7 The metamidi tool metamidi –{r|x|l} file [-o fileoutput] Metadata output formats: -r: register -l: line -x: XML -x

8 Applications Metadata can help in MIDI file indexing, organizing or classifying tasks. In this paper we have presented two examples of the use of the metamidi output in MIR problems: – Melody track selection using track content features – Genre classification using timbral metadata

9 Melody track selection Metadata are used to compute the probability of a track to contain the melody of a MIDI file. What metadata should be used? – Amount of music information: occupation rate – Melody are usually monophonic: polyphony duration rate, max polyphony, average polypohony – Pitch ranges: lowest pitch, highest pitch

10 Melody track selection Training phase: assuming a Gaussian distribution for the values of a descriptor d, P(d|M) and P(d|  M) are obtained from the tracks labeled as melodies and not melodies. Test phase: Bayes theorem is used to compute the probability of a track to be a melody:

11 Melody track selection The decision is taken using a maximum likelihood criterion for all the tracks ( i ) in the file with probability over a threshold,  : CorpusDescr.  S%PRF Clas200High pitch0.0598.50.991.000.99 ClasAvg.Poly0.2080.80.811.000.89 Jazz200Max.Poly & Low p.0.1 2 86.50.880.980.93 JazzMax.Poly & Low p.0.05 2 82.00.830.990.90 Kar200Avg.Poly0.1080.90.811.000.89 KarAvg. Poly0.1088.60.871.000.94

12 Timbre-based genre classification Use timbral information provided by metamidi to classify MIDI files into musical genres also under a probabilistic approach. File representation: x = (1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0 … 0,0,1,0,0) (128 GM + 3 percussions) Grand pianoElectric bassElectric guitarDrum kit

13 Timbre-based genre classification The probability for instrument t i in class c j is computed from the training set A MIDI file is assigned to the class c j that maximizes the a posteriori probability # files of c j with t i # files of c j

14 Timbre-based genre classification Data set: – Hierarchical classes: 3  9 (235) Classical (338) Jazz (283) Popular Baroque (56) Classic (50) Romantic (129) Pre-bop (178) Bop (94) Bossanova (66) Celtic (99) Blues (84) Pop (100)

15 Timbre-based genre classification AcademicJazzPopular Academic22861 Jazz329540 Popular516262 3 class experiment – (10 fold crossvalidation) – 93  2 % (39.5 % baseline) (+53.5 %)

16 Timbre-based genre classification barclasRomPreBopBosCelBlupop Baroque35516000000 Classic8141000000 Romantic127110000000 Prebop000150226000 Bop00078106000 bossa0003152109 Celtic0012019600 Blues0007115628 pop01012134773 9 class experiment – (10 fold crossvalidation) – 68  5 % (20.8 % baseline) (+47.2 %)

17 Conclusions metamidi has been designed as a tool for metadata extraction from standard MIDI files. The good performances of the presented examples show the power of metadata automatc extraction tools for helping in the solution of MIR problems.

18 metamidi: a tool for automatic metadata extraction from MIDI files Tomás Pérez-García, Jose M. Iñesta, and David Rizo Computer Music Laboratory University of Alicante {tperez,inesta,drizo}@dlsi.ua.es


Download ppt "Metamidi: a tool for automatic metadata extraction from MIDI files Tomás Pérez-García, Jose M. Iñesta, and David Rizo Computer Music Laboratory University."

Similar presentations


Ads by Google