Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread mark wollschlager


cpd73 wrote: 
> Your ffmpeg is too old. Either update, or re-rebuild bliss-analyser from
> git.
Thanks. At the risk of abusing you good nature, would re-rebuilding
bliss-analyzer allow me to use the older ffmpeg utils?
Or, could I run the bliss-analyze from another system with the current
version of ffmpeg and then upload the result to my LMS server system?
I really want to try this, but not rebuild and reconfigure my server and
players.



2 Duets controllers, 1 X Boom, 1 X Radio
1 X Receiver + Edifier S1000DB
1 X Receiver + Yamaha RX-A2000, Polk M70
1 X Receiver + Boston MicroSystem CD
Raspberry Pi 3 B+ HiFi Berry Amp2 7" touchscreen PiCorePlayer 7.0
Audioengine A5 ( passive mode )
Raspberry Pi 2 B, HiFiBerry Dac+ & Max2play
SqueezeAmp 3 Monsoon MM-700 flat panels + Infinity sub
HTC 10 w/ Squeeze Ctrl
ReadyNAS 516 LMS 8.2.1

mark wollschlager's Profile: 
http://forums.slimdevices.com/member.php?userid=22302
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread cpd73


mark wollschlager wrote: 
> This project looks very promising to me, so I started following along.
> Got the plugins, got the bliss-analyzer for linux, changed the
> config.ini.

Your ffmpeg is too old. Either update, or re-rebuild bliss-analyser from
git.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread mark wollschlager


This project looks very promising to me, so I started following along.
Got the plugins, got the bliss-analyzer for linux, changed the
config.ini.
installed ffmpeg.
But it looks like I might be stuck by my OS situation.
When I run the bliss-analyze analyze I get this:

Code:

root@Awesome516:~# ./bliss-analyser analyze
  ./bliss-analyser: error while loading shared libraries: libavutil.so.56: 
cannot open shared object file: No such file or directory


Decided to check the ffmpeg version:

Code:

root@Awesome516:~# ffmpeg -version
  ffmpeg version 3.4.4 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10+deb8u1)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong 
-Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc=cc 
--libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu 
--enable-shared --disable-stripping --enable-small --disable-amd3dnow 
--disable-cuvid --disable-cuda --disable-bsfs --disable-ffserver 
--enable-avresample --disable-devices --disable-protocols 
--enable-protocol=file --enable-protocol=pipe --disable-parsers 
--enable-parser=aac --enable-parser=ac3 --enable-parser=dvbsub 
--enable-parser=dvdsub --enable-parser=flac --enable-parser=h261 
--enable-parser=h263 --enable-parser=h264 --enable-parser=mjpeg 
--enable-parser=mlp --enable-parser=mpeg4video --enable-parser=mpegaudio 
--enable-parser=mpegvideo --enable-parser=vc1 --enable-parser=vorbis 
--enable-parser=vp3 --enable-parser=vp8 --disable-demuxers --enable-demuxer=aac 
--enable-demuxer=ac3 --enable-demuxer=aiff --enable-demuxer=asf 
--enable-demuxer=avi --enable-
 demuxer=dts --enable-demuxer=dv --enable-demuxer=eac3 --enable-demuxer=flac 
--enable-demuxer=flv --enable-demuxer=h261 --enable-demuxer=h263 
--enable-demuxer=h264 --enable-demuxer=matroska --enable-demuxer=mjpeg 
--enable-demuxer=mov --enable-demuxer=m4v --enable-demuxer=mp3 
--enable-demuxer=mpegps --enable-demuxer=mpegts --enable-demuxer=mpegtsraw 
--enable-demuxer=mpegvideo --enable-demuxer=ogg --enable-demuxer=rtsp 
--enable-demuxer=vc1 --enable-demuxer=wav --disable-decoders 
--enable-decoder=aac --enable-decoder=alac --enable-decoder=eac3 
--enable-decoder=flac --enable-decoder=flv --enable-decoder=h264 
--enable-decoder=mp3 --enable-decoder=mpeg2video --enable-decoder=mpeg4 
--enable-decoder=pcm_s16be --enable-decoder=pcm_s16le --enable-decoder=vorbis 
--enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 
--enable-decoder=wmav2 --disable-muxers --enable-muxer=mp3 
--enable-muxer=pcm_s16be --enable-muxer=pcm_s16le --disable-encoders 
--enable-libmp3lame --en
 able-encoder=libmp3lame --enable-encoder=pcm_s16be --enable-!
 encoder=pcm_s16le --disable-filters --enable-filter=aresample
  libavutil  55. 78.100 / 55. 78.100
  libavcodec 57.107.100 / 57.107.100
  libavformat57. 83.100 / 57. 83.100
  libavdevice57. 10.100 / 57. 10.100
  libavfilter 6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale  4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  root@Awesome516:~#



Any suggestions appreciated. I'm really not to keen on giving up this
server platform yet



2 Duets controllers, 1 X Boom, 1 X Radio
1 X Receiver + Edifier S1000DB
1 X Receiver + Yamaha RX-A2000, Polk M70
1 X Receiver + Boston MicroSystem CD
Raspberry Pi 3 B+ HiFi Berry Amp2 7" touchscreen PiCorePlayer 7.0
Audioengine A5 ( passive mode )
Raspberry Pi 2 B, HiFiBerry Dac+ & Max2play
SqueezeAmp 3 Monsoon MM-700 flat panels + Infinity sub
HTC 10 w/ Squeeze Ctrl
ReadyNAS 516 LMS 8.2.1

mark wollschlager's Profile: 
http://forums.slimdevices.com/member.php?userid=22302
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread chill


cpd73 wrote: 
> As an aside, what is the benefit of FLAC+CUE as opposed to just
> splitting the FLAC into single FLAC tracks? FLAC handles gapless, no?
> Just curious...

Probably no benefit.  It's how I started ripping my library years ago,
and it works just fine in LMS so I've continued the same way.  And I can
easily convert from this format to any other with a few simple commands.
I think my motivation was that I could faithfully reproduce the
original CD on a CD-R, but that's another pastime that's disappeared
into history. :)

EDIT:  Ooh - I thought of a benefit!  I can edit my tags with a text
editor, rather than a dedicated tag editor.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread cpd73


chill wrote: 
> Wait, sorry - in my lossy library, FLAC+CUE albums are converted to
> (single)OGG+CUE equivalents, so I believe MusicSimilarity will still
> want to split them into individual MP3 files for the analysis.  So no
> benefit in using the lossy library for the analysis after all.

As an aside, what is the benefit of FLAC+CUE as opposed to just
splitting the FLAC into single FLAC tracks? FLAC handles gapless, no?
Just curious...



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread cpd73


