jukebox mode = smart shuffle and track rating/last played

Help each other out

jukebox mode = smart shuffle and track rating/last played

Postby S Pittaway on Mon Jun 12, 2006 10:33 am

Hi,

Firstly i have to say that i am wank at explaing/discribing sutff so this post probably sounds like giberish, i alsoi canyt speal at all... so applologies for that to :)



I have been concentrating on getting the music side of my xlobby install sorted out, now i only have one big thing left to do...


I want a nice jukebox mode, which does the following-

1) build up a random playlist of all tracks

2) have the option of rating individual tracks as i lsiten to them and then factoring the rating into the shuffle - favourate tracks first.

3) whenever a track is played i want to add/update a lastplayed tag, this can then also be factored into the playback (least played first) - i have 8/9000 tracks yet shuffle as an uncanny nack of playing the same tracks for me! :)


Is anyone doing anything like this?


I always find it easiest to write a plugin whenever i want to do something in xlobby (i probly dont know the easy ways of doing them), but i think i will need get c# out again to do the following-

i need to know when the current song changes so i can set the last played track?

jump to currently playing album in the musc database, then add a lastplayed tag to the musicdetails entry, then jump back to wherever i was before so it doesnt piss me off if i am on the music/details screen?

dito for the rating set?

and i guess i will need to build up my own playlist on startup, which factors in the rating/lastplayed times?


any comments or hints about how to go about it?


Cheers sean.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: jukebox mode = smart shuffle and track rating/last playe

Postby dalanik on Mon Jun 12, 2006 12:47 pm

S Pittaway wrote:1) build up a random playlist of all tracks


Just cue all songs and turn shuffle on. I.e.
category>play all>music
music>shuffle

S Pittaway wrote:2) have the option of rating individual tracks as i lsiten to them and then factoring the rating into the shuffle - favourate tracks first.


There is a system for rating movies this way, i.e. add a field to the database with rating for current item. But I don't know how would it integrate into favorite tracks first... You could rate songs, and then sort on rating, so favorite songs would be on top and play first, but not with shuffle on.

S Pittaway wrote:3) whenever a track is played i want to add/update a lastplayed tag, this can then also be factored into the playback (least played first) - i have 8/9000 tracks yet shuffle as an uncanny nack of playing the same tracks for me! :)


I believe it's not possible in XLobby now...

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby S Pittaway on Mon Jun 12, 2006 3:15 pm

I have a working if simple jukebox mode working has you said - it hits shuffle, then play and all works fine :)

I just wanted it to be a bit flasher.

i know how to add fileds to the selected album (using category add) dito for adding track tags (via musicdetails), but i i dont know how to add a field to the current song?

i have audioplayer>now>XXX is there an easy way of adding tags to the current track (not the album)?

i also could do with a track change event but i havent seen one knocking about?
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Postby S Pittaway on Mon Jun 12, 2006 3:16 pm

ps,

am i the only one who always spells fields as fileds?
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Postby m_ski on Tue Jun 13, 2006 11:11 am

See the bottom of this post http://www.xlobby.com/forum/viewtopic.php?t=4386&highlight=lastplayed showing how I implement a 'lastplayed' album feature - I haven't got it to work for individual tracks yet though.

Might be helpful for you.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby S Pittaway on Tue Jun 13, 2006 11:28 am

yep, i was reading that before and it gave me a push to go for it and try and get it working for tracks as well :)
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England