GenrePicker Addon - Documentation
Posted: Wed Mar 18, 2020 4:00 pm
Hello,
I was able to rewrite the script for QuickMoods and created a GenrePicker extension. It shows 25 Genres as default and allows for multiple selections, just like QuickMoods.
This addon, like QuickMoods, is meant to be used while listening to music. If you find you don't have a genre for something, or notice the genre is not exactly right for the song you can easily pick a genre. I found this useful when listening to an album. Not all songs on an album have to be the same genre - right? Sometimes an artist experiments or over time their style changes. Anywho....
I'm creating this post in the hopes that people will benefit from the research into this addon.
In short genres are a mess.
There are 191 id3 v1 official genres.
https://eyed3.readthedocs.io/en/latest/ ... ml#example
I found this very interesting blog post from 2009:
https://tippopotamus.blogspot.com/2009/ ... is-it.html
Had to use the way back machine to get the original 25 genres referenced at the end of the post.
It's a good start. I'm beginning to think the fewer genres the better.
With that in mind I used tippopotamus's list and made some personal adjustments and incorporated them into this addon.
This addon was updated from the QuickMoods addon by molina. I simply modified it for genres and added the resorting feature. Would like to expand on it in the future but if others have ideas please chime in.
CURRENT FUNCTIONALITY
Displays a panel inside the MediaMonkey window showing genres. (Original functionality by molina for QuickMoods.)
Has a configuration window that allows the user to add/remove genres. (Original functionality by molina for QuickMoods.)
If a genre is tagged in a song and it matches a genre in the list, that genre checkbox will be checked. (Original functionality by molina for QuickMoods.)
The genre list will resort itself alphabetically when adding/removing genres. (New by SM)
THINGS TO FIX..... IF YOU CAN HELP PLEASE DO.
While the addon works there are a couple things I was hoping to fix, with some guidance.
[FIXED IN v1.2] --The list of genres in the panel do not show the ampersand unless I double "&&" them in the vbs script. Then you'll get the correct view. But when selecting them you get R&&B instead of R&B in your genre list. I don't know how to fix this. I thought of creating a function that checks and search/replaces but I'm not that big a vbs coder and it quickly got "messy" and I didn't want to break what was already working.
So if anyone knows how to have the display show correctly and also insert correcting in the mp3 tags that'd be great.
I'll think on it but no promises. For now the display panel just doesn't show them. "RB" or "Alternative _Punk" for example.
[FIXED IN v1.2]
--Need to have all non-alphanumeric characters stripped from the genre name other than the ampersand upon genre creation via the Genre Configuration form.
-- I don't think the uninstall is working correctly. At the moment the genre list stays as it original was. A complete restart of the computer is needed to flush the genrelist between script updates of coding and sometimes that doesn't even work.
--Auto sort the genre mp3 tags so they are listed in alphabetical order when saving them out. Currently the system simply appends the newly selected genre to the end of the genre list for the song. It would be nice so that they are in alphabetical order. (Even though there is no logical reason the alphabet is ordered this way, it's just something we've all agreed on. 8^)
THINGS THAT WOULD BE COOL TO HAVE IN THIS ADDON
[FIXED IN v1.2] --Fix the ampersand issue.
--Allow users to save out their genre lists when they add more genres to the default list. This way a user could simply re-import the list when deleting/updating the script.
--Allow for sub-genres. Will look into using a [+] sign after a genre. If that is shown then there are sub-genres for that "root" genre. Clicking it will simply expand the list to show the sub-genres. Sounds easy enough, right? 8^)
--Have a "Remove All Genres" checkbox in the panel. This will remove all current genres from the playing song.
Well that's it. Be well.
-Sterling
I was able to rewrite the script for QuickMoods and created a GenrePicker extension. It shows 25 Genres as default and allows for multiple selections, just like QuickMoods.
This addon, like QuickMoods, is meant to be used while listening to music. If you find you don't have a genre for something, or notice the genre is not exactly right for the song you can easily pick a genre. I found this useful when listening to an album. Not all songs on an album have to be the same genre - right? Sometimes an artist experiments or over time their style changes. Anywho....
I'm creating this post in the hopes that people will benefit from the research into this addon.
In short genres are a mess.
There are 191 id3 v1 official genres.
https://eyed3.readthedocs.io/en/latest/ ... ml#example
I found this very interesting blog post from 2009:
https://tippopotamus.blogspot.com/2009/ ... is-it.html
Had to use the way back machine to get the original 25 genres referenced at the end of the post.
It's a good start. I'm beginning to think the fewer genres the better.
With that in mind I used tippopotamus's list and made some personal adjustments and incorporated them into this addon.
This addon was updated from the QuickMoods addon by molina. I simply modified it for genres and added the resorting feature. Would like to expand on it in the future but if others have ideas please chime in.
CURRENT FUNCTIONALITY
Displays a panel inside the MediaMonkey window showing genres. (Original functionality by molina for QuickMoods.)
Has a configuration window that allows the user to add/remove genres. (Original functionality by molina for QuickMoods.)
If a genre is tagged in a song and it matches a genre in the list, that genre checkbox will be checked. (Original functionality by molina for QuickMoods.)
The genre list will resort itself alphabetically when adding/removing genres. (New by SM)
THINGS TO FIX..... IF YOU CAN HELP PLEASE DO.
While the addon works there are a couple things I was hoping to fix, with some guidance.
[FIXED IN v1.2] --The list of genres in the panel do not show the ampersand unless I double "&&" them in the vbs script. Then you'll get the correct view. But when selecting them you get R&&B instead of R&B in your genre list. I don't know how to fix this. I thought of creating a function that checks and search/replaces but I'm not that big a vbs coder and it quickly got "messy" and I didn't want to break what was already working.
So if anyone knows how to have the display show correctly and also insert correcting in the mp3 tags that'd be great.
I'll think on it but no promises. For now the display panel just doesn't show them. "RB" or "Alternative _Punk" for example.
[FIXED IN v1.2]
--Need to have all non-alphanumeric characters stripped from the genre name other than the ampersand upon genre creation via the Genre Configuration form.
-- I don't think the uninstall is working correctly. At the moment the genre list stays as it original was. A complete restart of the computer is needed to flush the genrelist between script updates of coding and sometimes that doesn't even work.
--Auto sort the genre mp3 tags so they are listed in alphabetical order when saving them out. Currently the system simply appends the newly selected genre to the end of the genre list for the song. It would be nice so that they are in alphabetical order. (Even though there is no logical reason the alphabet is ordered this way, it's just something we've all agreed on. 8^)
THINGS THAT WOULD BE COOL TO HAVE IN THIS ADDON
[FIXED IN v1.2] --Fix the ampersand issue.
--Allow users to save out their genre lists when they add more genres to the default list. This way a user could simply re-import the list when deleting/updating the script.
--Allow for sub-genres. Will look into using a [+] sign after a genre. If that is shown then there are sub-genres for that "root" genre. Clicking it will simply expand the list to show the sub-genres. Sounds easy enough, right? 8^)
--Have a "Remove All Genres" checkbox in the panel. This will remove all current genres from the playing song.
Well that's it. Be well.
-Sterling