chill wrote: 
> Inspired by the 'Bliss DSTM announcement'
> (https://forums.slimdevices.com/showthread.php?116068-Announce-Bliss-DSTM-mixer&p=1049586&viewfull=1#post1049586),
> I want to give MusicSimilarity a go with my library of mostly FLAC+CUE
> albums.
> 
> I do maintain a 'lossy' form of my library which could be used for the
> analysis, to save what must be a time consuming analysis step of
> splitting the album into MP3 files.  In my lossy library, every FLAC+CUE
> album is converted to individual OGG files, and any MP3 or OGG original
> files are just copied over.  The folder structure is a copy of my main
> library.  The tags in the OGG files are taken from the CUE files, so
> should match what's in my main LMS library.  Does MusicSimilarity handle
> OGG files, and if I use this lossy library for the MusicSimilarity
> Bliss-only analysis, will the MusicSimilarity plugin find the
> corresponding tracks from the CUE files in my LMS library?

Yess OGG files are handled. *But* you wont be able to use your names -
as the code matches on filenames, not tags. Files in MusicSimilarity's
DB will be named "source.CUE_TRACK.-.mp3" e.g. If your
source file was "Artist/Album/Blah.flac" then the fist tack would be
something like "Artist/Album/Blah.flac.CUE_TRACK.0-180.22.mp3" The
start/stop times are taken from LMS's Library.db file.

In the play queue the track's entry will be something like
"file:///my/music/Artist/Album/Blah.flac#.0-180.22" This URL is passed
to MusicSimilarity, which strips of the "file:///my/music/" prefix then
converts the "#.0-180.22" part to locate the track in its DB.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread chill


chill wrote: 
> Inspired by the 'Bliss DSTM announcement'
> (https://forums.slimdevices.com/showthread.php?116068-Announce-Bliss-DSTM-mixer&p=1049586&viewfull=1#post1049586),
> I want to give MusicSimilarity a go with my library of mostly FLAC+CUE
> albums.
> 
> I do maintain a 'lossy' form of my library which could be used for the
> analysis, to save what must be a time consuming analysis step of
> splitting the album into MP3 files.  In my lossy library, every FLAC+CUE
> album is converted to individual OGG files, and any MP3 or OGG original
> files are just copied over.  The folder structure is a copy of my main
> library.  The tags in the OGG files are taken from the CUE files, so
> should match what's in my main LMS library.  Does MusicSimilarity handle
> OGG files, and if I use this lossy library for the MusicSimilarity
> Bliss-only analysis, will the MusicSimilarity plugin find the
> corresponding tracks from the CUE files in my LMS library?

Wait, sorry - in my lossy library, FLAC+CUE albums are converted to
(single)OGG+CUE equivalents, so I believe MusicSimilarity will still
want to split them into individual MP3 files for the analysis.  So no
benefit in using the lossy library for the analysis after all.



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-03-05 Thread chill


Inspired by the 'Bliss DSTM announcement'
(https://forums.slimdevices.com/showthread.php?116068-Announce-Bliss-DSTM-mixer&p=1049586&viewfull=1#post1049586),
I want to give MusicSimilarity a go with my library of mostly FLAC+CUE
albums.

I do maintain a 'lossy' form of my library which could be used for the
analysis, to save what must be a time consuming analysis step of
splitting the album into MP3 files.  In my lossy library, every FLAC+CUE
album is converted to individual OGG files, and any MP3 or OGG original
files are just copied over.  The folder structure is a copy of my main
library.  The tags in the OGG files are taken from the CUE files, so
should match what's in my main LMS library.  Does MusicSimilarity handle
OGG files, and if I use this lossy library for the MusicSimilarity
Bliss-only analysis, will the MusicSimilarity plugin find the
corresponding tracks from the CUE files in my LMS library?



chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-24 Thread mruddo


cpd73 wrote: 
> Yeah, as stated before I'm writing a new analyser and mixer for Bliss in
> Rust. The code is done, I just need to test some more. I also, thanks to
> some ideas I borrowed from Spotty, have it compiling for Linux, macOS,
> and Windows. I'm creating a new LMS plugin that starts the mixer when
> required - so no systemd service required. Should make the whole process
> easier to install and run. I've written a python script to convert the
> bliss analysis in music-similarity DB to the format used by this new
> plugin, so no need to re-analyse.

Thanks for the update - sounds great. Sorry, but I've not yet had time
to revisit my attempts to get the Bliss analysis working within WSL, and
I'm still running with Essentia/Musly... but from the sounds of your
post, I need not worry too much about prioritising that.

Looking forward to giving the latest version a run when it's available!
:)



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-24 Thread cpd73


bakker_be wrote: 
> I've been playing with this for some time now, and I agree that Bliss is
> probably the way to go with this. It seems to be more robust and faster
> in scanning and the mixes are entirely satisfactory IMO when compared to
> Spicefly SugarCube.

Yeah, as stated before I'm writing a new analyser and mixer for Bliss in
Rust. The code is done, I just need to test some more. I also, thanks to
some ideas I borrowed from Spotty, have it compiling for Linux, macOS,
and Windows. I'm creating a new LMS plugin that starts the mixer when
required - so no systemd service required. Should make the whole process
easier to install and run. I've written a python script to convert the
bliss analysis in music-similarity DB to the format used by this new
plugin, so no need to re-analyse.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-24 Thread bakker_be


I've been playing with this for some time now, and I agree that Bliss is
probably the way to go with this. It seems to be more robust and faster
in scanning and the mixes are entirely satisfactory IMO when compared to
Spicefly SugarCube.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-16 Thread bakker_be


cpd73 wrote: 
> Ah, I'm guessing you have not analysed your tracks with Musly. The
> original idea was that Bliss would replace Musly - so, if bliss-analyse
> is found then Musly defaults to disabled. You need to edit config.json
> and add -{"musly":{"enabled":true}}- and then analyse again - this
> -should- only run the Musly analysis, as it -should- detect that the
> files have already been analysed with the others. ...or just don't use
> Musly.
> 
> To be honest, as stated before, I'm not convinced mixing the analysis
> types is a good idea - I added the code just to experiment.
OK, that does indeed seem to explain it. I've just added that parameter
to config.json and it indeed now tells me that it's using Musly as
analyser as well. I admit I didn't see that in the code/docs while
trying to troubleshoot this thing.
One advantage I already have from this: it's identified around 10K track
in my collection which unexplicably had lost all tags. Solved now. If I
hadn't wanted to play with the simalgo I never would've seen this :p



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-15 Thread cpd73


bakker_be wrote: 
> 
> I seem to recall that it used to create a music-similarity.jukebox file.
> This file doesn't exist in my installation and doesn't seem to get
> created at restart either ...

Ah, I'm guessing you have not analysed your tracks with Musly. The
original idea was that Bliss would replace Musly - so, if bliss-analyse
is found then Musly defaults to disabled. You need to edit config.json
and add -{"musly":{"enabled":true}}- and then analyse again - this
-should- only run the Musly analysis, as it -should- detect that the
files have already been analysed with the others. ...or just don't use
Musly.

To be honest, as stated before, I'm not convinced mixing the analysis
types is a good idea - I added the code just to experiment.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-15 Thread bakker_be


cpd73 wrote: 
> I've updated the code to list the number of tracks loaded for Essentia,
> Bliss, Musly. Perhaps this will allow you to debug the issue?

I just did a git pull and set the simalgo. It seems to fail on Musly. If
I set the Musly ratio to 0 it starts flawlessly. DEBUG output:

Code:


  bart@p700:~/music-similarity$ ./music-similarity.py -l DEBUG
  2022-02-16 08:32:36 D (Defaults) musly.lib set to linux/x86-64/libmusly.so
  2022-02-16 08:32:36 D Init DB
  2022-02-16 08:32:36 D Start server
  2022-02-16 08:32:36 D Loading essentia attribs from DB
  2022-02-16 08:32:38 D 121511 track(s) loaded from Essentia
  2022-02-16 08:32:38 D Loading bliss from DB
  2022-02-16 08:32:39 D 121511 track(s) loaded from Bliss
  2022-02-16 08:32:39 D Init Musly
  2022-02-16 08:32:39 D Using: 
/home/bart/music-similarity/linux/x86-64/libmusly.so (b'libav')
  2022-02-16 08:32:39 D Musly init done
  Traceback (most recent call last):
  File "./music-similarity.py", line 43, in 
  app.start_app(args, cfg, jukebox_file)
  File "/home/bart/music-similarity/lib/app.py", line 930, in start_app
  similarity_app.init(args, config, jukebox_path)
  File "/home/bart/music-similarity/lib/app.py", line 77, in init
  _LOGGER.debug('%d track(s) loaded from Musly' % len(self.paths))
  TypeError: object of type 'NoneType' has no len()
  


I seem to recall that it used to create a music-similarity.jukebox file.
This file doesn't exist in my installation and doesn't seem to get
created at restart either ...



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-15 Thread cpd73


bakker_be wrote: 
> The strange thing is that each individual setting works, but as soon as
> I want to use a mix it freaks out :p

I've updated the code to list the number of tracks loaded for Essentia,
Bliss, Musly. Perhaps this will allow you to debug the issue?



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-14 Thread bakker_be


cpd73 wrote: 
> Not that it helps much, but its working for me. I've tried setting
> simalgo to mixed and using bliss+musly, and also bliss+essentia+musly -
> both worked. But, the 'mixing' of bliss/essentia/musly was only done for
> experimentation - not sure how useful it is. My original idea was that
> Musly (or Bliss) would be used to get 'similar' tracks, and then use
> Essentia for further filtering. But, I'm heavily leaning towards just
> Bliss - to the extent that I have written an anlyser (to analyse all
> tracks) and mixer in Rust (my first Rust apps), and an LMS plugin to
> call the mixer.
> 
> 
> 
> My guess would be that there is an issue here.
The strange thing is that each individual setting works, but as soon as
I want to use a mix it freaks out :p



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-14 Thread cpd73


bakker_be wrote: 
> Simalgo doesn't seem to want to work however :(

Not that it helps much, but its working for me. I've tried setting
simalgo to mixed and using bliss+musly, and also bliss+essentia+musly -
both worked. But, the 'mixing' of bliss/essentia/musly was only done for
experimentation - not sure how useful it is. My original idea was that
Musly (or Bliss) would be used to get 'similar' tracks, and then use
Essentia for further filtering. But, I'm heavily leaning towards just
Bliss - to the extent that I have written an anlyser (to analyse all
tracks) and mixer in Rust (my first Rust apps), and an LMS plugin to
call the mixer.

bakker_be wrote: 
> > 
Code:

  >   > 
  > 2022-02-14 09:45:57 E DB not initialised, have you analysed all tracks?
  > 

> > 

My guess would be that there is an issue here.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-14 Thread bakker_be

bakker_be wrote: 
> Has anything been changed in either the Essentia Analyser or the
> write-to-DB routine? I've restarted the full scan several times now and
> it always hangs at the end with the exact same message on the exact same
> songs by Аркона. Looking in the DB
> the actual last written song is "Étienne Daho/Best of
> Singles/05-Soudain.flac" while all tracks are present in the cache
> directory.
> > 
Code:

  >   > 
  > 2022-02-12 13:13:04 D [122219/122297  99%] Étienne Daho/Best of 
Singles/01-Idéal.flac
  > 2022-02-12 13:13:04 D [10/122297  99%] Étienne Daho/Best of 
Singles/02-Le Premier Jour (du reste de ta vie).flac
  > 2022-02-12 13:13:04 D [11/122297  99%] Étienne Daho/Best of 
Singles/03-Sur mon cou.flac
  > 2022-02-12 13:13:04 D [12/122297  99%] Étienne Daho/Best of 
Singles/04-Au commencement.flac
  > 2022-02-12 13:13:04 D [13/122297  99%] Étienne Daho/Best of 
Singles/05-Soudain.flac
  > 2022-02-12 13:13:04 D [14/122297  99%] Étienne Daho/Best of 
Singles/06-Jungle pulse.flac
  > 2022-02-12 13:13:04 D [15/122297  99%] Étienne Daho/Best of 
Singles/07-Mon manège à moi.flac
  > 2022-02-12 13:13:05 D [16/122297  99%] Étienne Daho/Best of 
Singles/08-Comme un igloo.flac
  > 2022-02-12 13:13:05 D [17/122297  99%] Étienne Daho/Best of 
Singles/09-Les Voyages immobiles.flac
  > 2022-02-12 13:13:05 D [18/122297  99%] Étienne Daho/Best of 
Singles/10-Des attractions désastre.flac
  > 2022-02-12 13:13:05 D [19/122297  99%] Étienne Daho/Best of 
Singles/11-Saudade.flac
  > 2022-02-12 13:13:05 D [122230/122297  99%] Étienne Daho/Best of 
Singles/12-Un homme à la mer.flac
  > 2022-02-12 13:13:05 D [122231/122297  99%] Étienne Daho/Best of 
Singles/13-Des heures hindoues.flac
  > 2022-02-12 13:13:05 D [122232/122297  99%] Étienne Daho/Best of 
Singles/14-Bleu comme toi.flac
  > 2022-02-12 13:13:05 D [122233/122297  99%] Étienne Daho/Best of 
Singles/15-Duel au soleil.flac
  > 2022-02-12 13:13:06 D [122234/122297  99%] Étienne Daho/Best of 
Singles/16-Epaule tattoo (single remix).flac
  > 2022-02-12 13:13:06 D [122235/122297  99%] Étienne Daho/Best of 
Singles/17-Tombé pour la France.flac
  > 2022-02-12 13:13:06 D [122236/122297  99%] Étienne Daho/Best of 
Singles/18-Week end à Rome (feat. Lio).flac
  > 2022-02-12 13:13:06 D [122237/122297  99%] Étienne Daho/Best of 
Singles/19-Le Grand Sommeil.flac
  > 2022-02-12 13:13:06 D [122238/122297  99%] Étienne Daho/Best of 
Singles/20-Il ne dira pas (single edit).flac
  > 2022-02-12 13:13:06 D [122239/122297  99%] 
Аркона/Decade Of Glory/01-Az'.flac
  > 2022-02-12 13:13:06 D [122240/122297  99%] 
Аркона/Decade Of Glory/02-Arkaim.flac
  > 2022-02-12 13:13:06 D [122241/122297  99%] 
Аркона/Decade Of Glory/03-Ot Serdca K 
Nebu.flac
  > 2022-02-12 13:13:06 D [122242/122297  99%] 
Аркона/Decade Of Glory/04-Goi, Rode, 
Goi!.flac
  > 2022-02-12 13:13:07 D [122243/122297  99%] 
Аркона/Decade Of Glory/05-Leshiy.flac
  > 2022-02-12 13:13:07 D [122244/122297  99%] 
Аркона/Decade Of Glory/06-Zakliatie.flac
  > 2022-02-12 13:13:07 D [122245/122297  99%] 
Аркона/Decade Of Glory/07-Marena.flac
  > 2022-02-12 13:13:07 D [122246/122297  99%] 
Аркона/Decade Of Glory/08-Liki Bessmertnykh 
Bogov.flac
  > 2022-02-12 13:13:07 D [122247/122297  99%] 
Аркона/Decade Of Glory/09-Nevidal.flac
  > 2022-02-12 13:13:07 D [122248/122297  99%] 
Аркона/Decade Of Glory/10-Kolo Navi.flac
  > 2022-02-12 13:13:07 D [122249/122297  99%] 
Аркона/Decade Of Glory/11-Slav'sja, 
Rus'.flac
  > 2022-02-12 13:13:07 D [122250/122297  99%] 
Аркона/Decade Of Glory/12-Kupala I 
Kostroma.flac
  > 2022-02-12 13:13:07 D [122251/122297  99%] 
Аркона/Decade Of Glory/13-Odna.flac
  > 2022-02-12 13:13:07 D [122252/122297  99%] 
Аркона/Decade Of Glory/14-Sva.flac
  > 2022-02-12 13:13:07 D [122253/122297  99%] 
Аркона/Decade Of Glory/15-Kupalets.flac
  > 2022-02-12 13:13:07 D [122254/122297  99%] 
Аркона/Decade Of Glory/16-Katitsja Kolo.flac
  > 2022-02-12 13:13:08 D [122255/122297  99%] 
Аркона/Decade Of Glory/17-Kolyada.flac
  > 2022-02-12 13:13:08 D [122256/122297  99%] 
Аркона/Decade Of Glory/18-Skvoz' Tuman 
Vekov.flac
  > 2022-02-12 13:13:08 D [122257/122297  99%] 
Аркона/Decade Of Glory/19-Maslenitsa.flac
  > 2022-02-12 13:13:08 D [122258/122297  99%] 
Аркона/Decade Of Glory/20-V Tsepiakh 
Drevney Tainy.flac
  > 2022-02-12 13:13:08 D [122259/122297  99%] 
Аркона/Decade Of Glory/21-Slovo.flac
  > 2022-02-12 13:13:08 D [122260/122297  99%] 
Аркона/Decade Of Glory/22-BolNo Mne.flac
  > 2022-02-12 13:13:08 D [122261/122297  99%] 
Аркона/Decade Of Glory/23-Pamiat.flac
  > 2022-02-12 13:13:08 D [122262/122297  99%] 
Аркона/Decade Of Glory/24-Arkona.flac
  > 2022-02-12 13:13:08 D [122263/122297  99%] 
Аркона/Decade Of Glory/25-Po Syroi 
Zemle.flac
  > 2022-02-12 13:13:08 D [122264/122297  99%] 
Аркона/Decade Of Glory/26-Oj, Pechal' - 
Toska.flac
  > 2022-02-12 13:13:08 D [122265/122297  99%] 
Аркона/Decade Of Glory/27-Yarilo.flac
  > 2022-02-12 13:13:09 D

Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-14 Thread bakker_be

Has anything been changed in either the Essentia Analyser or the
write-to-DB routine? I've restarted the full scan several times now and
it always hangs at the end with the exact same message on the exact same
songs by Аркона. Looking in the DB
the actual last written song is "Étienne Daho/Best of
Singles/05-Soudain.flac" while all tracks are present in the cache
directory.

Code:


  2022-02-12 13:13:04 D [122219/122297  99%] Étienne Daho/Best of 
Singles/01-Idéal.flac
  2022-02-12 13:13:04 D [10/122297  99%] Étienne Daho/Best of Singles/02-Le 
Premier Jour (du reste de ta vie).flac
  2022-02-12 13:13:04 D [11/122297  99%] Étienne Daho/Best of 
Singles/03-Sur mon cou.flac
  2022-02-12 13:13:04 D [12/122297  99%] Étienne Daho/Best of Singles/04-Au 
commencement.flac
  2022-02-12 13:13:04 D [13/122297  99%] Étienne Daho/Best of 
Singles/05-Soudain.flac
  2022-02-12 13:13:04 D [14/122297  99%] Étienne Daho/Best of 
Singles/06-Jungle pulse.flac
  2022-02-12 13:13:04 D [15/122297  99%] Étienne Daho/Best of 
Singles/07-Mon manège à moi.flac
  2022-02-12 13:13:05 D [16/122297  99%] Étienne Daho/Best of 
Singles/08-Comme un igloo.flac
  2022-02-12 13:13:05 D [17/122297  99%] Étienne Daho/Best of 
Singles/09-Les Voyages immobiles.flac
  2022-02-12 13:13:05 D [18/122297  99%] Étienne Daho/Best of 
Singles/10-Des attractions désastre.flac
  2022-02-12 13:13:05 D [19/122297  99%] Étienne Daho/Best of 
Singles/11-Saudade.flac
  2022-02-12 13:13:05 D [122230/122297  99%] Étienne Daho/Best of Singles/12-Un 
homme à la mer.flac
  2022-02-12 13:13:05 D [122231/122297  99%] Étienne Daho/Best of 
Singles/13-Des heures hindoues.flac
  2022-02-12 13:13:05 D [122232/122297  99%] Étienne Daho/Best of 
Singles/14-Bleu comme toi.flac
  2022-02-12 13:13:05 D [122233/122297  99%] Étienne Daho/Best of 
Singles/15-Duel au soleil.flac
  2022-02-12 13:13:06 D [122234/122297  99%] Étienne Daho/Best of 
Singles/16-Epaule tattoo (single remix).flac
  2022-02-12 13:13:06 D [122235/122297  99%] Étienne Daho/Best of 
Singles/17-Tombé pour la France.flac
  2022-02-12 13:13:06 D [122236/122297  99%] Étienne Daho/Best of 
Singles/18-Week end à Rome (feat. Lio).flac
  2022-02-12 13:13:06 D [122237/122297  99%] Étienne Daho/Best of Singles/19-Le 
Grand Sommeil.flac
  2022-02-12 13:13:06 D [122238/122297  99%] Étienne Daho/Best of Singles/20-Il 
ne dira pas (single edit).flac
  2022-02-12 13:13:06 D [122239/122297  99%] 
Аркона/Decade Of Glory/01-Az'.flac
  2022-02-12 13:13:06 D [122240/122297  99%] 
Аркона/Decade Of Glory/02-Arkaim.flac
  2022-02-12 13:13:06 D [122241/122297  99%] 
Аркона/Decade Of Glory/03-Ot Serdca K 
Nebu.flac
  2022-02-12 13:13:06 D [122242/122297  99%] 
Аркона/Decade Of Glory/04-Goi, Rode, 
Goi!.flac
  2022-02-12 13:13:07 D [122243/122297  99%] 
Аркона/Decade Of Glory/05-Leshiy.flac
  2022-02-12 13:13:07 D [122244/122297  99%] 
Аркона/Decade Of Glory/06-Zakliatie.flac
  2022-02-12 13:13:07 D [122245/122297  99%] 
Аркона/Decade Of Glory/07-Marena.flac
  2022-02-12 13:13:07 D [122246/122297  99%] 
Аркона/Decade Of Glory/08-Liki Bessmertnykh 
Bogov.flac
  2022-02-12 13:13:07 D [122247/122297  99%] 
Аркона/Decade Of Glory/09-Nevidal.flac
  2022-02-12 13:13:07 D [122248/122297  99%] 
Аркона/Decade Of Glory/10-Kolo Navi.flac
  2022-02-12 13:13:07 D [122249/122297  99%] 
Аркона/Decade Of Glory/11-Slav'sja, 
Rus'.flac
  2022-02-12 13:13:07 D [122250/122297  99%] 
Аркона/Decade Of Glory/12-Kupala I 
Kostroma.flac
  2022-02-12 13:13:07 D [122251/122297  99%] 
Аркона/Decade Of Glory/13-Odna.flac
  2022-02-12 13:13:07 D [122252/122297  99%] 
Аркона/Decade Of Glory/14-Sva.flac
  2022-02-12 13:13:07 D [122253/122297  99%] 
Аркона/Decade Of Glory/15-Kupalets.flac
  2022-02-12 13:13:07 D [122254/122297  99%] 
Аркона/Decade Of Glory/16-Katitsja Kolo.flac
  2022-02-12 13:13:08 D [122255/122297  99%] 
Аркона/Decade Of Glory/17-Kolyada.flac
  2022-02-12 13:13:08 D [122256/122297  99%] 
Аркона/Decade Of Glory/18-Skvoz' Tuman 
Vekov.flac
  2022-02-12 13:13:08 D [122257/122297  99%] 
Аркона/Decade Of Glory/19-Maslenitsa.flac
  2022-02-12 13:13:08 D [122258/122297  99%] 
Аркона/Decade Of Glory/20-V Tsepiakh 
Drevney Tainy.flac
  2022-02-12 13:13:08 D [122259/122297  99%] 
Аркона/Decade Of Glory/21-Slovo.flac
  2022-02-12 13:13:08 D [122260/122297  99%] 
Аркона/Decade Of Glory/22-BolNo Mne.flac
  2022-02-12 13:13:08 D [122261/122297  99%] 
Аркона/Decade Of Glory/23-Pamiat.flac
  2022-02-12 13:13:08 D [122262/122297  99%] 
Аркона/Decade Of Glory/24-Arkona.flac
  2022-02-12 13:13:08 D [122263/122297  99%] 
Аркона/Decade Of Glory/25-Po Syroi 
Zemle.flac
  2022-02-12 13:13:08 D [122264/122297  99%] 
Аркона/Decade Of Glory/26-Oj, Pechal' - 
Toska.flac
  2022-02-12 13:13:08 D [122265/122297  99%] 
Аркона/Decade Of Glory/27-Yarilo.flac
  2022-02-12 13:13:09 D [122266/122297  99%] 
Аркона/Decade Of Glory/28-Stenka Na 
Stenku.flac
  2022-02-12 13:13:09 D [122267/122297  99%] 
Аркона/Decade Of G

Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-13 Thread bakker_be


cpd73 wrote: 
> So, you have been using just Bliss for mixes? If so, are you happy with
> them? I'm leaning more towards just using Bliss. I've even written a
> mixer in Rust with the intention of writing an lms plugin that will
> start the relevant executable for the host OS. This would make
> installation easier - just the LMS plugin required, and another Rust-exe
> to analyse all files (working on this at the moment - but never written
> Rust before!)
> 
> To me, Essentia takes a lot f time and does not add much.

Yes, I'm happy with the Bliss-mixes. They are quite similar to what I
had with MusicIP and SugarCube, with *_a_lot_* less effort in
maintenance. I haven't yet had the opportunity to play with different
simalgo settings, but it's certainly way better than e.g. the LastMix
approach to DSTM, as that is a lot too genre-bound for my eclectic
collection and repeats artists/albums way too often.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-13 Thread cpd73


mruddo wrote: 
> Maybe Ubuntu 20.04 was not the best starting point... I will revisit
> this when I have some time.

Odd, as its not that old. You could try compiling bliss-analyse yourself
- its fairly simple. See https://github.com/CDrummond/bliss-analyse



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-13 Thread mruddo


cpd73 wrote: 
> So, you have been using just Bliss for mixes? If so, are you happy with
> them? I'm leaning more towards just using Bliss. I've even written a
> mixer in Rust with the intention of writing an lms plugin that will
> start the relevant executable for the host OS. This would make
> installation easier - just the LMS plugin required, and another Rust-exe
> to analyse all files (working on this at the moment - but never written
> Rust before!)
> 
> To me, Essentia takes a lot f time and does not add much.

Thanks... That I can do, but I get the following errors now:

Code:


  mruddo@M:~/music-similarity$ 
/home/mruddo/music-similarity/linux/x86-64/bliss-analyse "~temp-library/Wolf 
Alice/Visions Of A Life/11-After The Zero Hour.flac"
  /home/mruddo/music-similarity/linux/x86-64/bliss-analyse: 
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by 
/home/mruddo/music-similarity/linux/x86-64/bliss-analyse)
  /home/mruddo/music-similarity/linux/x86-64/bliss-analyse: 
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by 
/home/mruddo/music-similarity/linux/x86-64/bliss-analyse)
  /home/mruddo/music-similarity/linux/x86-64/bliss-analyse: 
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by 
/home/mruddo/music-similarity/linux/x86-64/bliss-analyse)
  



