Audio::APE(3pm)

πŸ“¦
version 1.0.1 Β· 2 versions
  • 1.0.1 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.1 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Audio::APE πŸ’–

okay bestie, welcome to Audio::APE β€” she's the User Contributed Perl Documentation girlie who gives you a whole object-oriented interface to Monkey's Audio file info and the APE tag fields inside it. no cap. πŸ’πŸŽ§


✨ NAME ✨

Audio::APE β€” an object-oriented interface to Monkey's Audio file information and APE tag fields.

like. that's her whole job. she reads your .ape file and tells you what's inside. iconic behaviour honestly.


🌸 SYNOPSIS 🌸

use Audio::APE;
my $mac = Audio::APE->new("song.ape");

foreach (keys %$mac) {
    print "$_: $mac->{$_}\n";
}

my $macTags = $mac->tags();

foreach (keys %$macTags) {
    print "$_: $macTags->{$_}\n";
}

so you make a new object with your filename, you loop over the keys, you print them, then you grab the tags and do it all over again. it's giving main character energy and it literally could not be simpler. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

this module hands you back a hash with the basic deets about a Monkey's Audio file, plus all the tag info living inside that file's APE tags. that's it, that's the vibe. ✨


πŸŽ€ CONSTRUCTORS πŸŽ€

  • new( $filename ) β€” opens up a Monkey's Audio file, makes sure it actually exists and is genuinely a Monkey's Audio stream, and then loads the information and comment fields. she does her vibe check first, no worries. 🫢

πŸ‘‘ INSTANCE METHODS πŸ‘‘

  • info( [$key] ) β€” returns a hashref with all the info about the Monkey's Audio file, straight from the file's information header.

that optional key param? it lets you pull one single value out of the info hash instead of the whole thing. and if that key doesn't exist, you get back undef. yeah. undef. 😭

  • tags( [$key] ) β€” returns a hashref with the tag keys and values from the file's APE tags.

same deal with the optional key β€” grab one value from the tag hash, and if the key isn't there you get undef. periodt. πŸ’…


πŸ’€ NOTE πŸ’€

heads up bestie: this module is now a wrapper around Audio::Scan. so like, that's where the actual work happens. iykyk. πŸ™ˆ

🌈 SEE ALSO 🌈

<http://www.monkeysaudio.com/>, Audio::Scan

go check them out fr fr. ⭐


πŸ’œ AUTHOR πŸ’œ

Dan Sully, <daniel@cpan.org>

Kevin Deane-Freeman, <kevindf at shaw dot ca>, based on other work by Erik Reckase, <cerebusjam at hotmail dot com>, and Dan Sully, <daniel@cpan.org>


Copyright (c) 2004, Kevin Deane-Freeman. Copyright (c) 2005-2007, Dan Sully & Slim Devices. Copyright (c) 2007-2010, Dan Sully.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.


and that's the whole page, babe 🧚 β€” this little beauty is running under perl v5.36.0, dated 2022-11-19, and it's the Audio::APE(3pm) era. slay, stay hydrated, and go read your tags. πŸ’–βœ¨

πŸ“¦ where this page comes from