LES MP3 ET LEURS TAGS

Zangdar - 3 déc. 2001 à 09:40
devilssss Messages postés 1 Date d'inscription dimanche 14 mars 2004 Statut Membre Dernière intervention 19 août 2007 - 19 août 2007 à 22:40
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/11693-les-mp3-et-leurs-tags

devilssss Messages postés 1 Date d'inscription dimanche 14 mars 2004 Statut Membre Dernière intervention 19 août 2007
19 août 2007 à 22:40
avec le tableau de const
ca marche
showmessage(Genres[id3tag.Genre]);

mais es ce que c'est une liste officiel?
par ce que sur un morceau rock il m'affiche comedy
cs_grandvizir Messages postés 1106 Date d'inscription samedi 8 novembre 2003 Statut Membre Dernière intervention 3 septembre 2006 22
3 nov. 2004 à 10:52
Bizarre, selon mp3DirectCut et un éditeur hexadécimal, j'avais dans l'ordre l'ID3 suivant:

TMP3Tag = record
Title, Artist, Album : string[30];
Year : string[4];
Infos : string[30];
Track, Style : char;
end;

Il manque donc le Track (n° de piste). Sinon, les tags de mp3DirectCut sont bien détectés. Mais ceci ne détecte pas toutes les infos !!! Ca dépend du type de tag.

[damanix]
Pertinente remarque

[Zangdar]
Il faut écrire: ShowMessage(IntToStr(id3tag.Genre));
damanix Messages postés 20 Date d'inscription samedi 7 septembre 2002 Statut Membre Dernière intervention 2 novembre 2002
11 sept. 2002 à 22:26
const
Genres : array[0..146] of string =
('Blues','Classic Rock','Country','Dance','Disco','Funk','Grunge',
'Hip- Hop','Jazz','Metal','New Age','Oldies','Other','Pop','R&B',
'Rap','Reggae','Rock','Techno','Industrial','Alternative','Ska',
'Death Metal','Pranks','Soundtrack','Euro-Techno','Ambient',
'Trip-Hop','Vocal','Jazz+Funk','Fusion','Trance','Classical',
'Instrumental','Acid','House','Game','Sound Clip','Gospel','Noise',
'Alternative Rock','Bass','Punk','Space','Meditative','Instrumental Pop',
'Instrumental Rock','Ethnic','Gothic','Darkwave','Techno-Industrial','Electronic',
'Pop-Folk','Eurodance','Dream','Southern Rock','Comedy','Cult','Gangsta',
'Top 40','Christian Rap','Pop/Funk','Jungle','Native US','Cabaret','New Wave',
'Psychadelic','Rave','Showtunes','Trailer','Lo-Fi','Tribal','Acid Punk',
'Acid Jazz','Polka','Retro','Musical','Rock & Roll','Hard Rock','Folk',
'Folk-Rock','National Folk','Swing','Fast Fusion','Bebob','Latin','Revival',
'Celtic','Bluegrass','Avantgarde','Gothic Rock','Progressive Rock',
'Psychedelic Rock','Symphonic Rock','Slow Rock','Big Band','Chorus',
'Easy Listening','Acoustic','Humour','Speech','Chanson','Opera',
'Chamber Music','Sonata','Symphony','Booty Bass','Primus','Porn Groove',
'Satire','Slow Jam','Club','Tango','Samba','Folklore','Ballad',
'Power Ballad','Rhytmic Soul','Freestyle','Duet','Punk Rock','Drum Solo',
'Acapella','Euro-House','Dance Hall','Goa','Drum & Bass','Club-House',
'Hardcore','Terror','Indie','BritPop','Negerpunk','Polsk Punk','Beat',
'Christian Gangsta','Heavy Metal','Black Metal','Crossover','Contemporary C',
'Christian Rock','Merengue','Salsa','Thrash Metal','Anime','JPop','SynthPop');

- il manquait ça par rapport à l'original je crois...
oui je sais,
moi j'ai enlevé ça
l'erreur, je crois que c une question de variable
ce code marche pas chez moi, y'a une erreur de showmessage.(id3.genre);
end;
Rejoignez-nous