jorgecardoso.processing.id3
Class ID3

java.lang.Object
  extended by jorgecardoso.processing.id3.ID3

public class ID3
extends java.lang.Object

The ID3 library allow you to read the ID3v1.1 tags from mp3 files.
Example:

import jorgecardoso.processing.id3.*;

void setup() {
  ID3 id3 = new ID3(this);   

  id3.readID3("alane.mp3");

  println("Song: " + id3.songTitle);
  println("Artist: " + id3.artist);
  println("Album: " + id3.album);
  println("Comment: " + id3.comment);
  println("Year: " + id3.year);
  println("Track:" + id3.track);
  println("Genre: " + id3.genre);
}

Author:
Jorge Cardoso http://jorgecardoso.org

Field Summary
 java.lang.String album
          The Algum name tag.
 java.lang.String artist
          The Artist name tag.
 java.lang.String comment
          The Comment tag.
 java.lang.String genre
          The Genre name.
 byte genreCode
          The Genre code tag.
 java.lang.String songTitle
          The Song Title tag.
 byte track
          The Track tag (ID3v1.1).
 java.lang.String year
          The Year tag.
 
Constructor Summary
ID3(processing.core.PApplet parent)
          Creates a new instance of ID3
 
Method Summary
 boolean readID3(java.lang.String filename)
          Reads the ID3 tags from the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

songTitle

public java.lang.String songTitle
The Song Title tag.


artist

public java.lang.String artist
The Artist name tag.


album

public java.lang.String album
The Algum name tag.


year

public java.lang.String year
The Year tag.


comment

public java.lang.String comment
The Comment tag.


track

public byte track
The Track tag (ID3v1.1).


genreCode

public byte genreCode
The Genre code tag.


genre

public java.lang.String genre
The Genre name.

Constructor Detail

ID3

public ID3(processing.core.PApplet parent)
Creates a new instance of ID3

Method Detail

readID3

public boolean readID3(java.lang.String filename)
Reads the ID3 tags from the specified file. Tags are read into the tag fields.

Parameters:
filename - The name of the mp3 file to read. The file can be in the 'data' directory or anywhere else (if you use an absolute path).
Returns:
True if ID3 tags present. False otherwise.