Auto Album DJ 3.8 - Updated 08/08/2010

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by trixmoto »

Image
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
kcwebbah
Posts: 7
Joined: Thu Oct 01, 2009 3:00 pm

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by kcwebbah »

Thanks for the help. I can't believe I missed the option for the Log file it was right in front of my face! Here's a sample from the log file:

[GenerateNewTrack]
MinTracks = 5
AvgRating = 3 (56)
MinRating = -1 (-1)
Capacity = 5
Attempts = 200
TheGenre =
Mode3f1 = True
ModeNum = 3
MaxTracks = 999
Unplayed = False
Earliest =
MaxDays = 9999
AvgPlays = 999
IgnoreNon = False
MinDays = 0
ApplyFilter = False
min(id) = 201
max(id) = 3077
tot(id) = 1324
1445 has 0 tracks above minimum rating (too few)
2507 has 0 tracks above minimum rating (too few)
2873 has 0 tracks above minimum rating (too few)
1007 has average rating of -1
No album has been selected :(
Random track: Shut the Door (5595)

The actual log file is much bigger and there are lots and lots of lines that end with "(too few)". What settings should I try changing to get this to work? Thanks!
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by trixmoto »

It seems to me that none of your tracks are rated. Is there a checkbox on the "More" popup to include tracks that are unrated?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
kcwebbah
Posts: 7
Joined: Thu Oct 01, 2009 3:00 pm

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by kcwebbah »

I don't have my music rated but I have Min. Rating set as 'Unknown'

Memory still shows 0 albums and the Genre filter still has 'List' ghosted out

I also get this error:
Error happened during srcipt execution:
Access violation at address 00050B17F in module 'MediaMonkey (non-skinned).exe'. Read of address 00000000
Onweerwolf
Posts: 705
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Onweerwolf »

I'm having a little issue with this script concerning albums from various artists.

I have the current setup: the script chooses albums from a collection. The collection contains 1 criteria: "playlist is x" where X is a number of static playlists that all contain one album. Aside from that I have no other parameters set except that the LastPlayed(days) = 366.

The script works fine for normal albums. However there are also a number of albums from Various Artists in the collection. From time to time the script picks out 1 song from such an album and after it is played it proceeds to another album. I would expect that the script plays the entire album of Various Artists. Is that behavior intended or not?

My Various Artists albums are tagged like this: the artist tag contains the correct artists (which all differ from each other) and the albumartist tag contains "Various Artists" for all the songs on the album.

I noticed that the script played a split album correctly. The split had "Artist 1; Artist 2" in the albumartist tag and the script correctly played the split album fully, first the songs from artist 1 and then the songs from artist 2.

Am I doing something wrong?
Image
Onweerwolf
Posts: 705
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Onweerwolf »

Hmz, after testing this some more it seems the script is actually throwing in random songs from time to time. :-?
Image
Onweerwolf
Posts: 705
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Onweerwolf »

Okay, so I figured out what causes the random tracks to appear. The logfile says "[number] has 0 tracks above minimum rating (too few)" for most of the albums and when it encounters 100 of those it plays a random track.

I don't want rating to be a criteria and I haven't set it either. I've tried min rating = unknown and min rating = 0, but both cause this problem. Please advice what to do.
Image
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by trixmoto »

The script will always throw in a random track is it can't select an album. When the message says it can't find any tracks above the minimum rating, if you've got it set to "unknown" then it will be including unknown tracks, which effectively means you don't have a rating criteria, I just didn't bother to put in loads of different messages depending on the different settings. You probably need to check your filter and genre settings as well.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Onweerwolf
Posts: 705
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Onweerwolf »

These are the settings i'm using:

Image
Image
Davo
Posts: 426
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Davo »

Hi Trixmoto - Not sure if your still doing any development on this but a couple of features i would like is to be able to select more than one library (or Collection as they're now called) and to have some % parameter between the libraries so trhat i could select say 70% from my Jazz Collection & 30% from my Classical Chamber Music Collection.
Regards
David
____________________________
Windows 10
MM 5 Beta
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by trixmoto »

Thanks, I've added for you suggestion to my list for the next version.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Onweerwolf
Posts: 705
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Onweerwolf »

Am I correct in understanding that the script works like this?

1 First it selects a random track from all the available tracks. (In my case the available tracks is a subset of tracks based on a library filter)
2 It then checks if the selected track and all of the other tracks from that album meet the criteria. If not it goes back to 1.
3 If the criteria are met the album is queued. If not it selects random tracks until the number of [attempts] is met and then selects a random track from the available tracks to queue up.

If this is correct then the way I want to use this script really doesn't work very well.

My library filter contains about 300 tracks for AADJ to select from. Usually only a small amount of tracks will meet my criteria. Say about 30 to 40. My criteria is last played (days) = 15

What happens a lot is that AADJ selects 999 (max number of attempts) tracks that do not meet the criteria and happens not to randomly select one of the tracks that does meet the criteria. I then end up with a random track.

I think the script does not keep track of the tracks that it already tried to select in an earlier attempt. Which means some tracks get attempted several times and of course fail each time. Would it be possible to have the script check for that to prevented multiple attempts at the same track?

Additionally, I would like to have the maximum number of attempts to be (much) more than 999. I don't mind if the script takes some time to find something that meets the criteria as long as it does.
Image
Onweerwolf
Posts: 705
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Onweerwolf »

Okay, so I set attempts=9999 in the MM.ini file which seems to work, which is a big improvement. :D


It would however be nice if I could set that in the script options since otherwise I will have to edit the .ini file each time I make a change of any kind to the script's settings.
Image
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by trixmoto »

The script is designed to play whole albums. If you've only got about 30-40 tracks which meet the criteria, then I don't think this script will work for you.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Onweerwolf
Posts: 705
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

Re: Auto Album DJ 3.8 - Updated 08/08/2010

Post by Onweerwolf »

You misunderstand. Those 30 to 40 tracks constitute 4 to 6 whole albums.

My setup is this:

Usually on Sundays I reserve my listening time for recently released albums. I find that this goes well with my weekly housecleaning tasks.

I have a static playlists that contains about 30 albums. New albums get added to that playlist and once I've heard an album enough times I take it off. I call this playlist Heavy Rotation.

I have a collection that has Heavy Rotation as a criteria.

This collection is the basis for AutoAlbumDJ.

So what happens is that AADJ plays albums from Heavy Rotation each Sunday. But it does so with the criteria that songs from the album must not have been played in the past 15 days. Thus if I play an album on a given Sunday it will not be played again on the two Sundays after that and it comes back into rotation on the third Sunday after it was played.

As a result there are usually a few albums that are 'in rotation' on any given Sunday. Which means the script should work as it needs to pick out one of those 4-6 albums that are 'in rotation'.

And it does work, I've been using it for months actually and am very happy with it, but (as described in my earlier post) it sometimes fails to pick a song from an album that is 'in rotation' during one of the 999 attempts. The lesser the number of albums 'in rotation' the more it fails. Therefor I would like to see the number of possible attempts go up. 9999 should be okay I think. Additionally it would be nice if the script remembers what song it picked during a failed attempt so it doesn't pick that one again during the same search for a song that meets the criteria.
Image
Post Reply