Have been Googling ways to resolve this... not quite there yet, but did
see this suggestion...


Code:


  mruddo@M:~/music-similarity$ apt-cache policy libc6
  libc6:
  Installed: 2.31-0ubuntu9.2
  Candidate: 2.31-0ubuntu9.2
  Version table:
  *** 2.31-0ubuntu9.2 500
  500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
  100 /var/lib/dpkg/status
  2.31-0ubuntu9 500
  500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
  



So if I'm reading that correctly, it seems my libc6 libraries are a
little dated.

(-*You'll also note from the above detail that I've experimented and
renamed/moved a few things - also tried copying some flac files locally
in case there was an issue running against the path of the Windows drive
mount. It doesn't look like those were problems for me though.-)



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-13 Thread cpd73


bakker_be wrote: 
> 
> *_Correction:_* I was mistaken about the used algorithm, seems it was
> running in "default" mode ;)

So, you have been using just Bliss for mixes? If so, are you happy with
them? I'm leaning more towards just using Bliss. I've even written a
mixer in Rust with the intention of writing an lms plugin that will
start the relevant executable for the host OS. This would make
installation easier - just the LMS plugin required, and another Rust-exe
to analyse all files (working on this at the moment - but never written
Rust before!)

To me, Essentia takes a lot f time and does not add much.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-13 Thread cpd73


mruddo wrote: 
> I did wonder if for some reason the Bliss library could not be found? Or
> if the fact the log messages at the start still mention Essentia, when
> I've not installed it is the issue? (Although I did try running it with
> essentia enabled set to false in the config and that made no
> difference.)

Bliss needs ffmpeg - check you have the libraries installed. The bliss
analyser is actually an app you can run, e.g. try:


Code:


  /home/mruddo/music-similarity-master/linux/x86-64/bliss-analyse 
/path/to/a/music/file
  



Does that work?



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-13 Thread mruddo


cpd73 wrote: 
> 
> Perhaps if you could install WSL you could try using bliss instead of
> musly?

Well that was the plan today... I've installed WSL, extracted the latest
music-similarity-master files as required, and used the following
*config.json*:


Code:


  {
  "paths":{
  "db":"~/music-similarity/",
  "local":"/mnt/m/TestLibrary"
  }
  }
  



With the idea of music-similarity populating the database in the
music-similarity folder under my home path. I've done nothing with
essentia this time - so as far as I know it should be Bliss only.

But when I attempt to run the analysis I get a total failure of all
files. i.e:


Code:


  mruddo@Moet-BL1MBQ1:~/music-similarity-master$ ./music-similarity.py 
--analyse m -l DEBUG
  2022-02-13 14:34:53 D (Defaults) musly.lib set to linux/x86-64/libmusly.so
  2022-02-13 14:34:53 D (Defaults) essentia.extractor set to 
/home/mruddo/music-similarity-master/linux/x86-64/essentia_streaming_extractor_music
  2022-02-13 14:34:53 D (Defaults) essentia.highlevel set to True
  2022-02-13 14:34:53 D (Defaults) bliss.analyser set to 
/home/mruddo/music-similarity-master/linux/x86-64/bliss-analyse
  2022-02-13 14:34:53 D Init DB
  2022-02-13 14:34:53 D Analyse /mnt/m/TestLibrary/
  2022-02-13 14:34:53 D Looking for old tracks to remove
  2022-02-13 14:34:53 D Num old tracks: 0
  2022-02-13 14:34:53 I Analysers: ['Bliss']
  2022-02-13 14:34:54 D Num tracks to update: 691
  2022-02-13 14:34:54 I Have 691 files to analyze
  2022-02-13 14:34:54 D [  1/691   0%] Baby Queen/Medicine (EP)/01-Internet 
Religion.flac
  2022-02-13 14:34:54 D [  2/691   0%] Baby Queen/Medicine (EP)/02-Pretty Girl 
Lie.flac
  2022-02-13 14:34:54 D [  3/691   0%] Baby Queen/Medicine (EP)/03-Want Me.flac
  2022-02-13 14:34:54 D [  4/691   0%] Baby Queen/Medicine (EP)/04-Buzzkill.flac
  2022-02-13 14:34:54 D [  5/691   0%] Baby Queen/Medicine (EP)/05-Medicine.flac
  2022-02-13 14:34:54 D [  6/691   0%] Baby Queen/Medicine (EP)/06-Online 
Dating.flac
  2022-02-13 14:34:54 D [  7/691   1%] Baby Queen/The Yearbook/01-Baby 
Kingdom.flac
  2022-02-13 14:34:54 D [  8/691   1%] Baby Queen/The Yearbook/02-Raw 
Thoughts.flac
  2022-02-13 14:34:55 D [  9/691   1%] Baby Queen/The Yearbook/03-You Shaped 
Hole.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/Medicine 
(EP)/04-Buzzkill.flac (Bliss)
  2022-02-13 14:34:55 D [ 10/691   1%] Baby Queen/The Yearbook/04-American 
Dream.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/Medicine (EP)/03-Want 
Me.flac (Bliss)
  2022-02-13 14:34:55 D [ 11/691   1%] Baby Queen/The 
Yearbook/05-Narcissist.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/Medicine (EP)/01-Internet 
Religion.flac (Bliss)
  2022-02-13 14:34:55 D [ 12/691   1%] Baby Queen/The Yearbook/06-Dover 
Beach.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/Medicine (EP)/06-Online 
Dating.flac (Bliss)
  2022-02-13 14:34:55 D [ 13/691   1%] Baby Queen/The Yearbook/07-Dover Beach 
Pt. 2.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/Medicine 
(EP)/05-Medicine.flac (Bliss)
  2022-02-13 14:34:55 D [ 14/691   2%] Baby Queen/The Yearbook/08-These 
Drugs.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/Medicine (EP)/02-Pretty 
Girl Lie.flac (Bliss)
  2022-02-13 14:34:55 D [ 15/691   2%] Baby Queen/The Yearbook/09-Fake 
Believe.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/The Yearbook/02-Raw 
Thoughts.flac (Bliss)
  2022-02-13 14:34:55 D [ 16/691   2%] Baby Queen/The Yearbook/10-I'm A 
Mess.flac
  2022-02-13 14:34:55 E Failed to analyze Baby Queen/The Yearbook/01-Baby 
Kingdom.flac (Bliss)
  
  2022-02-13 14:37:38 E Failed to analyze Wolf Alice/My Love Is Cool (Deluxe 
Edition)/26-Leaving You.flac (Bliss)
  2022-02-13 14:37:38 D [688/691  99%] Wolf Alice/Visions Of A 
Life/09-Sadboy.flac
  2022-02-13 14:37:38 E Failed to analyze Wolf Alice/Visions Of A 
Life/01-Heavenward.flac (Bliss)
  2022-02-13 14:37:38 D [689/691  99%] Wolf Alice/Visions Of A Life/10-St. 
Purple & Green.flac
  2022-02-13 14:37:38 E Failed to analyze Wolf Alice/Visions Of A Life/02-Yuk 
Foo.flac (Bliss)
  2022-02-13 14:37:39 D [690/691  99%] Wolf Alice/Visions Of A Life/11-After 
The Zero Hour.flac
  2022-02-13 14:37:39 E Failed to analyze Wolf Alice/Visions Of A 
Life/03-Beautifully Unconventional.flac (Bliss)
  2022-02-13 14:37:39 D [691/691 100%] Wolf Alice/Visions Of A Life/12-Visions 
Of A Life.flac
  2022-02-13 14:37:39 E Failed to analyze Wolf Alice/Visions Of A Life/04-Don't 
Delete The Kisses.flac (Bliss)
  2022-02-13 14:37:39 E Failed to analyze Wolf Alice/Visions Of A 
Life/05-Planet Hunter.flac (Bliss)
  2022-02-13 14:37:39 E Failed to analyze Wolf Alice/Visions Of A Life/06-Sky 
Musings.flac (Bliss)
  2022-02-13 14:37:39 E Failed to analyze Wolf Alice/Visions Of A 
Life/07-Formidable Cool.flac (Bliss)
  2022-02-13 14:37:39 E Failed to analyze Wolf Alice/Visions Of A Life/08-Space 
& Time.flac (Blis

Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-12 Thread cpd73


Paul Webster wrote: 
> I haven't tried any of the music similarity stuff yet.
> I have a question though ... what would happen if MP3 (or potentially
> FLAC) with associated .cue (or possibly embedded cue for flac) is part
> of the source where the audio file has a lot of songs in it and their
> position is marked by the cue contents?
> 
> Image a chart countdown with lots of different sorts of songs in it.
> 
> LMS allows individual songs to be selected and played but would the
> music analysis tools know to split into tracks?

Yes, if the analyser finds a ".cue" with the exact same name as an audio
file (e.g. Album.cue and Album.m4a) then it will query LMS's DB (if set
in config.json) for all the tracks contained within. It will then create
temporary mp3 files to analyse (and remove afterwards). These files are
named (e.g.) "Album.m4a.CUE_TRACK.0-215.44.mp3" - numbers after
CUE_TRACK are the start and stop times.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-12 Thread bakker_be


Paul Webster wrote: 
> I haven't tried any of the music similarity stuff yet.
> I have a question though ... what would happen if MP3 (or potentially
> FLAC) with associated .cue (or possibly embedded cue for flac) is part
> of the source where the audio file has a lot of songs in it and their
> position is marked by the cue contents?
> 
> Image a chart countdown with lots of different sorts of songs in it.
> 
> LMS allows individual songs to be selected and played but would the
> music analysis tools know to split into tracks?

I'll leave Craig to answer this in detail, but while troubleshooting my
installation I've seen that there is code in there to handle CUE-sheets.
As I don't have any myself, I'm unable to give you further info.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-12 Thread Paul Webster


I haven't tried any of the music similarity stuff yet.
I have a question though ... what would happen if MP3 (or potentially
FLAC) with associated .cue (or possibly embedded cue for flac) is part
of the source where the audio file has a lot of songs in it and their
position is marked by the cue contents?

Image a chart countdown with lots of different sorts of songs in it.

LMS allows individual songs to be selected and played but would the
music analysis tools know to split into tracks?



Paul Webster
author of \"now playing\" plugins covering radio france (fip etc),
planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc
australia and cbc/radio-canada
and, via the extra \"radio now playing\" plugin lots more - see
https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-12 Thread bakker_be


cpd73 wrote: 
> Oops! Well, in that case I'd be tempted to do just Bliss and Musly, and
> see how that goes. You can always run Essentia afterwards.
I did that, been running it with only Bliss & Musly, in a 50/50
"simplemixed" simalgo, while analysing with Essentia in the background.
I've got a rather balanced mix out of it (see attached playlist, 351
tracks), quite like what I would've had with MusicIP & Spicefly
SugarCube. I launched it the same way I would have in that previous
mixing scenario:
  
- Get a random list of albums
- pick one that suits my current mood
- set it to play
- let DSTM pick up after that
  
37203
In the meantime, I've been running the Essentia Analysis. I'll be
playing some with the simalgo, and its different mixing algorithms as
well as the mixer ratios.


+---+
|Filename: Simalgo_50-50_B+M.txt|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37203|
+---+


Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-08 Thread cpd73


bakker_be wrote: 
> Nope, scrapped it all :p :D

Oops! Well, in that case I'd be tempted to do just Bliss and Musly, and
see how that goes. You can always run Essentia afterwards.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-08 Thread bakker_be


cpd73 wrote: 
> Well, if you do just Bliss+Musly, you could probably analyse that in
> about 10-12hrs. Essentia is the -really- slow one - so hopefully you
> have cached the Essentia output (in which case the analyser will just
> read the JSON files). Perhaps I should make caching of this output the
> default.

Nope, scrapped it all :p :D



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-08 Thread cpd73

bakker_be wrote: 
> Since I started over from scratch full analysis will take some time
> again (±127k tracks by now :p), but I'll get back on that, as well as
> playing some with the simalgo ratio. Just FYI: I prefer a genre-agnostic
> mix: if it sounds similarly, it's OK by me, no matter what the genre is
> (e.g. some singer-songwriter acoustical guitar stuff, and an acoustical
> guitar track by some metal band)

Well, if you do just Bliss+Musly, you could probably analyse that in
about 10-12hrs. Essentia is the -really- slow one - so hopefully you
have cached the Essentia output (in which case the analyser will just
read the JSON files). Perhaps I should make caching of this output the
default.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-08 Thread bakker_be

cpd73 wrote: 
> Great, glad its fixed now. Will be interested to know your impressions
> with regards to Bliss vs Musly. These two are by far the fastest at
> analysing, so it'd be great to get them working. I'm considering trying
> mixes of Bliss+Musly (e.g. -"simalog":"mixed",
> "mixed":{"bliss":60,"musly":40}-) to see if that affects things.
> Currently I'm playing with 100% Bliss.
Since I started over from scratch full analysis will take some time
again (±127k tracks by now :p), but I'll get back on that, as well as
playing some with the simalgo ratio. Just FYI: I prefer a genre-agnostic
mix: if it sounds similarly, it's OK by me, no matter what the genre is
(e.g. some singer-songwriter acoustical guitar stuff, and an acoustical
guitar track by some metal band)



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-08 Thread cpd73


bakker_be wrote: 
> Did a new git pull, and all is now indeed working as intended, "-f bem"
> no longer needed to start the analysis. Thanks!

