Hello Regor,
I noticed 3 things with the customizable button. It does not prevent the program from working, but I point it out.
- A message when I do Control + Click on the button
- A crash with right click and the cursor moving
- A default setting that doesn't seem to work
I checked with a new portable installation, SMP 1.6.1, Search-by-Distance 2.2.1 (alone, without the other tools. It also did it with previous versions), with _switchPaths (but it also does it without _switchPaths on my installation).
1. Button with buttons_search_bydistance_customizable.js , without any settings. Ctrl + click on the button, the menu is displayed but there is also a message:
"Forced theme json file (by recipe) not found: c:\\Users\\xxx\\AppData\\Roaming\\foobar2000\\scripts\\SMP\\xxx-scripts\\presets\\Search by\\themes\\test.json"
2. The panel crashes when I right click on the button and move the mouse while the right mouse button is pressed. Error: Spider Monkey Panel v1.6.1 (Search by Distance Customizable Button: Search by Distance Customizable Button by xxx)
toBtn is undefined
File: buttons_xxx.js
Line: 385, Column: 18
Stack trace:
on_mouse_move@buttons_xxx.js:385:18
3. One of the default settings for the Graph method doesn't seem to work, or I didn't understand. By default, without settings, the Weight and Dyngenre methods work, but the Graph method does not give any results.
It's because of the setting "sbd0.Exclude any track with graph distance greater than (only GRAPH method):": "music_graph_descriptors.intra_supergenre". When I change this setting to 75, 100 or 150 it works.
I got stuck on this for a while. I was looking in the panel properties without knowing that the correct value was something like 75, 100 or 150, and I had seen that a recipe with Graph method worked so I used that. And I saw in the Ctrl + Shift menu the setting and the [intra_supergenre --> 100] indication.
Some typing errors:
- in README.md at the end in ## Installation, line 106, there is a letter missing in both github links, the P of SMP .
- in helpers / readme / search_bydistance.txt, line 300 : AcousticBraiz (one N is missing)
In this readme, maybe indicate in the passage about AcousticBrainz that it will close? For new users.
Apart from that, thanks for your work. I was looking for an alternative to the Soft Playlists component with Last.fm recommendations for a while. Your script doesn't only give the most famous songs. I discover my music differently. It can give me two songs that sound similar, but in different genres that I wouldn't have thought to put together. You made me discover AcousticBrainz and sign up for MusicBrainz to add songs (I'll probably do it less now that you can't add anything to AcousticBrainz). But it takes time to tag a whole library.
I don't know anything about it, but I've seen essentia.js . It can calculate mood and genre (even in in real time, I find it impressive).