Audio::Musepack(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::Musepack ✨

okay so bestie, welcome to Audio::Musepack β€” the Perl module (it's a 3pm page, you know the vibe) that gives you a whole object-oriented glow-up for reading Musepack file info and APE tag fields πŸ’–

🌸 NAME 🌸

Audio::Musepack β€” an object-oriented interface to Musepack file information and APE tag fields. that's it, that's the whole job, and it ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

use Audio::Musepack;
my $mpc = Audio::Musepack->new("song.mpc");

my $mpcInfo = $mpc->info();

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

my $mpcTags = $mpc->tags();

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

literally that's the whole main character arc. make an object, ask it for info, ask it for tags, loop, slay ✨


πŸŽ€ DESCRIPTION πŸŽ€

so this module hands you back a hash stuffed with the basic info about a Musepack file, plus all the tag info chilling in that Musepack file's APE tags. no cap, that's what it does 🫢


πŸ’œ CONSTRUCTORS πŸ’œ

  • new( $filename ) β€” opens up a Musepack file, makes sure it actually exists, makes sure it's genuinely a Musepack stream (vibe check βœ…), and then loads the information and comment fields. no fake ones allowed, bestie.

⭐ INSTANCE METHODS ⭐

  • info( [$key] ) β€” returns a hashref full of info about the Musepack file, straight from the file's information header. 🧚 the optional parameter, key, lets you grab just one single value out of that info hash. and if the key isn't found? it returns undef. sad but honest 😭
  • tags( [$key] ) β€” returns a hashref with the tag keys and values of the Musepack file, pulled from the file's APE tags. πŸ“ the optional parameter, key, lets you pull out just one single value from the tag hash. key not found? undef again. that's the rule πŸ‘‘

πŸ’€ NOTE πŸ’€

heads up bestie: this module is now a wrapper around Audio::Scan. the original thing is not the thing anymore. it's giving "rebranded but still iconic."

🌈 SEE ALSO 🌈

<http://www.personal.uni-jena.de/~pfk/mpp/index2.html>, Audio::Scan


πŸ‘‘ AUTHOR πŸ‘‘

Dan Sully, <daniel@cpan.org>

Original Author: Erik Reckase, <cerebusjam at hotmail dot com>

two legends fr fr 🫢


Copyright (c) 2003-2006, Erik Reckase. Copyright (c) 2003-2007, Dan Sully & Slim Devices. Copyright (c) 2003-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. 🌸 (yes the license said it, so I said it too, we keep every detail around here periodt)


and that's the whole page, bestie!! this one's from perl v5.36.0, dated 2022-11-19, and it lives under Audio::Musepack(3pm). go forth and read those Musepack files, you absolute icon πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from