Great, glad its fixed now. Will be interested to know your impressions
with regards to Bliss vs Musly. These two are by far the fastest at
analysing, so it'd be great to get them working. I'm considering trying
mixes of Bliss+Musly (e.g. -"simalog":"mixed",
"mixed":{"bliss":60,"musly":40}-) to see if that affects things.
Currently I'm playing with 100% Bliss.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-08 Thread bakker_be


cpd73 wrote: 
> This should be fixed now, sorry.
> 
> 
> 
> Ah, oops! Yeah, my mistake - should be fixed now.

Did a new git pull, and all is now indeed working as intended, "-f bem"
no longer needed to start the analysis. Thanks!



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-07 Thread cpd73


bakker_be wrote: 
> I wanted to include the Bliss-analysis as well :p It didn't immediately
> work out for me, so I've now basically reset the whole music-similarity
> setup on my machine, to make sure everything was the latest version. I
> got "PATH" errors on essentia, solved those by removing the
> "extractor"-line from config.json, then I got "extractlen" errors on
> Musly, solved those by explicitly setting it in config.json.

This should be fixed now, sorry.

bakker_be wrote: 
> "Thread exception? - 5 values for 3 columns" errors in the log. 

Ah, oops! Yeah, my mistake - should be fixed now.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-07 Thread bakker_be


cpd73 wrote: 
> Not looked at the logs, yet, but you don't need to re-analyse. The DB
> should contain all the required info. This config just allows you to
> specify that for the initial similarity that you want to combine Musly &
> Essentia. It was jsut to replace the prebious UI setting that you had
> used. The data required is the same as before.
> 
> "--force" is used to force the analysis code to re-run. This is used,
> for instance, to re-read the Essentia JSON files if I were to ever use a
> new value from there.

I wanted to include the Bliss-analysis as well :p It didn't immediately
work out for me, so I've now basically reset the whole music-similarity
setup on my machine, to make sure everything was the latest version. I
got "PATH" errors on essentia, solved those by removing the
"extractor"-line from config.json, then I got "extractlen" errors on
Musly, solved those by explicitly setting it in config.json. I now find,
when just launching "./music-similarity.py -a m -l DEBUG 2>&1 | tee
/mnt/SIXTB/Data/musicsimilarity_Analysis.log" that I get "Thread
exception? - 5 values for 3 columns" errors in the log. I don't know
which analyser they're from, as I don't get them when running in
"forced" mode for any of the individual analysers, nor in "-f meb" mode
...
It would be nice to get to the bottom of this, as adding music to the
collection should only neccessitate those added songs to be analysed,
which of course isn't possible with forced mode (unless I misunderstood
it ...)
Current config.json:

Code:


  {
  "paths":{
  "db":"/home/bart/music-similarity/",
  "local":"/mnt/Music/",
  "lms":"/mnt/Music/",
  "cache":"/home/bart/music-similarity/cache/"
  },
  "lmsdb":"/var/lib/squeezeboxserver/cache/library.db",
  "essentia":{
  "enabled":true,
  "highlevel":true
  },
  "musly":{
  "extractlen":120,
  "extractstart":-210
  },
  "simalgo":"mixed",
  "mixed":{
  "essentia":33,
  "bliss":33,
  "musly":34
  }
  }




Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-07 Thread cpd73


bakker_be wrote: 
> I've had some trouble getting this to work correctly, but with some
> debugging I've now at least come to a point where it's analysing all
> tracks. What I don't get is why I need to use the" --force" switch to
> get get it analysing. Attached the logs with & without ..

Not looked at the logs, yet, but you don't need to re-analyse. The DB
should contain all the required info. This config just allows you to
specify that for the initial similarity that you want to combine Musly &
Essentia. It was jsut to replace the prebious UI setting that you had
used. The data required is the same as before.

"--force" is used to force the analysis code to re-run. This is used,
for instance, to re-read the Essentia JSON files if I were to ever use a
new value from there.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-07 Thread bakker_be


cpd73 wrote: 
> The "attribweight" here implies the similarity score is 75% based on
> Essentia and 25% Musly. I, as noted before, removed this so that it was
> either 100% Musly, 100% Bliss, or 100% Essentia - and you set the
> preferred one via the "simalgo" config.json item.
> 
> I've updated music-similarity in git so that "simalgo" can be set to
> "mixed", if so you then need to set the percentages for each. So, to get
> you back to the equivalent of "attribweight:75" you would need:
> 
> > 
Code:

  >   > 
  > {
  > "simalgo":"mixed",
  > "mixed":{
  > "essentia":75,
  > "musly":25
  > }
  > }
  > 

> > 
> 
> I've remove the GUI config item for this as I -think- its too low
> level. See docs/OtherConfig.md for more config items.
I've had some trouble getting this to work correctly, but with some
debugging I've now at least come to a point where it's analysing all
tracks. What I don't get is why I need to use the" --force" switch to
get get it analysing. Attached the logs with & without
...3716337164371653716637167


+---+
|Filename: 20220207_musicsimilarity_Analysis_Full.log   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37167|
+---+


Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread cpd73


bakker_be wrote: 
> 
> I can see this in the plugin debug logging from this morning: > 
Code:

  >   > [22-02-06 10:13:27.7710] Plugins::MusicSimilarity::Plugin::_getMixData 
