PDA

View Full Version : Filters in MusicIP



slartibartfast
2017-12-13, 09:52
I have a filter set up which covers all the genres I want MusicIP to use when generating mixes. If I choose a seed track from one of the genres listed in the filter then the mix contains tracks from the required genres. I would expect that generating mixes from tracks with genres not specified in the filter would not be allowed but it is and a mix generated from one of these genres produces a mix of songs from only the genres outside the filter.
I don't really understand how filters work in MusicIP but I wasn't expecting that. Does anyone have any further insight into why this is happening?

Sent from my SM-G900F using Tapatalk

bakker_be
2017-12-13, 13:36
I've never tried this specifically, but to me it seems logical: MusicIP has no control whatsoever over what you choose as your seed and instead it does what you ask it to: generate a mix that's acoustically correct for the seed, choosing from it's filtered scope.

slartibartfast
2017-12-13, 13:49
I've never tried this specifically, but to me it seems logical: MusicIP has no control whatsoever over what you choose as your seed and instead it does what you ask it to: generate a mix that's acoustically correct for the seed, choosing from it's filtered scope.

But when I choose a seed track from outside the filter genres the returned tracks are also outside the filter genres and the filter is being ignored.

Sent from my SM-G900F using Tapatalk

bakker_be
2017-12-13, 13:53
Hmmm ... Are you using Spicefly Sugarcube or the "native" MusicIP implementation? Where did you create the filters? In the MusicIP Mixer application?

slartibartfast
2017-12-13, 14:39
Hmmm ... Are you using Spicefly Sugarcube or the "native" MusicIP implementation? Where did you create the filters? In the MusicIP Mixer application?I'm using the native MusicIP and I created the filters in MusicIP Mixer. LMS can see the filter in the plugin settings.
I am running a headless server on a Raspberry Pi and created the filter by opening the default.m3lib file on my Windows machine.


Sent from my SM-G900F using Tapatalk

slartibartfast
2017-12-13, 15:26
Hmmm ... Are you using Spicefly Sugarcube or the "native" MusicIP implementation? Where did you create the filters? In the MusicIP Mixer application?

This is interesting, I see this in the server log

[17-12-13 22:19:25.6735] Slim::Plugin::MusicMagic::Common::__ANON__ (85) Failed fetching filters from MusicIP
[17-12-13 22:21:40.0497] Slim::Plugin::MusicMagic::Plugin::getMix (893) No mix returned with filter involved - we might want to try without it

slartibartfast
2017-12-13, 16:18
This is interesting, I see this in the server log

[17-12-13 22:19:25.6735] Slim::Plugin::MusicMagic::Common::__ANON__ (85) Failed fetching filters from MusicIP
[17-12-13 22:21:40.0497] Slim::Plugin::MusicMagic::Plugin::getMix (893) No mix returned with filter involved - we might want to try without it

More info from debug logging. It suggests that a mix cannot be returned using the filter parameters but since the filter allows all genres apart from things like "Christmas" and "Live" that seems unlikely. The same filter works in MusicIP Mixer where the available tracks are visible.


[17-12-13 23:07:33.5684] Slim::Plugin::MusicMagic::Common::_gotFilters (117) Found filters:
[17-12-13 23:07:33.5697] Slim::Plugin::MusicMagic::Common::_gotFilters (121) Filter 1
[17-12-13 23:07:33.5709] Slim::Plugin::MusicMagic::Common::_gotFilters (121) General
[17-12-13 23:07:54.7610] Slim::Plugin::MusicMagic::Plugin::_cacheidOK (505) Read cacheid of 1513108790
[17-12-13 23:07:54.7754] Slim::Plugin::MusicMagic::Plugin::_statusOK (425) Read status idle
[17-12-13 23:08:13.5964] Slim::Plugin::MusicMagic::Plugin::getMix (856) Filter General in use.
[17-12-13 23:08:13.5978] Slim::Plugin::MusicMagic::Plugin::getMix (870) Creating mix for: song using: /media/usb0/MyMusic/Aztec Camera/Love/05 Aztec Camera - Somewhere in My Heart.flac as seed.
[17-12-13 23:08:13.5996] Slim::Plugin::MusicMagic::Plugin::getMix (881) Request http://localhost:10002/api/mix?song=%2Fmedia%2Fusb0%2FMyMusic%2FAztec%20Camer a%2FLove%2F05%20Aztec%20Camera%20-%20Somewhere%20in%20My%20Heart.flac&size=30&filter=General&sizetype=tracks&mixgenre=0&rejectsize=12&style=100&variety=3
[17-12-13 23:08:18.6144] Slim::Plugin::MusicMagic::Plugin::getMix (893) No mix returned with filter involved - we might want to try without it
[17-12-13 23:08:22.8475] Slim::Plugin::MusicMagic::Common::_gotFilters (117) Found filters:
[17-12-13 23:08:22.8482] Slim::Plugin::MusicMagic::Common::_gotFilters (121) Filter 1
[17-12-13 23:08:22.8488] Slim::Plugin::MusicMagic::Common::_gotFilters (121) General
[17-12-13 23:09:54.7695] Slim::Plugin::MusicMagic::Plugin::_cacheidOK (505) Read cacheid of 1513108790
[17-12-13 23:09:54.7837] Slim::Plugin::MusicMagic::Plugin::_statusOK (425) Read status idle

