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


MP3-Album documentation  | view source Contained in the MP3-Album distribution.

Index


NAME

Top

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

SYNOPSIS

Top

	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

Top

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

PUBLIC METHODS

Top

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

Top

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

CONTACT AND COPYRIGHT

Top


MP3-Album documentation  | view source Contained in the MP3-Album distribution.