Statistics about music collection

Help improve MediaMonkey 5 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

BelMonk
Posts: 2
Joined: Sat Jul 19, 2025 5:20 am

Statistics about music collection

Post by BelMonk »

I have been a Media Monkey user for many years and I love it. More specifically I like being able to filter my collection according to different criteria and combine those criteria at will to listen to music in my collection according to my mood (for instance Year between 2000 and 2010, Genre = Electro house, Rating > 4 stars). Nice.
I have a huge music collection, close to 50K songs and I'm interested in having some statistics about it. As a software programmer in my spare time, I was about to write a quick program myself but I thought it might be a feature that could be interesting to the community. How many songs are in my collection, how many songs do I have for each genre, how may songs do I have per year or per decades, how many songs do I have with more than 4 star rating... One could choose the criteria he/she is interesting in and get statitics. I know we can get this info with the filters but there's no overview. For instance, if I have 100 different music genre I have to apply the filter 100 times to get the figures.. Just an idea...
Lowlander
Posts: 59045
Joined: Sat Sep 06, 2003 5:53 pm

Re: Statistics about music collection

Post by Lowlander »

Statistics provides some of this.
BelMonk
Posts: 2
Joined: Sat Jul 19, 2025 5:20 am

Re: Statistics about music collection

Post by BelMonk »

Sorry. Didn't realize there was something like that already. Thank you
solvane16
Posts: 1
Joined: Tue Jul 15, 2025 1:15 pm

Re: Statistics about music collection

Post by solvane16 »

That's a great idea! A built-in stats feature would be super helpful , especially for large libraries. Seeing song counts by genre, year, and rating all in one place would save a lot of time.
christopher.wanko
Posts: 17
Joined: Fri Jan 27, 2012 8:53 am

Re: Statistics about music collection

Post by christopher.wanko »

BelMonk wrote: Sat Jul 19, 2025 6:39 amAs a software programmer in my spare time, I was about to write a quick program myself but I thought it might be a feature that could be interesting to the community.
You're specifying a report, which already exists for a basic case. You can extend it and, in your spare time, turn to SQL as one thing you might want to pursue in your spare time, since that will get you all of the answers you want.

If you're thinking "feature" then you're thinking a separate panel or view that uses saved queries to show stats. That seems eminently possible, but consider that on every event, those stats need to be updated -- or updated by some event listener. On every launch of MM those queries need to run... and if you make a "cool" enough dashboard then that will means lots of queries... and a delayed display.

Context: I am a sw dev for a living, and I work with an enterprise product that does exactly this.

-C
rusty
Posts: 9008
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: Statistics about music collection

Post by rusty »

christopher.wanko wrote: Sun Sep 07, 2025 7:50 am Context: I am a sw dev for a living, and I work with an enterprise product that does exactly this.
Is that an offer? :P
christopher.wanko
Posts: 17
Joined: Fri Jan 27, 2012 8:53 am

Re: Statistics about music collection

Post by christopher.wanko »

I suppose... I don't really understand how MM was developed but for sure I know how to solve this problem.
Ludek
Posts: 5107
Joined: Fri Mar 09, 2007 9:00 am

Re: Statistics about music collection

Post by Ludek »

The built-in statistics report is already written as separate addon, see [MediaMonkey install folder]/scripts/statistics/ where you can adjust the current code and publish it as another addon ;-)
Post Reply