bakker_be
2017-12-14, 02:25
I've never used the native implementation, nor do I use the MusicIP Mixer since switching my whole LMS infrastructure to an Ubuntu server, but I seem to recall that you need to have the same version on both the Windows and Linux side, so you'd need 1.8 on windows, as there's no ulterior version for Linux (https://www.spicefly.com/article.php?page=musicip-software).
You are running MusicIP on the LMS machine right?

slartibartfast
2017-12-14, 02:38
I've never used the native implementation, nor do I use the MusicIP Mixer since switching my whole LMS infrastructure to an Ubuntu server, but I seem to recall that you need to have the same version on both the Windows and Linux side, so you'd need 1.8 on windows, as there's no ulterior version for Linux (https://www.spicefly.com/article.php?page=musicip-software).
You are running MusicIP on the LMS machine right?Yes. Version 1.8 on both machines. I had never used filters before I just relied on not analysing genres I did not want to appear in mixes. I then found that LMS spent a massive amount of time trying to import the unanalysed tracks every time I ran a "new and changed" scan so I analysed them all and that led to using filters. I have no idea if filters work properly in the native MusicIP plugin on other platforms.

Sent from my SM-G900F using Tapatalk

slartibartfast
2017-12-14, 08:13
I've never used the native implementation, nor do I use the MusicIP Mixer since switching my whole LMS infrastructure to an Ubuntu server, but I seem to recall that you need to have the same version on both the Windows and Linux side, so you'd need 1.8 on windows, as there's no ulterior version for Linux (https://www.spicefly.com/article.php?page=musicip-software).
You are running MusicIP on the LMS machine right?If I enter

192.168.0.10:10002/api/mix?filter=General

in Firefox I get a mix that obeys the filter with the name General. So MusicIP is working but the LMS plugin seems to have issues.

Sent from my SM-G900F using Tapatalk

bakker_be
2017-12-14, 10:35
If I enter

192.168.0.10:10002/api/mix?filter=General

in Firefox I get a mix that obeys the filter with the name General. So MusicIP is working but the LMS plugin seems to have issues.

Sent from my SM-G900F using Tapatalk

Have you tried adding one of the "wrong" seed songs? If I do "http://up-server:10002/api/Mix?filter=Metal&song=/mnt/music/Frank%20Sinatra/Frank%20Sinatra/00-A%20Kiss%20Is%20Just%20A%20Kiss.mp3&size=12" this is the result:


/mnt/music/Blind Guardian/Nightfall in Middle Earth/19-Out On the Water.mp3
/mnt/music/Rage/Full Moon in St. Petersburg/14-Suite lingua mortis- Black.mp3
/mnt/music/Manowar/Thunder in the Sky/04-Mon Pčre (Father, French version).mp3
/mnt/music/Avantasia/The Metal Opera/01-Prelude.mp3
/mnt/music/Savatage/Streets- A Rock Opera (Narrated Version)/27-Heal My Soul.flac
/mnt/music/Judas Priest/Nostradamus (Deluxe Edition)/08-Calm Before The Storm.mp3
/mnt/music/Rammstein/Völkerball (Limited Edition)/11-Outro.flac
/mnt/music/ReVamp/ReVamp/13-I Lost Myself.mp3
/mnt/music/Drudkh/Вічний Оберт Колеса (Eternal Turn Of The Wheel)/01-Вічне Коло.flac
/mnt/music/Rhapsody/Symphony Of Enchanted Lands/04-Heroes of the Lost Valley.flac
/mnt/music/Brainstorm/Ambiguity/08-Far Away.mp3
/mnt/music/Witherscape/The Inheritance/09-The Inheritance.mp3

Without "filter=Metal" I get the following:


/mnt/music/Frank Sinatra/Frank Sinatra/00-As Time Goes By.mp3
/mnt/music/Ella Fitzgerald/Ella Fitzgerald Sings the George and Ira Gershwin Songbook/23-Somebody From Somewhere.flac
/mnt/music/Spacemen 3/Playing With Fire (1996 UK Expanded Issue)/09-Lord Can You Hear Me .flac
/mnt/music/Randy Newman/Good Old Boys/03-Marie.flac
/mnt/music/Billie Holiday/Lady In Satin (1994 Issue)/01-I'm a Fool to Want You.flac
/mnt/music/Elvis Costello/Brutal Youth/15-Favourite Hour.flac
/mnt/music/The Nits/Work/03-Hobbyland.flac
/mnt/music/Kenny Rogers and Dolly Parton/Once Upon a Christmas/05-White Christmas.mp3
/mnt/music/Simon & Garfunkel/Bridge Over Troubled Water (2001 Remaster)/13-Bridge Over Troubled Water (Previously Unreleased).flac
/mnt/music/Joni Mitchell/Court And Spark/07-Down To You.flac
/mnt/music/Eva Cassidy/The Best of Eva Cassidy/13-Over the Rainbow.flac
/mnt/music/Neil Young/Storytone (Deluxe Edition)/04-Glimmer (orchestral).flac