(319) Request 
{"filterattrib":"1","attribweight":"75","nogenrematchadj":"5","filterkey":"1","format":"text","genregroupadj":"5","count":"2","filtergenre":0,"filterxmas":"1","norepalb":"50","maxloudnessdiff":"5","previous":[
 ... 

> > 

The "attribweight" here implies the similarity score is 75% based on
Essentia and 25% Musly. I, as noted before, removed this so that it was
either 100% Musly, 100% Bliss, or 100% Essentia - and you set the
preferred one via the "simalgo" config.json item.

I've updated music-similarity in git so that "simalgo" can be set to
"mixed", if so you then need to set the percentages for each. So, to get
you back to the equivalent of "attribweight:75" you would need:


Code:


  {
  "simalgo":"mixed",
  "mixed":{
  "essentia":75,
  "musly":25
  }
  }
  



I've remove the GUI config item for this as I -think- its too low level.
See docs/OtherConfig.md for more config items.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread cpd73


mruddo wrote: 
> I'm using Musly and Essentia - just not with the high-level attributes.

I know, but this means *only* Musly can be used to get similar tracks -
Essentia is then *only* used for filtering. With essentia high-level you
can use this for similarity score, instead of, or combined with, musly.

mruddo wrote: 
> I do like the idea of giving Bliss a go though, so I will look into
> what's required to hook the Windows component with the WSL analysis to
> make that work when I have some time.

Tried to compile for Windows, but too mauch hassle getting ffmpeg built,
so gave up. I'm 100% Linux so trying to get working with Windows was
taking too much of my time.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread mruddo


cpd73 wrote: 
> Well, you are using only Musly for similarity, and nothing has changed
> on that front. Musly *only* analyses a portion of the file - by default
> the middle 2 minutes (starting no later than 3m30 seconds) of a track.
> The mixer gets a certain amount of similar tracks per seed, orders by
> similarity, then takes a random selection from a sub-set.
> 
> Previously the Essentia 'loudness' attribute could be used for
> filtering. But when I read more about what this is, I discovered its not
> loundess but dynamic range. Therefore, I remove the ability to filter on
> that. So, with your current Musly + low-level Essentia, you can only
> filter on BPM range and key.
> 
> Perhaps if you could install WSL you could try using bliss instead of
> musly?

I'm using Musly and Essentia - just not with the high-level attributes.

I do like the idea of giving Bliss a go though, so I will look into
what's required to hook the Windows component with the WSL analysis to
make that work when I have some time. 

I've a definite case of FOMO at the moment with the current setup. ;) 
Although, I'm still very much appreciative of the mixes I get right now.



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread cpd73


mruddo wrote: 
> Just one thing to comment, I don't know if there have been any
> significant changes in similarity selection, but I seem to be getting
> some very odd initial mixes. Queen's "Invisible Man" to Monty Python's
> "Always Look on the Bright Side of Life" was not expected...But I've not
> looked at the detail.

Well, you are using only Musly for similarity, and nothing has changed
on that front. Musly *only* analyses a portion of the file - by default
the middle 2 minutes (starting no later than 3m30 seconds) of a track.
The mixer gets a certain amount of similar tracks per seed, orders by
similarity, then takes a random selection from a sub-set.

Previously the Essentia 'loudness' attribute could be used for
filtering. But when I read more about what this is, I discovered its not
loundess but dynamic range. Therefore, I remove the ability to filter on
that. So, with your current Musly + low-level Essentia, you can only
filter on BPM range and key.

Perhaps if you could install WSL you could try using bliss instead of
musly?



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread mruddo


cpd73 wrote: 
> Update music-similarity - I've wrapped these checks in try/except
> blocks, so if a check fails it returns False

That's got me up and running again, thanks. :D

Just one thing to comment, I don't know if there have been any
significant changes in similarity selection, but I seem to be getting
some very odd initial mixes. Queen's "Invisible Man" to Monty Python's
"Always Look on the Bright Side of Life" was not expected...But I've not
looked at the detail.

Too early to say for certain, but I'll keep an eye on things over the
next few days. I only mention it as a few test mixes to confirm things
were working again were not quite as I'd have expected. I know you
mentioned something about "loudness" earlier, so I wondered if that may
have had anything to do with it.

I won't be able to use it much today, but will be running it in over the
working week.



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread cpd73


bakker_be wrote: 
> On the off chance that something went wrong with the automatic update, I
> just downloaded the most recent plugin release (0.4), overwrote what was
> present on my LMS and restarted it. No change in the interface, so the
> Essentia filters are still missing (they are missing from Material as
> well). Went to "More" on a random track and tried creating a similarity
> mix. This worked fine.

You need to update music-similarity as well. The LMS plugin queries the
backend to know essentia level (high, low), and if bliss has been used.
Previously a different that just returned what essentia level was
supported, I changed this because of adding bliss support.

I also see that you were using 75% Essentia and 25% Musly for similarity
score. This has also been changed, and you need to set the 'simalgo' to
be used in config.json. By default this is 'bliss' for linux, and
'musly'  for others. But the app will check if files have been analysed
with bliss, and if not fall back to musly. To use essentia you need to
set "simalgo" to "essentia" - but this would be 100% Essentia. I was not
aware of others mixing, so remove this. Personally I am using bliss with
no essentia filtering.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread bakker_be


On the off chance that something went wrong with the automatic update, I
just downloaded the most recent plugin release (0.4), overwrote what was
present on my LMS and restarted it. No change in the interface, so the
Essentia filters are still missing (they are missing from Material as
well). Went to "More" on a random track and tried creating a similarity
mix. This worked fine.
Below the LMS log from restart until mix creation:

Code:


  [22-02-06 15:34:45.3554] main::init (390) Starting Logitech Media Server 
(v8.3.0, 1644040271, Sat 05 Feb 2022 07:27:09 AM CET) perl 5.03 - 
x86_64-linux-gnu-thread-multi
  [22-02-06 15:34:46.7084] Plugins::CastBridge::Plugin::initPlugin (77) $VAR1 = 
{
  'os' => 'Linux',
  'binArch' => 'i386-linux',
  'osName' => 'Debian',
  'osArch' => 'x86_64-linux',
  'isDebian' => 1,
  'uid' => 'squeezeboxserver'
  };
  [22-02-06 15:34:46.7473] Plugins::MusicSimilarity::Plugin::initPlugin (143) 
Registered javascript/div with Material
  [22-02-06 15:34:46.7614] Plugins::SugarCube::Breakout::init (293) 
Initialising SugarCube Database
  [22-02-06 15:34:46.7632] Plugins::SugarCube::Breakout::init (312) Database 
tables are ready
  [22-02-06 15:34:55.2440] Plugins::MusicSimilarity::Plugin::__ANON__ (215) 
Failed to determine fetures, will try again afer 15 seconds
  [22-02-06 15:34:57.4467] Slim::Utils::Misc::msg (1343) Warning: 
[15:34:57.4464] Use of uninitialized value $_[0] in hash element at 
/usr/share/squeezeboxserver/CPAN/HTTP/Status.pm line 130.
  [22-02-06 15:34:59.3883] Slim::Utils::Misc::msg (1343) Warning: 
[15:34:59.3879] Use of uninitialized value $_[0] in hash element at 
/usr/share/squeezeboxserver/CPAN/HTTP/Status.pm line 130.
  [22-02-06 15:35:02.3946] 
Plugins::Spotty::Connect::DaemonManager::checkAPIConnectPlayers (208) Connect 
daemon is running, but not connected - shutting down to force restart: 
00:04:20:22:c1:26 Squeezebox Touch & BK-T590
  [22-02-06 15:35:10.0055] Plugins::MusicSimilarity::Plugin::__ANON__ (215) 
Failed to determine fetures, will try again afer 15 seconds
  [22-02-06 15:35:25.0071] Plugins::MusicSimilarity::Plugin::__ANON__ (215) 
Failed to determine fetures, will try again afer 15 seconds
  [22-02-06 15:35:40.0057] Plugins::MusicSimilarity::Plugin::__ANON__ (215) 
Failed to determine fetures, will try again afer 15 seconds
  [22-02-06 15:35:54.0055] Plugins::MusicSimilarity::Plugin::__ANON__ (215) 
Failed to determine fetures, will try again afer 15 seconds
  [22-02-06 15:36:03.5379] Plugins::MusicSimilarity::Plugin::cliMix (1015) 
CMD:mix
  [22-02-06 15:36:03.5417] Plugins::MusicSimilarity::Plugin::cliMix (1058) 
Similarity Track Seed /mnt/Music/Various/De Afrekening Volume 4/09-A Letter To 
Elise.flac
  [22-02-06 15:36:03.5419] Plugins::MusicSimilarity::Plugin::cliMix (1100) Num 
tracks for similarity mix/list: 1
  [22-02-06 15:36:03.5425] Plugins::MusicSimilarity::Plugin::_getMixData (449) 
Request 
{"previous":[],"format":"text","count":100,"genregroups":null,"norepalb":"50","shuffle":1,"genregroupadj":"5","filterxmas":"1","max":0,"mpath":"/mnt/Music","track":["file:///mnt/Music/Various/De%20Afrekening%20Volume%204/09-A%20Letter%20To%20Elise.flac"],"maxbpmdiff":"50","filtergenre":0,"filterkey":"1","nogenrematchadj":"5","filterattrib":"1","norepart":"50","min":"60"}
  [22-02-06 15:36:03.5437] Plugins::MusicSimilarity::Plugin::_callApi (850) 
Call http://192.168.3.17:11000/api/similar
  [22-02-06 15:36:04.6310] Plugins::MusicSimilarity::Plugin::__ANON__ (855) 
Received API response 
  




Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread bakker_be


cpd73 wrote: 
> What config are you using? Musly for similarity, Essentia filters?
> Seeing as you are in Linux, have you tried the latest with Bliss?
I wanted to look at it, but I seem to have lost that part of the
interface ... it was there before (see
https://forums.slimdevices.com/showthread.php?115609-Announce-Music-Similarity-DSTM-mixer&p=1044826&viewfull=1#post1044826)
but it isn't there anymore ...
37152
I have update LMS today, and also had to restart for 2 updated plugins,
but don't remember which :(
I can see this in the plugin debug logging from this morning: 
Code:

[22-02-06 10:13:27.7710] Plugins::MusicSimilarity::Plugin::_getMixData 
(319) Request 
{"filterattrib":"1","attribweight":"75","nogenrematchadj":"5","filterkey":"1","format":"text","genregroupadj":"5","count":"2","filtergenre":0,"filterxmas":"1","norepalb":"50","maxloudnessdiff":"5","previous":[
 ... 


But recent log lines don't seem to have this anymore either ...
Code:

[22-02-06 14:14:07.2191] Plugins::MusicSimilarity::Plugin::_getMixData 
(449) Request 
{"filterkey":"1","genregroups":null,"norepalb":"50","format":"text","previous":[...


The last couple of songs in the queue aren't as well suited at what's
been playing since yesterday afternoon either :p
cpd73 wrote: 
> 
> There is an example systemd file with music-similarity, just not as
> advanced as yours! My systemd skills are basic, to say the least. I also
> try and disable logging as much as possible, to save writes to my Pi's
> SD card.
To be honest, I haven't even looked if there was an example ... I'm not
really skilled at this either, just began researching how to do it and
with some trial and error came up with this. Feel free to use it if you
like it ;)


+---+
|Filename: Screenshot_96.png|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37152|
+---+


Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread cpd73


bakker_be wrote: 
> Working well here, quite pleased with the mixes it produces.

What config are you using? Musly for similarity, Essentia filters?
Seeing as you are in Linux, have you tried the latest with Bliss?

bakker_be wrote: 
> I've now created a systemd service file for it, writing the log files to
> the systemlog

There is an example systemd file with music-similarity, just not as
advanced as yours! My systemd skills are basic, to say the least. I also
try and disable logging as much as possible, to save writes to my Pi's
SD card.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread bakker_be


Working well here, quite pleased with the mixes it produces. After
running it through its paces manually to see it working, I've now
created a systemd service file for it, writing the log files to the
systemlog
Systemd Service file:

Code:


  [Unit]
  Description=Music-Similarity DSTM source daemon for LMS
  After=network.target logitechmediaserver.service
  
  [Service]
  Type=simple
  Restart=always
  RestartSec=1
  User=%USER%
  ExecStart=/usr/bin/python3 -u /%MUSIC-SIMILARITY PATH%/music-similarity.py -c 
/%MUSIC-SIMILARITY CONFIG.JSON PATH%/config.json -l DEBUG
  StandardOutput=syslog
  StandardError=syslog
  SyslogIdentifier=MusicSimilarity
  
  [Install]
  WantedBy=multi-user.target
  


Store this file as music-similarity.service, easiest is in the
music-similarity folder, replace the variables for user & path to
reflect your installation, modify the logging level to suit your needs
and run

Code:


  sudo systemctl enable %SERVICE_FILE_PATH%/music-similarity.service
  


Again, replacing the path variable of course ... After this, run the
same command again, but replace "enable" by "start", to start the
service. Running the same command but with "status", you'll see if it's
running. For a detailed view at today's output:

Code:


  journalctl -u music-similarity.service --since today
  




Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread cpd73


mruddo wrote: 
> Is there setting I need to exclude the high-level fields in the latest
> back end (apologies if I missed it in the docs), or should I just hold
> fire and stick to the previous version for now?

Update music-similarity - I've wrapped these checks in try/except
blocks, so if a check fails it returns False



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread mruddo


I've upgraded the plugin to 0.4 and refreshed the files from the master
of the MusicSimilarity backend.

Now every time I try to start the service I get this:


Code:


  Traceback (most recent call last):
  File "M:\My Music\MusicSimilarity\music-similarity\music-similarity.py", line 
38, in 
  app.start_app(args, cfg, jukebox_file)
  File "M:\My Music\MusicSimilarity\music-similarity\lib\app.py", line 842, in 
start_app
  similarity_app.init(args, config, jukebox_path)
  File "M:\My Music\MusicSimilarity\music-similarity\lib\app.py", line 43, in 
init
  app_config['essentia']['highlevel'] = app_config['essentia']['enabled'] and 
tdb.files_analysed_with_essentia_highlevel()
  File "M:\My Music\MusicSimilarity\music-similarity\lib\tracks_db.py", line 
330, in files_analysed_with_essentia_highlevel
  self.cursor.execute('SELECT %s FROM tracks WHERE %s is not null LIMIT 1' % 
(ESSENTIA_HIGHLEVEL_ATTRIBS[0], ESSENTIA_HIGHLEVEL_ATTRIBS[0]))
  sqlite3.OperationalError: no such column: danceable
  Server ended at 11:31:51.51 on 06/02/2022
  



Seeing as I'm running in Windows, I know I don't have the high-level
analysis fields, so this is likely why... but the config.json file has
"highlevel": false. (Albeit this is under essentia, so may not be
relevant when running the service).

Is there setting I need to exclude the high-level fields in the latest
back end (apologies if I missed it in the docs), or should I just hold
fire and stick to the previous version for now?



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-06 Thread cpd73


prabbit wrote: 
> It seems as if you're close to releasing new versions anyway. I can
> wait.

I've released MaterialSkin 2.9.0, and the LMS MusicSimilarity plugin
0.0.4 - these should allow the creation of Smart Mixes. You will also
need the latest, or recent at least, git checkout of the MusicSimilarity
backend. Currently I'm investigating using Bliss as a replacement for
Musly, as it -appears- to be better for me. I've not yet made a release
of the backend, and have removed links to the alpha ZIP files from the
initial announcement - as I'm not going to make OS specific release,
just provide instructions on what, and where, to download.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-05 Thread cpd73

Whilst browsing around this week, I discovered 'bliss-rs'
(https://github.com/Polochon-street/bliss-rs) - which is a new-ish Rust
based library for music-similarity. (New-ish as there was a previous,
non-Rust, version named bliss). This is used for an MPD app/plugin named
blissfy-rs to provide similar functionality to MusicSimilarity - i.e.
adding similar tracks to the play queue.

Out of curiosity I created a trivial Rust 'app'
(https://github.com/CDrummond/bliss-analyse) so that I could invoke this
from MusicSimilarity. I’ve added a pre-compiled Linux version of this
app to the  MusicSimilarity repo. I have tried to compile on Windows,
but Rust pulls in ffmpeg and this fails to compile. So, for now, this is
Linux only – unless someone else can get this to build. This app is only
required for analysis, and not to for API usage.

I’ve updated the MusicSimilarity analysis code to also allow analysing
tracks with Bliss. This analysis is very fast, but takes about 2 to 2.5
times longer than Musly. For example I get -close- to 15k tracks/hour.

MusicSimilarity can be configured to use Bliss instead of Musly to
provide the list of similar tracks. (I’ve made this the default setting
for Linux). From my, very limited, testing it -appears- to provide (for
my library) better results than Musly. It also seems to be currently
maintained, so is probably a better long-term solution. (Musly itself
has had no updates since Sept 2019)

I’d be interested in feedback on Bliss usage in MusicSimilarity from
other Linux users – or even Window users, if MusicSimilarity is used to
analyse tracks under WSL.

If you do try to use Bliss against a pre-existing MusicSimilarity DB,
there is one small caveat. When initially writing MusicSimilarity I’d
assumed Musly would always be used – so the ‘vals’ column in the
database (where Musly analysis is stored) has a not-null constraint.
Basically, a track needs to have Musly results. You can fix this by
using an SQL editor (e.g. SQLiteBrowser) to edit the tracks and
tracks_tmp tables and remove this constrain from the ‘vals’ column. If
you do, then you can analyse track with Bliss only, and leave out Musly.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-01 Thread cpd73


bakker_be wrote: 
> Initial testing seemed promising. Had a couple of strange ones though: I
> started out with the "Born Again" album by Black Sabbath, admittedly a
> bit of an outlier sonically, and while the overall mix was, expectedly,
> rather metal and hard rock based, to my astonishment it also included a
> 50's big band track. Looking through the log it seems as though there
> were more of those indicated as "USABLE" tracks, along with some
> classical music and other Jazz tracks ...

Musly uses a songs timbre to determine similar tracks - but it does not
analyse the whole track, only (usually) the middle. Essentia is then
used to filter out based opon key and bpm - and attributes, if
available. I've personally defined genre groups as I don't really want
Metal and Pop tracks bineg mixed.

If you have analysed with Essentia on Linux you can try using that for
the similarity - or even mix Musly and Essentia.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-01 Thread bakker_be


cpd73 wrote: 
> So, only 67 hours to go :) Hope the mixes are worth it after that!

Initial testing seemed promising. Had a couple of strange ones though: I
started out with the "Born Again" album by Black Sabbath, admittedly a
bit of an outlier sonically, and while the overall mix was, expectedly,
rather metal and hard rock based, to my astonishment it also included a
50's big band track. Looking through the log it seems as though there
were more of those indicated as "USABLE" tracks, along with some
classical music and other Jazz tracks ...



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-01 Thread cpd73

bakker_be wrote: 
> A follow-up: Doing "-m" scan indeed populated the empty metadata fields,
> and mixing did indeed work. Given that the version I had was "older",
> I've done a new git clone and initiated a new scan. I can confirm that
> the current code indeed does populate *_all_* fields in one go. Only 78%
> of my ± 121000 tracks still to go (scanning at around 1400 tracks/hour
> and I'm in business again :)

So, only 67 hours to go :) Hope the mixes are worth it after that!



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-02-01 Thread bakker_be

cpd73 wrote: 
> I -think- you are correct, and the missing metadata is the issue. I'll
> see if there is an issue in the code that is causing this missing
> metadata.

A follow-up: Doing "-m" scan indeed populated the empty metadata fields,
and mixing did indeed work. Given that the version I had was "older",
I've done a new git clone and initiated a new scan. I can confirm that
the current code indeed does populate *_all_* fields in one go. Only 78%
of my ± 121000 tracks still to go (scanning at around 1400 tracks/hour
and I'm in business again :)



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread ldarieut


changed the media folder in lms to /mnt/usb/music and it works. My
original LMS config had two folders, /mnt/usb/music/hires and
/mnt/usb/music/lowres.
thanks :)
Luc



ldarieut's Profile: http://forums.slimdevices.com/member.php?userid=21224
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread cpd73


ldarieut wrote: 
> yes, the analysis was made on a different linux server.

I analyse on a Fedora laptop, but run MusicSimilarity with LMS on a
Pi4.


ldarieut wrote: 
> 
> Analysis :
> files were located in /mnt/music/hires/A/B.mp3" and
> "/mnt/music/lowres/C/D.mp3"
> files were stored in db as "hires/A/B.mp3" "lowres/C/D.mp3" ...etc

To be expected.

ldarieut wrote: 
> 
> runtime:
> files are located in "/mnt/usb/music/hires/A/B.mp3" etc...
> music-reality is looking for "A/B.mp3" in the db

Because LMS's media dir is set to "/mnt/usb/music/hires" - you can see
this in the "mpath" of your original debug. So, working as expected -
your config does not match. You need to set 'media directory' to
'/mnt/usb/music/'



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread ldarieut


prabbit wrote: 
> The system you used for analysis and runs the Similarity API server is
> on a different box than LMS, right? If so, do you have the Similarity
> API Server configured to adjust paths? 
> 
> https://github.com/CDrummond/music-similarity#configuration
yes, the analysis was made on a different linux server.

analysis :
{
"paths":{
"db":"~/.local/share/music-similarity/",
"local":"/mnt/music/",
"cache":"~/.local/share/music-similarity/cache/"
}
}

runtime:
{
"paths":{
"db":"/mnt/usb/music/music-similarity/",
"local":"/mnt/usb/music/"
}
}

Analysis :
files were located in /mnt/music/hires/A/B.mp3" and
"/mnt/music/lowres/C/D.mp3"
files were stored in db as "hires/A/B.mp3" "lowres/C/D.mp3" ...etc

runtime:
files are located in "/mnt/usb/music/hires/A/B.mp3" etc...
music-reality is looking for "A/B.mp3" in the db



ldarieut's Profile: http://forums.slimdevices.com/member.php?userid=21224
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread cpd73


ldarieut wrote: 
> as I wrote, it's prefixed by "hires" in the db, yet music-similarity
> will look it up without the "hires" path.
> luc

The your config is broken. If "local.path = /some/path/music", then
"/some/path/music/album/artist/track.mp3" is stored as
"album/artist/track.mp3" within the DB. Now if LMS has "/home/usr/Music"
as its media dir (mpath in debug above) then when
"file:///home/user/Music/album/artist/track.mp3" is passed as a seed
track, the 'media dir' is removed, and the file can then be found.

If you have your files have a 'hires' prefix in the path in the DB, then
I -think- your "local.path" -should- have been "/mnt/usb/music/hires"

Basically the code needs to strip LMS's 'media dir' from the path of
incomming seed tracks, and use the remainder to locate the file.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread prabbit


ldarieut wrote: 
> it's in the db:
> 
> sqlite> select * from tracks where file like "%Round Midnight%";
> hires/Bill Evans/California Here I Come/13 - Round Midnight.flac|'Round
> Midnight|Bill Evans|California Here I Come|Bill
> Evans|Jazz|367||0.0309601910412|0.0785622671247|0.55350625515|0.956970751286|0.149642467499|0.0466651245952|0.988805413246|0.683286011219|0.923669755459|0.625463247299|0.0451345331967|90|D#m|���
> HIRES/THELONIOUS MONK/MULLIGAN MEETS MONK/01 THELONIOUS MONK - 'ROUND
> MIDNIGHT.FLAC|'ROUND MIDNIGHT|THELONIOUS MONK & GERRY MULLIGAN|MULLIGAN
> MEETS MONK|THELONIOUS MONK / GERRY
> MULLIGAN|JAZZ|509||0.0305914841592|0.0516271069646|0.540071487427|0.968276321888|0.17799846828|0.009237091057|0.991564512253|0.409064233303|0.20512932539|0.947108507156|1.3131912624E-07|123|D#M|���
> 
> as I wrote, it's prefixed by "hires" in the db, yet music-similarity
> will look it up without the "hires" path.
> luc

The system you used for analysis and runs the Similarity API server is
on a different box than LMS, right? If so, do you have the Similarity
API Server configured to adjust paths? 

https://github.com/CDrummond/music-similarity#configuration



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread ldarieut


it's in the db:

sqlite> select * from tracks where file like "%Round Midnight%";
hires/Bill Evans/California Here I Come/13 - Round Midnight.flac|'Round
Midnight|Bill Evans|California Here I Come|Bill
Evans|Jazz|367||0.0309601910412|0.0785622671247|0.55350625515|0.956970751286|0.149642467499|0.0466651245952|0.988805413246|0.683286011219|0.923669755459|0.625463247299|0.0451345331967|90|D#m|���
HIRES/THELONIOUS MONK/MULLIGAN MEETS MONK/01 THELONIOUS MONK - 'ROUND
MIDNIGHT.FLAC|'ROUND MIDNIGHT|THELONIOUS MONK & GERRY MULLIGAN|MULLIGAN
MEETS MONK|THELONIOUS MONK / GERRY
MULLIGAN|JAZZ|509||0.0305914841592|0.0516271069646|0.540071487427|0.968276321888|0.17799846828|0.009237091057|0.991564512253|0.409064233303|0.20512932539|0.947108507156|1.3131912624E-07|123|D#M|���

as I wrote, it's prefixed by "hires" in the db, yet music-similarity
will look it up without the "hires" path.
luc



ldarieut's Profile: http://forums.slimdevices.com/member.php?userid=21224
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread cpd73


ldarieut wrote: 
> must be a very stupid mistake, but here is what I get when trying to
> create a mix:

Your seed track cannot be found in the database:


Code:


  2022-01-26 14:49:33 D Could not locate Thelonious Monk/Mulligan Meets Monk/01 
Thelonious Monk - 'Round Midnight.flac in DB
  



Use (e.g.) SQLiteBrowser to load music-similarity.db and see if the
above exists.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-26 Thread ldarieut


must be a very stupid mistake, but here is what I get when trying to
create a mix:

2022-01-26 14:49:04 I  * Running on http://192.168.50.149:11000/ (Press
CTRL+C to quit)
2022-01-26 14:49:33 D Request: {"track":
["file:///mnt/usb/music/hires/Thelonious%20Monk/Mulligan%20Meets%20Monk/01%20Thelonious%20Monk%20-%20%27Round%20Midnight.flac"],
"filterattrib": "1", "format": "text", "count": 100, "maxloudnessdiff":
"5", "min": 0, "shuffle": 1, "genregroups": null, "filterxmas": "1",
"attribweight": "35", "norepart": "15", "previous": [], "max": 0,
"genregroupadj": "7", "nogenrematchadj": "15", "mpath":
"/mnt/usb/music/hires", "filtergenre": 0, "maxbpmdiff": "50",
"norepalb": "25", "filterkey": "1"}
2022-01-26 14:49:33 D Genre cfg: {}
2022-01-26 14:49:33 D Essentia(attrib) cfg: {"enabled": true,
"highlevel": true, "bpm": 50, "filterkey": true, "filterattrib": true,
"weight": 0.35}
2022-01-26 14:49:33 D Music root: /mnt/usb/music/hires/
2022-01-26 14:49:33 D S TRACK
file:///mnt/usb/music/hires/Thelonious%20Monk/Mulligan%20Meets%20Monk/01%20Thelonious%20Monk%20-%20%27Round%20Midnight.flac
-> Thelonious Monk/Mulligan Meets Monk/01 Thelonious Monk - 'Round
Midnight.flac
2022-01-26 14:49:33 D Could not locate Thelonious Monk/Mulligan Meets
Monk/01 Thelonious Monk - 'Round Midnight.flac in DB
2022-01-26 14:49:33 D Seed genres: set()
2022-01-26 14:49:33 D similar_tracks: 0, filtered_tracks::meta: 0,
filtered_tracks::attribs: 0
2022-01-26 14:49:33 I 127.0.0.1 - - [26/Jan/2022 14:49:33] "POST
/api/similar HTTP/1.0" 200 -

similarity db has ran on my WSL2 linux and this is the log from pi4.

luc



ldarieut's Profile: http://forums.slimdevices.com/member.php?userid=21224
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread ldarieut


Roland0 wrote: 
> There are two variants for each model, one 3M, the other 276M
> 
> 
> Essentia/Tf doesn't have a music extractor, so LMS Essentia includes a
> CLI tool for analysis. While the structure of the JSON output of this
> tool  is the same as the Gaia/SVM music extractor,  the attributes are
> not.
Thanks Roland, I will have a look at your python script
esstf-extractor.py.
luc



ldarieut's Profile: http://forums.slimdevices.com/member.php?userid=21224
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread cpd73


prabbit wrote: 
> I must be daft. 
> 
> Stopped LMS.
> Uninstalled MaterialSkin 2.8.4 and MusicSimilarity 0.0.3.
> Started LMS.
> Stopped LMS.
> Added both plugins to /usr/local/slimserver/Plugins on my rPi4.
> Started LMS.
> MaterialSkin DEVELOPMENT and MusicSimilarity 0.0.3 (master) load,
> but...
> Server log shows errors that strings cannot be found for MaterialSkin or
> MusicSimilarity. 
> 
> It appears that stringcache.aarch64-linux.bin is not being updated. I've
> reverted to Material 2.8.4 and Similarity 0.0.3. It seems as if you're
> close to releasing new versions anyway. I can wait.

Odd. I've just done the following steps:

  
-  Stop LMS
-  Remove MusicSimilarity and MaterialSkin folders from
  slimserver/Plugins
-  git clone https://github.com/CDrummond/lms-musicsimilarity.git
-  git clone https://github.com/CDrummond/lms-material.git
-  Sym-linked MusicSimilarity and MaterialSkin from the relevant git
  checkout into slimserver/Plugins
-  Start music-similarity python script
-  Restart LMS
  

No issues, Material and MusicSimilarity show and work in LMS.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread prabbit


cpd73 wrote: 
> Please try again - but use master branches. I have merged lms-material,
> music-similarity, and lms-musicsimilarity branches into their respective
> master branch. Installed onto my Pi4, and is working for me.

I must be daft. 

Stopped LMS.
Uninstalled MaterialSkin 2.8.4 and MusicSimilarity 0.0.3.
Started LMS.
Stopped LMS.
Added both plugins to /usr/local/slimserver/Plugins on my rPi4.
Started LMS.
MaterialSkin DEVELOPMENT and MusicSimilarity 0.0.3 (master) load,
but...
Server log shows errors that strings cannot be found for MaterialSkin or
MusicSimilarity. 

It appears that stringcache.aarch64-linux.bin is not being updated. I've
reverted to Material 2.8.4 and Similarity 0.0.3. It seems as if you're
close to releasing new versions anyway. I can wait.



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread Roland0


cpd73 wrote: 
> 
> Looked into it, but the models (AFAIR) are hundreds of megs.
> 
There are two variants for each model, one 3M, the other 276M

> 
> First you will need to download the models you want to use. I'm not sure
> if Essentia+Tensorflow produces the same attribute types as
> Essentia+Gaia/SVM - probably does, but I can't be sure.
> 
Essentia/Tf doesn't have a music extractor, so LMS Essentia includes a
CLI tool for analysis. While the structure of the JSON output of this
tool  is the same as the Gaia/SVM music extractor,  the attributes are
not.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Text
Interface | Playlist Editor / Generator | Music Classification | Similar
Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer |
Image Enhancer | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread cpd73


prabbit wrote: 
> What isn't loading properly is the Music Similarity plugin. It's as if
> the string.txt file isn't being found.

Please try again - but use master branches. I have merged lms-material,
music-similarity, and lms-musicsimilarity branches into their respective
master branch. Installed onto my Pi4, and is working for me.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread prabbit

mruddo wrote: 
> I've had a go, but can't get the 2.9 branch of Material to run under
> Windows. I've downloaded the zip and installed the folder in the plugins
> directory, but trying to view the server with the Material skin just
> shows a white window. I can confirm from the legacy interface that the
> DEVELOPMENT plugin's installed, but it's not working for me I'm afraid.

Same thing happened to me yesterday. White window.

cpd73 wrote: 
> Yeah, Material was broken if no plugins that used its extension feature
> were loaded. Should be fixed now. You will also need a newer
> music-similarity and lms-musicsimilarity
> 
> I changed the range sliders to yes/no/not-used options - seemed more
> user friendly. Also, I have removed 'loudness'. I thought this was a
> loud/quiet indicator - but its actually to do with dynamic range (a loud
> track and quiet track could have same dynamic range).

I can confirm that using 2.9 branch of Material for user interface (SHA
'c14d817'
(https://github.com/CDrummond/lms-material/commit/c14d81762e549c45f896037462e04150c3628939))
that Material loads properly.

What isn't loading properly is the Music Similarity plugin. It's as if
the string.txt file isn't being found. I am using:

- lms-musicsimilarity (SHA '389dfc5'
  
(https://github.com/CDrummond/lms-musicsimilarity/commit/389d5c5b8a56afb98e7b815fb8bb2005a2ec9bda))—this
  seems to be working fine
- music-similarity (SHA '7ed03a6'
  
(https://github.com/CDrummond/music-similarity/commit/7ed03a6484731c9ac2d4a34d7ec33d4b504bf187))
  

The Music Similarity plugin name is "missing" from the Plugins dropdown
list. Technically, it's an empty string. Selecting the blank line in the
Plugins list takes me to the Music Similarity settings page. Once there,
the setting names are the ALL CAPS STRINGS from musicsimilarity.html
(e.g., MUSICSIMILARITY_NUM_DSTM_TRACKS,
MUSICSIMILARITY_NUM_DSTM_TRACKS_DESC) rather than the
localized/localised strings[1]. Reverting to v0.0.3 fixes the strings,
but doesn't have the newest functionality. Is there something obvious
that I might be forgetting to do or doing incorrectly?

- - - 
[1] Random aside: I used "localized" intentionally here rather
than "translation." Translation is when one language is, well,
translated into another language. An example of translation is
converting Japanese into French or English into Spanish.
Localization/localisation is when text is modified for a locale for
semantic or cultural reasons -but remains in the same language-.
Examples include 
- American English (en-US) vs British English (en-GB) vs South African
  English (en-ZA) or 
- Germany-German (de-DE) vs Swiss German (de-CH) vs Austrian German
  (de-AT) or 
- European Portuguese (pt-PT) vs. Brazilian Portuguese (pt-BR) or
- France French (fr-FR) vs. Canada (fr-CA). Speakers and readers of each of 
those languages notice when something
doesn't match their expectations, such as spelling, word choice, or
measurements, and can tell when the product isn't written for their
locale.



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread ldarieut


cpd73 wrote: 
> Is that 1490 with just Musly? If so, that's slow - I used to get
> ~20k/hour with just Musly, and ~1100/hour with Musly+Essentia. Also, why
> recompile Musly? And if you did please use my fork - simply becasue I
> merged in some pull request from the Musly repo.
> 
> 
> 
> I've never actually got very far with Tensorflow. Looked into it, but
> the models (AFAIR) are hundreds of megs. Just seemed overkill. Plus
> Tensorflow, AFAIK, is slower - more accurate, but slower.
> 
> 
> 
> First you will need to download the models you want to use. I'm not sure
> if Essentia+Tensorflow produces the same attribute types as
> Essentia+Gaia/SVM - probably does, but I can't be sure.
> 
> 
> 
> MusicSimilarity just calls the music extractor, supplying a profile to
> tell Essentia what models to use. Essentia then outputs a response in
> JSON format (which MusicSimilarity optionally saves to disk). This JSON
> is then parsed and the attributes extracted.
yes, it's 1490/hour musli + essentia. I compiled your musly repo. As
some people here have experienced, I didn't have all the dependencies
installed when I ran it, so I didn't really investigate much and I just
recompiled it! Have been doing this since 1995 with slackware, and do
this for a living when I am bored :D 
Thanks for the explanations, I will try to get it running with
tensorflow and post here if I am successfull, just for the fun of
learning. Deep learning can do some incredible things, but it's a lot of
timely trial and errors.



ldarieut's Profile: http://forums.slimdevices.com/member.php?userid=21224
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread cpd73


ldarieut wrote: 
> Got this running on WSL2 in windows, at 1490 tracks/hour so far over the
> network with a freshly compiled musly.

Is that 1490 with just Musly? If so, that's slow - I used to get
~20k/hour with just Musly, and ~1100/hour with Musly+Essentia. Also, why
recompile Musly? And if you did please use my fork - simply becasue I
merged in some pull request from the Musly repo.

ldarieut wrote: 
> Anyway, I was reading about the tensorflow version of essentia, and thus
> I compiled the latest version with tensorflow support.

I've never actually got very far with Tensorflow. Looked into it, but
the models (AFAIR) are hundreds of megs. Just seemed overkill. Plus
Tensorflow, AFAIK, is slower - more accurate, but slower.

ldarieut wrote: 
> However, how am I supposed to use essentia-tensorflow in
> music-similarity? It doesn't look like I can just replace the binary
> essentia-extractor, as the tensorflow version doesn't seem to work that
> way, it looks like more of a python package. I haven't looked at
> LMS-essentia in details though.

First you will need to download the models you want to use. I'm not sure
if Essentia+Tensorflow produces the same attribute types as
Essentia+Gaia/SVM - probably does, but I can't be sure.

ldarieut wrote: 
> Can I have some pointers as to how essentia is used (technically) in
> music-similarity?

MusicSimilarity just calls the music extractor, supplying a profile to
tell Essentia what models to use. Essentia then outputs a response in
JSON format (which MusicSimilarity optionally saves to disk). This JSON
is then parsed and the attributes extracted.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread ldarieut


hello everyone.
Got this running on WSL2 in windows, at 1490 tracks/hour so far over the
network with a freshly compiled musly.
Anyway, I was reading about the tensorflow version of essentia, and thus
I compiled the latest version with tensorflow support.
However, how am I supposed to use essentia-tensorflow in
music-similarity? It doesn't look like I can just replace the binary
essentia-extractor, as the tensorflow version doesn't seem to work that
way, it looks like more of a python package. I haven't looked at
LMS-essentia in details though.
Can I have some pointers as to how essentia is used (technically) in
music-similarity?



ldarieut's Profile: http://forums.slimdevices.com/member.php?userid=21224
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread mruddo


Of course I rather foolishly forgot that having analysed these with
Essentia in Windows I'm lacking the high-level analysis that'll make
this work anyway! 

Hence, *"sqlite3.OperationalError: no such column: danceable"* when
starting the music-similarity up! :rolleyes:



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread cpd73


mruddo wrote: 
> I've had a go, but can't get the 2.9 branch of Material to run under
> Windows. I've downloaded the zip and installed the folder in the plugins
> directory, but trying to view the server with the Material skin just
> shows a white window. I can confirm from the legacy interface that the
> DEVELOPMENT plugin's installed, but it's not working for me I'm afraid.

Yeah, Material was broken if no plugins that used its extension feature
were loaded. Should be fixed now. You will also need a newer
music-similarity and lms-musicsimilarity

I changed the range sliders to yes/no/not-used options - seemed more
user friendly. Also, I have removed 'loudness'. I thought this was a
loud/quiet indicator - but its actually to do with dynamic range (a loud
track and quiet track could have same dynamic range).



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-25 Thread mruddo


cpd73 wrote: 
> Initial, semi-tested, version in master of lms-musicsimilarity:
> 
> Requires 2.9 branch of Material for user interface. Not sure if I really
> like the range sliders - I'm thinking 'Danceable' / 'Ignore' / 'Not
> danceable' might be simpler to use. with 'Danceable' being 70..100 and
> 'Not danceable' 0..30 ???

I've had a go, but can't get the 2.9 branch of Material to run under
Windows. I've downloaded the zip and installed the folder in the plugins
directory, but trying to view the server with the Material skin just
shows a white window. I can confirm from the legacy interface that the
DEVELOPMENT plugin's installed, but it's not working for me I'm afraid.



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-24 Thread cpd73


prabbit wrote: 
> 
> >   >   > 
  - happy: > 0.9
  - aggressive: 0.4 - 0.6
  - danceable: >0.75
  - electronic: >0.8
  - dark: >0.5
  > > > 

Initial, semi-tested, version in master of lms-musicsimilarity:

37026

Requires 2.9 branch of Material for user interface. Not sure if I really
like the range sliders - I'm thinking 'Danceable' / 'Ignore' / 'Not
danceable' might be simpler to use. with 'Danceable' being 70..100 and
'Not danceable' 0..30 ???


+---+
|Filename: smartmix.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37026|
+---+


*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-24 Thread cpd73


mruddo wrote: 
> I'm no expert, but I had problems at first with the database missing all
> the metadata... i.e. if I looked at the music-similarity.db file most of
> the meta fields were null - hence the line below leads me to suspect it
> could be a similar issue that you have:
> 
> > 
Code:

  >   > 
  > metadata:{"title": null, "artist": null, "album": null, "albumartist": 
null, "duration": null...
  > 

> > 
> 
> To quote @cpd76 on this, which resolved the issue for me...
> -If your meta-data is null then that's not good. If you pass "-m" when
> starting music-similarity for analysis it will re-read the metadata,
> and save to DB. This might hlep resolve your issue.-
> 
> (You can check the music-similarity.db contents fairly easily with
> sqlite3.)
> 
> Might be worth a try.

I -think- you are correct, and the missing metadata is the issue. I'll
see if there is an issue in the code that is causing this missing
metadata.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-24 Thread mruddo


I'm no expert, but I had problems at first with the database missing all
the metadata... i.e. if I looked at the music-similarity.db file most of
the fields were null - hence the line below leads me to suspect it could
be a similar issue that you have:


Code:


  metadata:{"title": null, "artist": null, "album": null, "albumartist": null, 
"duration": null...
  



To quote @cpd76 on this, which resolved the issue for me...
-If your meta-data is null then that's not good. If you pass "-m" when
starting music-similarity for analysis it will re-read the metadata, and
save to DB. This might hlep resolve your issue.-

Might be worth a try.



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-24 Thread bakker_be


Somehow this doesnt work for me :(
LMS log, MusicSimilarity plugin set to debug

Code:


  [22-01-24 09:11:48.0307] 
Slim::Plugin::DontStopTheMusic::Plugin::dontStopTheMusic (256) 0 songs 
remaining, songIndex = 0
  [22-01-24 09:11:48.0336] Plugins::MusicSimilarity::Plugin::_dstmMix (140) Get 
similar tracks
  [22-01-24 09:11:48.0341] 
Slim::Plugin::DontStopTheMusic::Plugin::getMixableProperties (383) Auto-mixing 
from random tracks in current playlist
  [22-01-24 09:11:48.0366] Plugins::MusicSimilarity::Plugin::_dstmMix (153) 
Seed /mnt/Music/Ultravox/Vienna/08-Vienna.mp3 id:84201
  [22-01-24 09:11:48.0369] Plugins::MusicSimilarity::Plugin::_getPreviousTracks 
(249) Get last 100 tracks
  [22-01-24 09:11:48.0371] Plugins::MusicSimilarity::Plugin::_dstmMix (168) Num 
tracks to previous: 1
  [22-01-24 09:11:48.0381] Plugins::MusicSimilarity::Plugin::_getMixData (319) 
Request 
{"norepalb":"50","previous":["file:///mnt/Music/Ultravox/Vienna/08-Vienna.mp3"],"filterxmas":"1","maxbpmdiff":"50","norepart":"50","maxloudnessdiff":"5","max":0,"genregroupadj":"5","nogenrematchadj":"5","shuffle":1,"attribweight":"50","filterkey":"1","format":"text","filterattrib":"1","filtergenre":0,"genregroups":null,"mpath":"/mnt/Music","min":"60","count":"5","track":["file:///mnt/Music/Ultravox/Vienna/08-Vienna.mp3"]}
  [22-01-24 09:12:03.0412] Plugins::MusicSimilarity::Plugin::__ANON__ (214) 
Failed to fetch URL: Timed out waiting for data
  [22-01-24 09:12:03.0415] Plugins::MusicSimilarity::Plugin::_mixFailed (239) 
Call through to LastMix
  [22-01-24 09:12:03.0422] 
Slim::Plugin::DontStopTheMusic::Plugin::getMixableProperties (383) Auto-mixing 
from random tracks in current playlist
  [22-01-24 09:14:16.0445] 
Slim::Plugin::DontStopTheMusic::Plugin::onPlaylistChange (200) Received command 
playlist newsong
  [22-01-24 09:14:16.0450] 
Slim::Plugin::DontStopTheMusic::Plugin::dontStopTheMusic (256) 4 songs 
remaining, songIndex = 1
  


Plugin Settings
37003
The log file is rather big, even zipped, so I can't upload it here, but
after going through the jukebox (120964 tracks) it tells me:

Code:


  2022-01-24 09:12:11 D similar_tracks: 0, filtered_tracks::meta: 1168, 
filtered_tracks::attribs: 107219
  2022-01-24 09:12:11 D Add some tracks from filtered_tracks::meta, 0/1168
  2022-01-24 09:12:11 D 
Path:file:///mnt/Music/Ultravox/So80s%20%28Soeighties%29%20Presents%20Ultravox/01-Vienna%20%28Full%20Length%20Version%29.flac
 0.037439
  2022-01-24 09:12:11 D 
Path:file:///mnt/Music/Various/Radio%2010%20Gold%20Top%204000%202010/126-Vienna.flac
 0.055199
  2022-01-24 09:12:11 I 192.168.3.17 - - [24/Jan/2022 09:12:11] "POST 
/api/similar HTTP/1.0" 200 -
  


The beginning of this request:

Code:


  2022-01-24 09:11:48 D Request: {"norepalb": "50", "previous": 
["file:///mnt/Music/Ultravox/Vienna/08-Vienna.mp3"], "filterxmas": "1", 
"maxbpmdiff": "50", "norepart": "50", "maxloudnessdiff": "5", "max": 0, 
"genregroupadj": "5", "nogenrematchadj": "5", "shuffle": 1, "attribweight": 
"50", "filterkey": "1", "format": "text", "filterattrib": "1", "filtergenre": 
0, "genregroups": null, "mpath": "/mnt/Music", "min": "60", "count": "5", 
"track": ["file:///mnt/Music/Ultravox/Vienna/08-Vienna.mp3"]}
  2022-01-24 09:11:48 D Genre cfg: {}
  2022-01-24 09:11:48 D Essentia(attrib) cfg: {"enabled": true, "highlevel": 
true, "bpm": 50, "loudness": 0.5, "filterkey": true, "filterattrib": true, 
"weight": 0.5}
  2022-01-24 09:11:48 D Music root: /mnt/Music/
  2022-01-24 09:11:48 D Duration:60 .. 0
  2022-01-24 09:11:48 D S TRACK file:///mnt/Music/Ultravox/Vienna/08-Vienna.mp3 
-> Ultravox/Vienna/08-Vienna.mp3
  2022-01-24 09:11:48 D Get 5 similar track(s) to 
Ultravox/Vienna/08-Vienna.mp3, index: 84593
  2022-01-24 09:11:48 D Seed 84593 metadata:{"title": null, "artist": null, 
"album": null, "albumartist": null, "duration": null, "ignore": false, "bpm": 
80, "loudness": 0.835304200649, "key": "FM", "danceable": 0.711841166019, 
"aggressive": 0.0161885768175, "electronic": 0.344792813063, "acoustic": 
0.302652150393, "happy": 0.441732168198, "party": 0.203869894147, "relaxed": 
0.778459489346, "sad": 0.42971727252, "dark": 0.0372868329287, "tonal": 
0.909387230873, "voice": 0.133486971259}
  2022-01-24 09:11:48 D I TRACK file:///mnt/Music/Ultravox/Vienna/08-Vienna.mp3 
-> Ultravox/Vienna/08-Vienna.mp3
  2022-01-24 09:11:48 D Seed genres: set()
  2022-01-24 09:11:48 D Get similar tracks to 84593 from Musly
  2022-01-24 09:11:49 D Get similar tracks to 84593 from Essentia
  2022-01-24 09:11:49 D Merge similarity scores
  2022-01-24 09:11:49 D FILTERED(artist) ID:84575 Path:Ultravox/So80s 
(Soeighties) Presents Ultravox/01-Vienna (Full Length Version).flac 
Similarity:0.037439 Meta:{"title": null, "artist": null, "album": null, 
"albumartist": null, "duration": null, "ignore": false, "bpm": 79, "loudness": 
0.900849699974, "key": "FM", "dancea

Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread cpd73

prabbit wrote: 
> 
> Imagine I want to query the music-similarity database for all songs with
> these values and produce a playlist—that was SmartMix and that's what I
> think the purpose of those values would or could be. 
> 
> >   >   > 
  - happy: > 0.9
  - aggressive: 0.4 - 0.6
  - danceable: >0.75
  - electronic: >0.8
  - dark: >0.5
  > > > 

I have -started- work on this. Very early stage, but if you are
interested you need to use the '5-smart-mixes' branch from your git
checkout of lms-musicsimilarity. (Not sure about the name 'Smart Mix'
will probably change). No way to create, edit, or delete these at the
moment. But the plugin will list all ".attrmix" (e.g. "Sad
songs.attrmix") files in LMS's playlists folder. You can then click on a
"smart mix" and the new API is called - creating a mix of tracks. The
file format is a key=value", with the keys detailed in
https://github.com/CDrummond/music-similarity/blob/master/docs/API.md
e.g.


Code:


  minbpm=30
  maxbpm=100
  danceable=52
  count=20
  genre=Pop;Dance
  



Note, 'Smart Mix' entry is shown under 'My Music' in Material but does
not work with Default skin. Also, LMS will query music-similarity at
start-up to see if Essentia is enabled - so its proably best if
music-similarity is running before LMS. The plugin does check every 15
seconds for up to 5 minutes to obtain the Essentia level - so should not
be required to already be started, but might help.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread prabbit


slartibartfast wrote: 
> Have you tried Craig's MusicIP mixer plugin? It also works with "Don't
> Stop the Music".

I haven't. I don't see what advantage it would offer over Spicefly
Sugarcube that I've been using for years, given that it would pull from
the same MusicIP database but has fewer options than Sugarcube,
especially TrackStat-related. I could see it potentially being
interesting for anyone who doesn't have or doesn't want to purchase a
Sugarcube license.



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread slartibartfast


prabbit wrote: 
> It's not fair to Essentia/Similarity for me to say my confidence is low.
> That was perhaps awkwardly written. What I meant was that my sample size
> (i.e., the number of mixes I have created) is not large enough for me to
> be confident in my confidence of Similarity/Essentia, if that makes
> sense. And since I don't have a musical ear, I couldn't tell you whether
> a song was written in B# or E♭ nor do I know exactly why sections
> of each song Essentia analyzed to create its own values so I could
> listen to that same section and score it myself (a task I, frankly, am
> not interested in completing). Currently, I have no reason to doubt the
> quality of the data in my database. I just don't have enough experience
> with it; ergo, my low confidence. I expect my confidence will rise with
> more experience, which will inform what values I choose to create mixes
> that I consider interesting. I consider this normal, since I am a new
> user and as a new user I just don't know how the system works or reacts
> when I pull various levers. It's not a critique of the system or the
> data; it's of me. When I run "Similar tracks" or "Create similarity mix"
> and then compare any individual result with the seed track by looking in
> the database, the high-level attributes are indeed similar, explaining
> to me why the song was selected. And in some ways that's exactly -why- I
> use Sugarcube or SmartMix and now Similarity. I want to hear songs near
> each other that I wouldn't otherwise have thought of.

Have you tried Craig's MusicIP mixer plugin? It also works with "Don't
Stop the Music".

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread prabbit


cpd73 wrote: 
> If your confidence in the Essentia scoring is so low, why use it? (I get
> the number is made up, but it does imply a very low confidence)

It's not fair to Essentia/Similarity for me to say my confidence is low.
That was perhaps awkwardly written. What I meant was that my sample size
(i.e., the number of mixes I have created) is not large enough for me to
be confident in my confidence of Similarity/Essentia, if that makes
sense. And since I don't have a musical ear, I couldn't tell you whether
a song was written in B# or E♭ nor do I know exactly why sections
of each song Essentia analyzed to create its own values so I could
listen to that same section and score it myself (a task I, frankly, am
not interested in completing). Currently, I have no reason to doubt the
quality of the data in my database. I just don't have enough experience
with it; ergo, my low confidence. I expect my confidence will rise with
more experience, which will inform what values I choose to create mixes
that I consider interesting. I consider this normal, since I am a new
user and as a new user I just don't know how the system works or reacts
when I pull various levers. It's not a critique of the system or the
data; it's of me. When I run "Similar tracks" or "Create similarity mix"
and then compare any individual result with the seed track by looking in
the database, the high-level attributes are indeed similar, explaining
to me why the song was selected. And in some ways that's exactly -why- I
use Sugarcube or SmartMix and now Similarity. I want to hear songs near
each other that I wouldn't otherwise have thought of.



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread cpd73


prabbit wrote: 
> Database looks clean to me. In fact, if you'd like a second,
> similarly-sized database to your own collection to use when testing, I
> can share mine with you. PM if interested.

You can't tell if Musly is OK by looking at the DB, its only after
creating the jukebox. But seeing as you are not using Musly, its a mute
point.
With regards to your DB, without the music I'd have no idea what to
expect.

prabbit wrote: 
> 
> Actually, I have been using the Similarity weight at 100, just to focus
> on the high-level attributes. I haven't played much with the Musly side
> of things. Still on my To Do list. I don't feel I have enough experience
> to write with any confidence about my experience, even the Heart example
> could have been circumstantial. In Essentia scoring, I would put my
> confidence around 0.08425123, give or take.

If your confidence in the Essentia scoring is so low, why use it? (I get
the number is made up, but it does imply a very low confidence)



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread prabbit

cpd73 wrote: 
> Have you tested your analysis results, as stated on the music-similarity
> github homepage? Musly does have a known issue where it assigns the same
> similarity to all songs. If everything is OK with that, perhaps set all
> the filters to 0, so that just Musly is used.
Database looks clean to me. In fact, if you'd like a second,
similarly-sized database to your own collection to use when testing, I
can share mine with you. PM if interested.

cpd73 wrote: 
> Seeing as you have analysed your tracks with Essentia high-level, you
> could try setting 'Similarity weighting' to 100. This will cause only
> Essentia to be used. The similarity score is the calculated on how close
> each track is to the seed track's Essentia high-level attributes. Would
> be interesting to see if you see an improvement there. Or even try at
> 50, so that both are used, etc?

Actually, I have been using the Similarity weight at 100, just to focus
on the high-level attributes. I haven't played much with the Musly side
of things. Still on my To Do list. I don't feel I have enough experience
to write with any confidence about my experience, even the Heart example
could have been circumstantial. In Essentia scoring, I would put my
confidence around 0.08425123, give or take. (Aside for any
German-speaking readers, has anyone else noticed the loose connection
between Musly and Müsli, the breakfast cereal made of oats, grains,
fruits, and nuts? I couldn't find any link from the Musly creator, D.
Schnitzer, describing such a connection, but it does seem inevitable, or
a happy coincidence at the very least.)



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread cpd73


prabbit wrote: 
> While it's perhaps to be expected, I've found that using the same seed
> song over and over plays the same group of songs (albeit in different
> orders), including songs I have rated low and would prefer not to hear
> too often, than occurs with Spicefly Sugarcube/MusicIP. This is true
> even though the playlist runs for hours. Sugarcube has a setting to
> exclude tracks below a certain rating, which "protects" me from hearing
> these lowly-rated tracks. My experience with Sugarcube using the same
> seed song repeatedly is different, in that it produces a wider range of
> playlists. I'm still playing with Similarity's settings, which is the
> genesis of my question.

Yeah, I agree the randomness of selected tracks could do with improving
- especially if there is only one seed track. I must admit I tend to
have DSTM kick in after playing an album.

prabbit wrote: 
> Curiously, Heart thus far seems to be the (Six Degrees of) Kevin Bacon
> in my collection. I used Stevie Wonder's -Superstition- as a seed track
> and soon enough got to Heart. Used Iron Maiden's -Can I Play with
> Madness?- and shortly thereafter heard Heart. And I played some other
> seed song from the 2000s and landed on Heart within a dozen tracks. This
> is anecdotally interesting because I don't have that many Heart songs in
> my collection.

Odd, I have Heart songs - but when I choose 'Can I Play With Madness', I
don't see Heart being selected. However, different library, etc. Have
you tested your analysis results, as stated on the music-similarity
github homepage? Musly does have a known issue where it assigns the same
similarity to all songs. If everything is OK with that, perhaps set all
the filters to 0, so that just Musly is used.

Seeing as you have analysed your tracks with Essentia high-level, you
could try setting 'Similarity weighting' to 100. This will cause only
Essentia to be used. The similarity score is the calculated on how close
each track is to the seed track's Essentia high-level attributes. Would
be interesting to see if you see an improvement there. Or even try at
50, so that both are used, etc?



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread mruddo


prabbit wrote: 
> Out of curiosity, what are values for your settings?

I did play with them initially, then think I put them back to the
defaults... I have:


Code:

Don't repeat artist for x tracks: 15
  Don't repeat album for x tracks: 25
  Don't repeat track for x tracks: 100
  Min/Max Duration: 0
  Number of mixer tracks: 5
  Restrict Genres: No



prabbit wrote: 
> 
> While it's perhaps to be expected, I've found that using the same seed
> song over and over plays the same group of songs (albeit in different
> orders), including songs I have rated low and would prefer not to hear
> too often, than occurs with Spicefly Sugarcube/MusicIP. This is true
> even though the playlist runs for hours. Sugarcube has a setting to
> exclude tracks below a certain rating, which "protects" me from hearing
> these lowly-rated tracks. My experience with Sugarcube using the same
> seed song repeatedly is different, in that it produces a wider range of
> playlists. I'm still playing with Similarity's settings, which is the
> genesis of my question.
> 
> Curiously, Heart thus far seems to be the (Six Degrees of) Kevin Bacon
> in my collection. I used Stevie Wonder's -Superstition- as a seed track
> and soon enough got to Heart. Used Iron Maiden's -Can I Play with
> Madness?- and shortly thereafter heard Heart. And I played some other
> seed song from the 2000s and landed on Heart within a dozen tracks. This
> is anecdotally interesting because I don't have that many Heart songs in
> my collection.

I've never used ratings on tracks - although I can see why many do, and
it's something I've often considered.

I'm probably using it differently though, as I tend to think of a seed
track, see where that takes me... then often listen to an album I've not
heard recently that comes up... then seed from there etc. I do get what
you're saying about frequently re-occuring items though. For me it seems
to be Sting (I have one compilation, that's all), but I'm often seeing
that appear in the playlist.

However, when I compare the mixes to LastMix, where whatever I'd started
with, that always seemed to tend towards a ninties-indie mix (not least
because I have a reasonable number of such albums in my collection)...
With Music Similarlty, the mixes tend to head off in different
directions which I'm far more appreciative of.

I only have the one Stevie Wonder album (and no -Superstition-), and not
a single Heart track... so I can't test to see if there's any in-built
bias at play! ;)



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread prabbit


mruddo wrote: 
> I've been listening to MS DSTM mixes for a couple of weeks now, and I'm
> still enjoying the varied journey through some long since heard tracks
> in my library. No issues to report either. :)

Out of curiosity, what are values for your settings?

- - - -

While it's perhaps to be expected, I've found that using the same seed
song over and over plays the same group of songs (albeit in different
orders), including songs I have rated low and would prefer not to hear
too often, than occurs with Spicefly Sugarcube/MusicIP. This is true
even though the playlist runs for hours. Sugarcube has a setting to
exclude tracks below a certain rating, which "protects" me from hearing
these lowly-rated tracks. My experience with Sugarcube using the same
seed song repeatedly is different, in that it produces a wider range of
playlists. I'm still playing with Similarity's settings, which is the
genesis of my question.

Curiously, Heart thus far seems to be the (Six Degrees of) Kevin Bacon
in my collection. I used Stevie Wonder's -Superstition- as a seed track
and soon enough got to Heart. Used Iron Maiden's -Can I Play with
Madness?- and shortly thereafter heard Heart. And I played some other
seed song from the 2000s and landed on Heart within a dozen tracks. This
is anecdotally interesting because I don't have that many Heart songs in
my collection.



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread mruddo


cpd73 wrote: 
> Thinking about this some more. Would it make sense to allow creation of
> 'Smart Mixes' that will select a number of tracks, allow this to be
> added to the queue, and then DSTM takes over adding new tracks. DSTM,
> however, would not know about the SmartMix, just that these would be the
> initial songs to create mixes from. If so creating another API that
> returns X songs based upon some attributes should be doable. It then
> requires the plugin to implement a JSONRPC and the creation of a UI to
> create these mixes. Obviously for me the UI would be created in
> Material. I know SlimBrowse would allow some sort of UI creation for
> this, but that's beyond my knowledge level at the mo - and as I -only-
> use Material it's not of major importance to me.
> 
> e.g. I would add a 'Smart Mixes' (or similar) entry to 'My Music' to
> list current mixes, allow editing, etc. The edit dialog would allow you
> to specify which attributes to use, number of tracks, and (perhaps)
> order of tracks (closest to attributes, random, etc.)

This sounds good to me. You could then use these Smart Mixes
with/without DSTM taking over on completion.

I've been listening to MS DSTM mixes for a couple of weeks now, and I'm
still enjoying the varied journey through some long since heard tracks
in my library. No issues to report either. :)



mruddo's Profile: http://forums.slimdevices.com/member.php?userid=65325
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-21 Thread Roland0


prabbit wrote: 
> If I could figure out how to take my existing high-level Essentia JSON
> analysis files and have them re-processed by a Windows-based or
> Ubuntu-on-Windows-built tool, then I'd probably be able to proceed.
> 
LMS Essentia analysis/upload should run on any Linux system, so 
Ubuntu-on-Windows should work (using the "Gaia/SVM" variant as described
on the homepage)
Re-using the  existing high-level Essentia JSONs should be possible,
with one provision: LMS Essentia  adds the file's path (as used by LMS)
to the JSON (as metadata.tags.file_path), so the existing JSONs would
have to be modified before uploading them to LMS Essentia's database.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Text
Interface | Playlist Editor / Generator | Music Classification | Similar
Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer |
Image Enhancer | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-19 Thread prabbit

Roland0 wrote: 
> You can basically do this with 'LMS Essentia'
> (https://www.nexus0.net/pub/sw/lmsessentia/) (using either extgui4lms or
> the LMS Playlist Editor as a frontend)
> 
> if you are interested in some background info regarding
> musly/essentia/similarity, see 'this thread'
> (https://forums.slimdevices.com/showthread.php?113483-Similarity-(Essentia)-DSTM-mixer-call-for-help)


I tried to install your plugins and was successful with some of them,
but others require either systems, knowledge, or skills that I don't
have at the moment. I remember using extgui4lms many years ago when it
was still very new. No doubt your contributions have been important and
valuable, because they helped Craig with his Similarity project. If I
could figure out how to take my existing high-level Essentia JSON
analysis files and have them re-processed by a Windows-based or
Ubuntu-on-Windows-built tool, then I'd probably be able to proceed.

cpd73 wrote: 
> Thinking about this some more. Would it make sense to allow creation of
> 'Smart Mixes' that will select a number of tracks, allow this to be
> added to the queue, and then DSTM takes over adding new tracks. DSTM,
> however, would not know about the SmartMix, just that these would be the
> initial songs to create mixes from. If so creating another API that
> returns X songs based upon some attributes should be doable. It then
> requires the plugin to implement a JSONRPC and the creation of a UI to
> create these mixes. Obviously for me the UI would be created in
> Material. I know SlimBrowse would allow some sort of UI creation for
> this, but that's beyond my knowledge level at the mo - and as I -only-
> use Material it's not of major importance to me.
> 
> e.g. I would add a 'Smart Mixes' (or similar) entry to 'My Music' to
> list current mixes, allow editing, etc. The edit dialog would allow you
> to specify which attributes to use, number of tracks, and (perhaps)
> order of tracks (closest to attributes, random, etc.)

This makes sense to me: Mood Mixes. 

I also only use Material (in Chrome, Material app on Android, in SLX on
Windows).

It seems straightforward enough to build the API and UI to expose all
low- and high-level attributes in the music-similarity.db file; that is,
if one knows how to do these sorts of things. 
Ask users to adjust sliders to produce a range for each attribute, along
with some onscreen hints that each attribute indicates the strength of
the -probability- the song matches that attribute type. 
Gather all responses, pass those to the database, return a result.
(Maybe 'maximum number of files to return' is also an attribute to pass
so you're not returning thousands of entries, or if you do it's because
the user specifically requested it.) 
The result could be a new playlist. I'd likely almost always choose
'random', but others may want them played in some order — of course,
what order is unknown because no attribute would be weighted more than
others, so there'd be no way to rank them. Unless, that too, was
something that was requested: rank by [ordered list of attributes]. 
For the UI, I'd convert the attribute values to 0 to 100 rather than 0
to 1, since most humans understand that easier than 0 to 1. If a user
doesn't want to filter on an attribute they should allow all values by
having the slider range extend from 0 to 100 — the default position.
Behind the scenes I would also only use the hundredths position (e.g.,
0.91) and no further (e.g., 0.9152377), although rounding to 0.92 would
be expected here. I wouldn't expect rounding to the hundredths position
would materially (no pun intended) affect the mix.

After the playlist runs out, it seems reasonable that DTSM would kick in
using whatever rules are set for DTSM.



prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-19 Thread cpd73


prabbit wrote: 
> If 1000 tracks are selected to build the model music style database and
> then the 4 highest or lowest are used to filter based on a comparison to
> the seed track, I wonder if we're running into a sampling bias

The "4" that I referred to was not tracks, but attributes. As in I find
the 4 strongest Essentia attributes a track has (so attributes >=0.8 or
<=0.2) and then filter tracks against those. What my script does is:


Code:


  for each seed track (the LMS plugin sends a maximum of 5)
  get 5000 most similar tracks for Musly
  for each of these similar tracks
  filter out based on meta-data - to stop repeated titles, artists, etc.
  check BPM of candidate track against seed track
  check key of candidate track against seed track
  check loundness of candidate track against seed track
  for each of the 4 strongest Essentia attributes of seed track
  check candidate track's attribute aginst seed track
  stop when we have enough matching tracks for this seed
  
  randomise selected tracks
  return required amount of tracks
  



...there's more to it than that, but that is the basic idea of the
filtering.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-19 Thread cpd73

prabbit wrote: 
> 
> Imagine I want to query the music-similarity database for all songs with
> these values and produce a playlist—that was SmartMix and that's what I
> think the purpose of those values would or could be. 
> 
> >   >   > 
  - happy: > 0.9
  - aggressive: 0.4 - 0.6
  - danceable: >0.75
  - electronic: >0.8
  - dark: >0.5
  > > > 
> 
> That criteria in my music collection finds 124 songs. I'd like to put
> -that- on play.

Thinking about this some more. Would it make sense to allow creation of
'Smart Mixes' that will select a number of tracks, allow this to be
added to the queue, and then DSTM takes over adding new tracks. DSTM,
however, would not know about the SmartMix, just that these would be the
initial songs to create mixes from. If so creating another API that
returns X songs based upon some attributes should be doable. It then
requires the plugin to implement a JSONRPC and the creation of a UI to
create these mixes. Obviously for me the UI would be created in
Material. I know SlimBrowse would allow some sort of UI creation for
this, but that's beyond my knowledge level at the mo - and as I -only-
use Material it's not of major importance to me.

e.g. I would add a 'Smart Mixes' (or similar) entry to 'My Music' to
list current mixes, allow editing, etc. The edit dialog would allow you
to specify which attributes to use, number of tracks, and (perhaps)
order of tracks (closest to attributes, random, etc.)



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-18 Thread bakker_be


cpd73 wrote: 
> Try:
> 
> > 
Code:

  >   > 
  > ./music-similarity.py -l DEBUG 2>&1 | tee musicsimilarity.log
  > 

> > 
> 
> '2>&1' ensures standard-error messages are placed on the same output
> as standard-output. '|' pipes the output of the left hand side to the
> right hand side. 'tee' takes this and shows on terminal and places
> into 'musicsimilarity.log'
That did the trick! Thanks, "tee" is now stored in tips & tricks toolbox
:)



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...

bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-17 Thread Roland0

prabbit wrote: 
> 
> It was a fantastic tool that allowed us to create mixes based on a
> variety of attributes — just like the ones in the music-similarity
> database. It had slider bars that allowed us to set a range for various
> attributes and then build a playlist from the tracks that met that
> criteria. 
> 
> Imagine I want to query the music-similarity database for all songs with
> these values and produce a playlist—that was SmartMix and that's what I
> think the purpose of those values would or could be. 
> 
> >   >   > 
  - happy: > 0.9
  - aggressive: 0.4 - 0.6
  - danceable: >0.75
  - electronic: >0.8
  - dark: >0.5
  > > > 
> 
> 
You can basically do this with 'LMS Essentia'
(https://www.nexus0.net/pub/sw/lmsessentia/) (using either extgui4lms or
the LMS Playlist Editor as a frontend)

if you are interested in some background info regarding
musly/essentia/similarity, see 'this thread'
(https://forums.slimdevices.com/showthread.php?113483-Similarity-(Essentia)-DSTM-mixer-call-for-help)



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Text
Interface | Playlist Editor / Generator | Music Classification | Similar
Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer |
Image Enhancer | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-17 Thread jd68


Code:

 cmd > filename

 will redirect only the standard output to the file "filename" but not
the errors.

To collect both you have to use

Code:

 cmd > filename 2>&1


But I suggest to use 

Code:

cmd | tee -a filename


That way you will see all output (standard and error) on the terminal
and it will be written into the file "filename".



jd68's Profile: http://forums.slimdevices.com/member.php?userid=30795
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-17 Thread cpd73


bakker_be wrote: 
> Try as I might, I can't seem to redirect the DEBUG output to a file.
> AFAIK "./music-similarity.py -l DEBUG > musicsimilarity.log" should send
> all output to the musicsimilarity.log file. It does create the file, but
> all other output remains in the terminal window :( 

Try:


Code:


  ./music-similarity.py -l DEBUG 2>&1 | tee musicsimilarity.log
  



'2>&1' ensures standard-error messages are placed on the same output as
standard-output. '|' pipes the output of the left hand side to the right
hand side. 'tee' takes this and shows on terminal and places into
'musicsimilarity.log'



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] [Announce] Music Similarity DSTM mixer

2022-01-17 Thread cpd73


prabbit wrote: 
> Understood, completely. It's your tool for your use case that you've
> chosen to freely share. I was commenting on what I saw after I took a
> peek behind the curtains and started to understand how things were
> connected. I don't currently have the skills to fork what you've done
> thus far to extend Similarity into SmartMix 2.0. But maybe someone else
> does or maybe you do, if the idea of creating playlists or influencing
> playlists based off of specific Musly/Essentia metadata is interesting
> or exciting. And if not, no complaints here. This is
> freeware/donation-ware, and I accept everything that comes with such a
> plugin.

I'm more than happy to add such functionality, or have others submit
pull requests, etc, to implement this. Just that its not the current
focus. I love the DSTM feature, its how I mainly listen to my music now
- lpay 1 track, or album, and let LMS continue to add more tracks based
on that.

prabbit wrote: 
> I'm not a math(s) major

Me neither! I really am just making this up as I go along!

prabbit wrote: 
> 
> I've also only had an intro to statistics course at university. If 1000
> tracks are selected to build the model music style database and then the
> 4 highest or lowest are used to filter based on a comparison to the seed
> track, I wonder if we're running into a sampling bias (or some other
> statistical bias). The 1000 tracks get further split into genres/genre
> groups based on relative percentage to the existing catalog and that
> affects the model. I do understand Similarity is pulling from the entire
> music collection when selecting a song to play and not just the 1000
> model tracks. Like you, I only use local files; I do not use any
> streaming services.

I know nothing about statistics, or indeed how Musly does its similarity
or how Essentia matches against models, etc. I'm just trying to put bits
together! My initial thinking was that Musly is pretty good at getting
similar tracks, so then adding filtering by BPM, Key, etc. would help
improve even more.

prabbit wrote: 
> Right now Similarity is a bit of a black box to me and it's not clear
> how much of an effect any one lever/setting has on a mix, so I've chosen
> to disable most settings and start fairly wide open. Next, I may go to
> the opposite extreme and use a very narrow range of setting values. As I
> get a sense for what's happening, I'll know where to go to make
> adjustments.

I agree, hence the initial post asking for best default settings, etc.

prabbit wrote: 
> I do fully understand that and appreciate the distinction. The closer to
> 0 a value, the less likely it is that type; the closer to 1 the more
> likely it is. The intro to statistics course taught me that much. I do
> admit that I don't recall everything from the class though. :)

Sorry, I didn't mean to sound condescending. You probably know more
about the theory of this than I :)



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=115609

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


  1   2   >