Page 1 of 1

Statistics about music collection

Posted: Sat Jul 19, 2025 6:39 am
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...

Re: Statistics about music collection

Posted: Sat Jul 19, 2025 12:50 pm
by Lowlander
Statistics provides some of this.

Re: Statistics about music collection

Posted: Sat Jul 19, 2025 2:24 pm
by BelMonk
Sorry. Didn't realize there was something like that already. Thank you

Re: Statistics about music collection

Posted: Tue Jul 22, 2025 2:28 am
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.

Re: Statistics about music collection

Posted: Sun Sep 07, 2025 7:50 am
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

Re: Statistics about music collection

Posted: Fri Oct 10, 2025 1:48 pm
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

Re: Statistics about music collection

Posted: Thu Oct 23, 2025 7:16 pm
by christopher.wanko
I suppose... I don't really understand how MM was developed but for sure I know how to solve this problem.

Re: Statistics about music collection

Posted: Wed Oct 29, 2025 9:00 am
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 ;-)