slartibartfast
2017-12-14, 14:33
Have you tried adding one of the "wrong" seed songs? If I do "http://up-server:10002/api/Mix?filter=Metal&song=/mnt/music/Frank%20Sinatra/Frank%20Sinatra/00-A%20Kiss%20Is%20Just%20A%20Kiss.mp3&size=12" this is the result:


/mnt/music/Blind Guardian/Nightfall in Middle Earth/19-Out On the Water.mp3
/mnt/music/Rage/Full Moon in St. Petersburg/14-Suite lingua mortis- Black.mp3
/mnt/music/Manowar/Thunder in the Sky/04-Mon Pčre (Father, French version).mp3
/mnt/music/Avantasia/The Metal Opera/01-Prelude.mp3
/mnt/music/Savatage/Streets- A Rock Opera (Narrated Version)/27-Heal My Soul.flac
/mnt/music/Judas Priest/Nostradamus (Deluxe Edition)/08-Calm Before The Storm.mp3
/mnt/music/Rammstein/Völkerball (Limited Edition)/11-Outro.flac
/mnt/music/ReVamp/ReVamp/13-I Lost Myself.mp3
/mnt/music/Drudkh/Вічний Оберт Колеса (Eternal Turn Of The Wheel)/01-Вічне Коло.flac
/mnt/music/Rhapsody/Symphony Of Enchanted Lands/04-Heroes of the Lost Valley.flac
/mnt/music/Brainstorm/Ambiguity/08-Far Away.mp3
/mnt/music/Witherscape/The Inheritance/09-The Inheritance.mp3

Without "filter=Metal" I get the following:


/mnt/music/Frank Sinatra/Frank Sinatra/00-As Time Goes By.mp3
/mnt/music/Ella Fitzgerald/Ella Fitzgerald Sings the George and Ira Gershwin Songbook/23-Somebody From Somewhere.flac
/mnt/music/Spacemen 3/Playing With Fire (1996 UK Expanded Issue)/09-Lord Can You Hear Me .flac
/mnt/music/Randy Newman/Good Old Boys/03-Marie.flac
/mnt/music/Billie Holiday/Lady In Satin (1994 Issue)/01-I'm a Fool to Want You.flac
/mnt/music/Elvis Costello/Brutal Youth/15-Favourite Hour.flac
/mnt/music/The Nits/Work/03-Hobbyland.flac
/mnt/music/Kenny Rogers and Dolly Parton/Once Upon a Christmas/05-White Christmas.mp3
/mnt/music/Simon & Garfunkel/Bridge Over Troubled Water (2001 Remaster)/13-Bridge Over Troubled Water (Previously Unreleased).flac
/mnt/music/Joni Mitchell/Court And Spark/07-Down To You.flac
/mnt/music/Eva Cassidy/The Best of Eva Cassidy/13-Over the Rainbow.flac
/mnt/music/Neil Young/Storytone (Deluxe Edition)/04-Glimmer (orchestral).flac
Is your filter only one genre? Mine has ten in one filter (filter 1) and the General filter adds three more to filter 1. I wonder if the LMS plugin times out before processing the filter. I will try with a single genre filter and see what happens.

Sent from my SM-G900F using Tapatalk

bakker_be
2017-12-15, 00:36
Is your filter only one genre? Mine has ten in one filter (filter 1) and the General filter adds three more to filter 1. I wonder if the LMS plugin times out before processing the filter. I will try with a single genre filter and see what happens.

Sent from my SM-G900F using Tapatalk

I have no "filters" as such, but the HTTP api allows for setting a genre as ad hoc filter. Just trying to see if your installation behaves the same way. I've been using Spicefly SugarCube since the start and it takes a slightly different approach to the filtering issues. On top of the MusicIP filters you can define up to 3 genres as well as up to 3 artists you never want to include in the mix. To me these last two options have always been enough and worked flawlessly, as the only things I don't want to hear when I play in this way are easily covered. In a casual listening mix I dont want to hear:

Genre: Demo. Some albums containing test tones and related stuff
Genre: Classical. This calls for dedicated listening to me
Genre: Christmas
Artist: Glee Cast. No explanation needed I think :p

slartibartfast
2017-12-15, 07:49
I have no "filters" as such, but the HTTP api allows for setting a genre as ad hoc filter. Just trying to see if your installation behaves the same way. I've been using Spicefly SugarCube since the start and it takes a slightly different approach to the filtering issues. On top of the MusicIP filters you can define up to 3 genres as well as up to 3 artists you never want to include in the mix. To me these last two options have always been enough and worked flawlessly, as the only things I don't want to hear when I play in this way are easily covered. In a casual listening mix I dont want to hear:

Genre: Demo. Some albums containing test tones and related stuff
Genre: Classical. This calls for dedicated listening to me
Genre: Christmas
Artist: Glee Cast. No explanation needed I think [emoji14]
I got it working by using fewer genres in the filter which cover most of the tracks I wanted to include.

Sent from my SM-G900F using Tapatalk