NAME

MP3::Album::Layout - Perl extension to manage/represent a layout for a m3 album.

SYNOPSIS

use MP3::Album::Layout;

#create a new layout
my $layout = new MP3::Album::Layout;

#change the disc title
$layout->title("Perl conference");

#add a track
$layout->add_track(artist=>'someone', title=>'regex how to');

#edit track
$layout->edit_track(position=>1, artist=>'still dont know the name');

DESCRIPTION

MP3::Album::Layout represents a mp3 album layout, which contains the (artistic) information of a album.

PUBLIC METHODS

All methods return undef in error case. The error description will be in $@.

new()

Creates a new object.

edit_track(position=>$position, artist=>$art, title=>$title)

Edits the track info in $position. If you dont pass artist or title info, the ones you dont pass will be set as empty strings.

add_track( artist=>$artist, title=>$title, lenght=>$lengh);

Adds a track to this the end of this layout tracklist.

artist([$artist])

Sets/retrieves the layout artist name.

genre([$genre])

Sets/retrieves this layout genre.

comment([$comment])

Sets/retrieves this layout comment.

title([$title])

Sets/retrieves this layout title.

BUGS

There are no known bugs, if you catch one please let me know.

CONTACT AND COPYRIGHT

Copyright 2003 Bruno Tavares <bmavt@cpan.org>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.