MusicMagicDJ Script

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

Moderators: Peke, Gurus

DanielWebb
Posts: 32
Joined: Thu Sep 28, 2006 5:17 am

Post by DanielWebb »

dbinder
1) what is the style weight?
From the tips and tricks page

If you are finding that the list is too diverse (perhaps there are too many songs with different styles), you can use the File/Customize Options menu to change the Artist style setting. This lets you control how closely you want the styles to match, in addition to the overall sound. At the far left, the style will be ignored. At the far right, the style will be strongly preferred. If you set the style to be strongly preferred, you will probably only get songs by a small number of artists, or from a small number of CD's. Note that a song must either be on an album of 6 or more tracks, or the associated artist must have 6 or more songs in order for the MusicMagic Mixer to associate a style. (You can check this easily by choosing Similar Artists or Similar Albums when you right-click on an artist or an album - if this option is enabled, then the Mixer was able to create a style for that artist or album.)
2) What are the valid values?
0 (Ignore) to 200 (Strongly Prefer)
3) does this value over-ride the value within MusicIP itself (the Mix settings that have a range for Artist Style from Ignore to Strongly Prefer)
Yes it does override your default setting.
4) For Seed Tracks, if I want to continue to have a certain mood, should I make this value 1 so that each next track will have the same type of music?
I haven't really done enough testing but I was hoping that increasing the number of seed tracks would help the dj keep to the mood I wanted. My thinking was that the MusicIP mixer would be able to ascertain my requirements better if I gave him more examples of the type of tracks I wanted. He would then pick a better track which would be used as a seed track for the next selection and on and on.

Not sure if this actually helps though.
Regards

Daniel Webb
www.planetgriff.com
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

I'm getting this strange error:

error #5- MS JScript runtime error
invalid procedure call or argument
file musicmagicdj.js line 553 column 1

then MMDJ doesn't add the next track

EDIT: When I restarted MM it worked fine. Even stranger.

Code: Select all

Monday, November 06, 2006 7:45:30 AM: TRACE: ******************************************************************
Monday, November 06, 2006 7:45:30 AM: TRACE: Entered MusicMagicDJ
Monday, November 06, 2006 7:45:30 AM: TRACE: seed:, 6, style, 100
Monday, November 06, 2006 7:45:30 AM: TRACE: Creating mixURL
Monday, November 06, 2006 7:45:30 AM: TRACE:   adding seed song: Live and Learn by Joe Public
Monday, November 06, 2006 7:45:30 AM: TRACE:   adding seed song: Sin by Fem 2 Fem
Monday, November 06, 2006 7:45:30 AM: TRACE:   adding seed song: Love, Truth and Honesty (Dancehall Version) by Bananarama
Monday, November 06, 2006 7:45:30 AM: TRACE:   adding seed song: Temptation by Heaven 17
Monday, November 06, 2006 7:45:30 AM: TRACE:   adding seed song: Rock My Heart by Haddaway
Monday, November 06, 2006 7:45:30 AM: TRACE:   adding seed song: Give It Up [Extended] by Cut 'n' Move
Monday, November 06, 2006 7:45:30 AM: TRACE:   mixURL:, http://localhost:10002/api/mix?size=20&rejectsize=20&style=100&song=J%3A%5CMusic%5C_Techno%5C1992%20-%20Turn%20Up%20the%20Bass%2C%20Volume%2022%5CTechno%20-%201992%20-%20Turn%20Up%20the%20Bass%2C%20Volume%2022%20-%2004%20-%20Joe%20Public%20-%20Live%20and%20Learn.mp3&song=J%3A%5CMusic%5CF%5CFem%202%20Fem%5CFem%202%20Fem%20-%20Animus%20-%2002%20-%20Sin.mp3&song=J%3A%5CMusic%5CC%5CClub%20Anthems%20Vol%202%5CClub%20Anthems%20Vol%202%20-%2004.%20Dance%20-%20Bananarama%20-%20Love%2C%20Truth%20and%20Honesty%20%28Dancehall%20Version%29.mp3&song=J%3A%5CMusic%5C_Various%5C2006%20-%20Back%20in%20the%20Day%5CVarious%20-%202006%20-%20Back%20in%20the%20Day%20-%2033%20-%20Heaven%2017%20-%20Temptation.mp3&song=J%3A%5CMusic%5CH%5CHaddaway%5CHaddaway%20-%201993%20-%20Haddaway%20-%2010%20-%20Rock%20My%20Heart.mp3&song=J%3A%5CMusic%5C_Various%5C2006%20-%20The%2012%27%20Vinyl%20Vault%5CVarious%20-%202006%20-%20The%2012%27%20Vinyl%20Vault%20-%20Cut%20%27n%27%20Move%20-%20Give%20It%20Up%20%5BExtended%5D.mp3
Monday, November 06, 2006 7:45:30 AM: TRACE:   Entering musicMagicResponseHandler, 1
Monday, November 06, 2006 7:45:30 AM: TRACE:   Entering musicMagicResponseHandler, 1
Monday, November 06, 2006 7:45:30 AM: TRACE:   Entering musicMagicResponseHandler, 2
Monday, November 06, 2006 7:45:30 AM: TRACE:   Entering musicMagicResponseHandler, 3
Monday, November 06, 2006 7:45:30 AM: TRACE:   Entering musicMagicResponseHandler, 4
Monday, November 06, 2006 7:45:30 AM: TRACE:   Received 21 suggestions from musicMagic
Monday, November 06, 2006 7:45:30 AM: TRACE: Choosing Track
Monday, November 06, 2006 7:45:30 AM: TRACE: TEST SONG: Reject if Good Life By Inner City is in now playing
Monday, November 06, 2006 7:45:30 AM: TRACE:   ACCEPT: song is not in now playing.
Monday, November 06, 2006 7:45:30 AM: TRACE: TEST ALBUM: Reject if album 'Back in the Day' (12488) is in now playing
Monday, November 06, 2006 7:45:30 AM: TRACE:   Parameters: RestrictAlbum, 6, startIndex, 95, endIndex, 100
Monday, November 06, 2006 7:45:30 AM: TRACE:   checking: 'Turn Up the Bass, Volume 22' (22712)
Monday, November 06, 2006 7:45:30 AM: TRACE:   checking: 'Animus' (2031)
Monday, November 06, 2006 7:45:30 AM: TRACE:   checking: '04. Dance' (18525)
Monday, November 06, 2006 7:45:30 AM: TRACE:   checking: 'Back in the Day' (12488)
Monday, November 06, 2006 7:45:30 AM: TRACE:   REJECT: albumID already in now playing.
Monday, November 06, 2006 7:45:30 AM: TRACE: TEST SONG: Reject if See You By Depeche Mode is in now playing
Monday, November 06, 2006 7:45:30 AM: TRACE:   ACCEPT: song is not in now playing.
Monday, November 06, 2006 7:45:40 AM: TRACE: ******************************************************************
Monday, November 06, 2006 7:45:40 AM: TRACE: Entered MusicMagicDJ
Monday, November 06, 2006 7:45:40 AM: TRACE: seed:, 6, style, 100
Monday, November 06, 2006 7:45:40 AM: TRACE: Creating mixURL
Monday, November 06, 2006 7:45:40 AM: TRACE:   adding seed song: Live and Learn by Joe Public
Monday, November 06, 2006 7:45:40 AM: TRACE:   adding seed song: Sin by Fem 2 Fem
Monday, November 06, 2006 7:45:40 AM: TRACE:   adding seed song: Love, Truth and Honesty (Dancehall Version) by Bananarama
Monday, November 06, 2006 7:45:40 AM: TRACE:   adding seed song: Temptation by Heaven 17
Monday, November 06, 2006 7:45:40 AM: TRACE:   adding seed song: Rock My Heart by Haddaway
Monday, November 06, 2006 7:45:40 AM: TRACE:   adding seed song: Give It Up [Extended] by Cut 'n' Move
Monday, November 06, 2006 7:45:40 AM: TRACE:   mixURL:, http://localhost:10002/api/mix?size=20&rejectsize=20&style=100&song=J%3A%5CMusic%5C_Techno%5C1992%20-%20Turn%20Up%20the%20Bass%2C%20Volume%2022%5CTechno%20-%201992%20-%20Turn%20Up%20the%20Bass%2C%20Volume%2022%20-%2004%20-%20Joe%20Public%20-%20Live%20and%20Learn.mp3&song=J%3A%5CMusic%5CF%5CFem%202%20Fem%5CFem%202%20Fem%20-%20Animus%20-%2002%20-%20Sin.mp3&song=J%3A%5CMusic%5CC%5CClub%20Anthems%20Vol%202%5CClub%20Anthems%20Vol%202%20-%2004.%20Dance%20-%20Bananarama%20-%20Love%2C%20Truth%20and%20Honesty%20%28Dancehall%20Version%29.mp3&song=J%3A%5CMusic%5C_Various%5C2006%20-%20Back%20in%20the%20Day%5CVarious%20-%202006%20-%20Back%20in%20the%20Day%20-%2033%20-%20Heaven%2017%20-%20Temptation.mp3&song=J%3A%5CMusic%5CH%5CHaddaway%5CHaddaway%20-%201993%20-%20Haddaway%20-%2010%20-%20Rock%20My%20Heart.mp3&song=J%3A%5CMusic%5C_Various%5C2006%20-%20The%2012%27%20Vinyl%20Vault%5CVarious%20-%202006%20-%20The%2012%27%20Vinyl%20Vault%20-%20Cut%20%27n%27%20Move%20-%20Give%20It%20Up%20%5BExtended%5D.mp3
Monday, November 06, 2006 7:45:40 AM: TRACE:   Entering musicMagicResponseHandler, 1
Monday, November 06, 2006 7:45:40 AM: TRACE:   Entering musicMagicResponseHandler, 1
Monday, November 06, 2006 7:45:40 AM: TRACE:   Entering musicMagicResponseHandler, 2
Monday, November 06, 2006 7:45:40 AM: TRACE:   Entering musicMagicResponseHandler, 3
Monday, November 06, 2006 7:45:40 AM: TRACE:   Entering musicMagicResponseHandler, 4
Monday, November 06, 2006 7:45:40 AM: TRACE:   Received 21 suggestions from musicMagic
Monday, November 06, 2006 7:45:40 AM: TRACE: Choosing Track
Monday, November 06, 2006 7:45:40 AM: TRACE: TEST SONG: Reject if Good Life By Inner City is in now playing
Monday, November 06, 2006 7:45:40 AM: TRACE:   ACCEPT: song is not in now playing.
Monday, November 06, 2006 7:45:40 AM: TRACE: TEST ALBUM: Reject if album 'Back in the Day' (12488) is in now playing
Monday, November 06, 2006 7:45:40 AM: TRACE:   Parameters: RestrictAlbum, 6, startIndex, 95, endIndex, 100
Monday, November 06, 2006 7:45:40 AM: TRACE:   checking: 'Turn Up the Bass, Volume 22' (22712)
Monday, November 06, 2006 7:45:40 AM: TRACE:   checking: 'Animus' (2031)
Monday, November 06, 2006 7:45:40 AM: TRACE:   checking: '04. Dance' (18525)
Monday, November 06, 2006 7:45:40 AM: TRACE:   checking: 'Back in the Day' (12488)
Monday, November 06, 2006 7:45:40 AM: TRACE:   REJECT: albumID already in now playing.
Monday, November 06, 2006 7:45:40 AM: TRACE: TEST SONG: Reject if See You By Depeche Mode is in now playing
Monday, November 06, 2006 7:45:40 AM: TRACE:   ACCEPT: song is not in now playing.
TJOHO
Posts: 112
Joined: Tue Oct 31, 2006 8:00 pm
Location: A Norwegian in Seoul, Korea

Missing files

Post by TJOHO »

I just installed this script and restarted MM. It gives the following error message:

File:
C:\Program Files\MediaMonkey\Scripts\LaunchSongInfo.vbs cannot be opened: The file is unavailable or you may not have permission to access it.

If I click away the error message, it pops up a new one:

File:
C:\Program Files\MediaMonkey\Scripts\ScrobblerDJ.vbs cannot be opened: The file is unavailable or you may not have permission to access it.

A look in the Scripts folder confirms that these two files are not there. How can that be? I used the installer package you provided, and did nothing else.

I tried uninstalling the script, but now I get this error message for every new song I play in MM! Whether I have the script installed or not, whether it is enabled or not, the message pops up for each new track.

Please help!
Big_Berny
Posts: 1784
Joined: Mon Nov 28, 2005 11:55 am
Location: Switzerland
Contact:

Post by Big_Berny »

Some time ago there was a buggy script uninstaller which deleted other files. Try to reinstall the new MediaMonkey in the same folder. Maybe you have also to reinstall the two scripts you mentioned.

Big_Berny
Image
Scripts in use: Genre Finder / Last.fm DJ / Magic Nodes / AutoRateAccurate / Last.FM Node
Skins in use: ZuneSkin SP / Eclipse SP
AutoRateAccurate 3.0.0 (New) - Rates all your songs in less than 5 seconds!
About me: icoaching - internet | marketing | design
DanielWebb
Posts: 32
Joined: Thu Sep 28, 2006 5:17 am

Post by DanielWebb »

TJOHO

I'd have a look in the Scripts.ini file. This is located in the subdirectory Scripts in the directory where you installed MediaMonkey (Most likely c:\program files\MediaMonkey)

Look for the text LaunchSongInfo and ScrobblerDJ

This is what MusicMagicDJ enters into this ini file:

Code: Select all

[MusicMagicDJ]
FileName=MusicMagicDJ.js
ProcName=MusicMagicDJ
Language=JScript
ScriptType=2
The first line is an ini section name, the other 4 lines are ini entries.

from the media monkey scripting guide
Format of Scripts\Scripts.ini file:

This file is a standard .ini file where each section defines one custom script. Section starts with a section identifier [SectionName], where ‘SectionName’ is a unique name of the script. Then follow several lines the further describe the script:
Filename= Name of a file where the script is located, e.g. ‘MyScripts.vbs’.
ProcName= Name of a procedure to be called when the script is executed in MM. This procedure must exist in the ‘Filename’ specified above.
ScriptType= Defines type of the script:
· 0 = A standard script that appears in Tools\Scripts submenu.
· 1 = An export script that can be found in File\Export submenu.
· 2 = A procedure that is called whenever a new track is started. This script doesn’t appear in any menu, it’s simply called in the background. When this procedure is executed, there is ‘CurrentTrack’ variable of SDBSongData object defined and you can use it to get information about the track.
Order= Defines the order of the script in its section. These numbers are sorted and scripts are listed according to the order then.
DisplayName= The script is listed under this name in MediaMonkey menu.
Description= This is shown as a tooltip when mouse is over the script in menu.
Language= Is usually VBScript, but can be any other scripting language, e.g. JScript.
Shortcut= Can specify a shortcut that will invoke the script in MM. You can use any of the string ‘Shift+’, ‘Ctrl+’ or ‘Alt+’ even combined together and followed either by a single letter or by a special key, which are: BkSp, Tab, Enter, Esc, Space, PgUp, PgDn, End, Home, Left, Up, Right, Down, Ins, Del.


So you can see that any section that has an entry ScriptType=2 will have the script function ProcName as defined in file FileName run every time a new track is started. If these files are no longer there then you'll get this problem.

The solution is to remove the complete sections titled LaunchSongInfo and ScrobblerDJ

Or to reinstall them.

I very much doubt that the MusicMagicDJ installer caused this problem - I've scanned the setup file and there's no LaunchSongInfo or ScrobblerDJ in there.

Hope this helps.
Regards

Daniel Webb
www.planetgriff.com
TJOHO
Posts: 112
Joined: Tue Oct 31, 2006 8:00 pm
Location: A Norwegian in Seoul, Korea

Post by TJOHO »

Sorry, Daniel :oops:

I now realize these problems must be from two other scripts I had installed and then uninstalled: DetailedSongInfoPanel and ScrobblerDJ (that should have been a clue, shouldn't it? :oops: ).

I thought the two awesome AutoDJ scripts to have were yours and ScrobblerDJ. Couldn't get either to work.

Now that I've studied the Scripts folder and Scripts.ini file, it seems that the two scripts mentioned above were not completely uninstalled, so I went in and deleted both manually.

I still get an error message about ScrobblerDJ when starting MM, but thankfully not for every track, and most importantly of all:
your script works perfectly! I've played around with its settings, and am getting some really great mixes! :lol:
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

MMDJ and Scrobbler DJ perform pretty much the same function...

One gets mixes from mip mixer, the other gets mixes from last.fm.

You can have both installed fine, however you should only have one active at any time.

You can easily disable/enable either script via its toolbar icon.

MMDJ looks like the predixis icon, scrobbler dj looks like a monkey with a letter M behind it.

Clicking either one will toggle enable/disable.

I have both installed and use one or the other, but I've never tried to use both at same time, I'm guessing there will be conflicts or inconsistent behavior.
TJOHO
Posts: 112
Joined: Tue Oct 31, 2006 8:00 pm
Location: A Norwegian in Seoul, Korea

Post by TJOHO »

@ Teknojnky: I understand the difference between the scripts, and wanted to use them one at a time, depending on what I wanted - what sounds similar to what I am listening to (this script) or what is defined as similar in last.fm (ScrobblerDJ).

First, I installed ScrobblerDJ, could not get it to work, and uninstalled it.

Then I tried this, could not get it to work, and uninstalled it.

Then I reinstalled this, and posted my first post above.

Now this script is working well, although as mentioned, I still get the ScrobblerDJ error messages, despite deleting everything I could find relating to that script.
DanielWebb
Posts: 32
Joined: Thu Sep 28, 2006 5:17 am

Post by DanielWebb »

TJOHO

Glad you got things working.
I still get the ScrobblerDJ error messages, despite deleting everything I could find relating to that script.
You may still have the ScrobblerDJConfig.vbs file in your Media Monkye/Scripts/Auto folder. Try deleting that.

Alternatively, try reinstalling ScrobblerDJ - It's definitely worth having.
The problem I had with it were down to the initial settings. It works Great for me with:
  • Default Playlist: Accessible Tracks
    Timeout: 20
    Info Show: 5
    Minimal Match: 5
    No same Artist: 10
    Select Rating: Any
    Include Unknown Rating Ticked.
Teknojnky:
I have both installed and use one or the other, but I've never tried to use both at same time, I'm guessing there will be conflicts or inconsistent behavior.
If you enabled both I'd guess that when the last track started playing, both MusicMagicDJ and ScrobblerDJ would choose a track and queue it up. I doubt there'd be a problem. The inconsistent behaviour would be in which DJ got their tune on first.
Regards

Daniel Webb
www.planetgriff.com
dbinder
Posts: 12
Joined: Mon Jul 31, 2006 11:26 am

Post by dbinder »

I am getting the following 12029 error (from the log):

Friday, November 17, 2006 1:02:43 PM: TRACE: ******************************************************************
Friday, November 17, 2006 1:02:43 PM: TRACE: Entered MusicMagicDJ
Friday, November 17, 2006 1:02:43 PM: TRACE: seed:, 1, style, 100
Friday, November 17, 2006 1:02:43 PM: TRACE: MusicMagicDJ Disabled
Friday, November 17, 2006 1:03:42 PM: TRACE: ******************************************************************
Friday, November 17, 2006 1:03:42 PM: TRACE: Entered MusicMagicDJ
Friday, November 17, 2006 1:03:42 PM: TRACE: seed:, 1, style, 100
Friday, November 17, 2006 1:03:42 PM: TRACE: Creating mixURL
Friday, November 17, 2006 1:03:42 PM: TRACE: adding seed song: Vogue by Madonna
Friday, November 17, 2006 1:03:42 PM: TRACE: mixURL:, http://localhost:10002/api/mix?size=20& ... 0Vogue.mp3
Friday, November 17, 2006 1:03:42 PM: TRACE: Entering musicMagicResponseHandler, 1
Friday, November 17, 2006 1:03:42 PM: TRACE: Entering musicMagicResponseHandler, 1
Friday, November 17, 2006 1:03:43 PM: TRACE: Entering musicMagicResponseHandler, 4
Friday, November 17, 2006 1:03:43 PM: ERROR: http Error, Status: 12029, Unknown
Friday, November 17, 2006 1:03:43 PM: Choosing random unplayed track
Friday, November 17, 2006 1:03:43 PM: TRACE: Choosing 625 from 808 random unplayed songs
Friday, November 17, 2006 1:03:43 PM: RandomUnplayed chose Easier Said Than Done By The Essex

Any help would be appreciated, thank you.

-David
sperk
Posts: 90
Joined: Wed Oct 11, 2006 1:52 pm

Post by sperk »

Hi,
I don't get it. Can someone tell me what supposed to happen. I have the music mixer installed and the script. I play a song in MM but nothing happens. The mixer just sits there and I don't get these mix suggestions (where would they display?) Are you suppsed to open songs from MM or the mixer (neither way gave me any mixes.)
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

Well, you have to make sure its enabled (click the circle predixis icon on the toolbar) and you ahve to have the 'api service' enabled in the mixer.

When you play music in MM, when it gets to the last track, it sends an HTTP request to the mixer service which then returns a list of songs that the script chooses to enqueue next.

So, play 1 song, a song should be enqueued after it. Every time you get to the last song, 1 more song is enqueued.

It's like a bottomless playlist of related songs.

You can set some of the options for the scripts @ tools > options > player > musicmagic dj settings.
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Post by Teknojnky »

I'm getting this error alot for some reason.

error #53
file not found

musicmagicdj.js line 520 column 1

Code: Select all

Tuesday, November 21, 2006 10:19:56 AM: TRACE: ******************************************************************
Tuesday, November 21, 2006 10:19:56 AM: TRACE: Entered MusicMagicDJ
Tuesday, November 21, 2006 10:19:56 AM: TRACE: seed:, 10, style, 150
Tuesday, November 21, 2006 10:19:56 AM: TRACE: Creating mixURL
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: Recovery by Basil Poledouris
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: Gob - Give Up the Grudge by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: John Denver - Looking for Space by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: Billy Joel - These Rhinestone Days (demo, Never Released, Became "I Loved These Days") by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: Zombie Nation - Kernkraft 400 (DJ Guis remix) by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: The Beach Boys - Make It Good by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: Ennio Morricone - Questa specie d'amore by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: Gob - Give Up the Grudge by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: System of A Down - Jet Pilot by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   adding seed song: Finger Eleven - Last Scene of Struggling by 
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   mixURL:, http://localhost:10002/api/mix?size=20&rejectsize=20&style=150&song=J%3A%5CMusic%5C_Soundtrack%5CConan%20the%20Barbarian%5CSoundtrack%20-%201982%20-%20Conan%20the%20Barbarian%20-%2011%20-%20Basil%20Poledouris%20-%20Recovery.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CAmerican%20Pie%203-%20The%20Wedding%5CSoundtrack%20-%202003%20-%20American%20Pie%203-%20The%20Wedding%20-%2010%20-%20Gob%20-%20Give%20Up%20the%20Grudge.mp3&song=J%3A%5CMusic%5CJ%5CJohn%20Denver%5CJohn%20Denver%20-%201997%20-%20The%20Country%20Roads%20Collection%20-%20219%20-%20Looking%20for%20Space.mp3&song=J%3A%5CMusic%5CB%5CBilly%20Joel%5CBilly%20Joel%20-%202005%20-%20My%20Lives%20%28disc%201-%201965-1980%29%20-%2014%20-%20These%20Rhinestone%20Days%20%28demo%2C%20Never%20Released%2C%20Became%20%27I%20Loved%20These%20Days%27%29.mp3&song=J%3A%5CMusic%5C_Techno%5C2005%20-%20The%20Very%20Best%20of%20Frantic%20Euphoria%5CTechno%20-%202005%20-%20The%20Very%20Best%20of%20Frantic%20Euphoria%20-%20101%20-%20Zombie%20Nation%20-%20Kernkraft%20400%20%28DJ%20Guis%20remix%29.mp3&song=J%3A%5CMusic%5CB%5CThe%20Beach%20Boys%5CThe%20Beach%20Boys%20-%201972%20-%20Carl%20and%20the%20Passions-%20So%20Tough%20-%2006%20-%20Make%20It%20Good.mp3&song=J%3A%5CMusic%5CE%5CEnnio%20Morricone%5CEnnio%20Morricone%20-%202005%20-%20Gold%20Edition%20-%2050%20Movie%20Themes%20Hits%20-%20208%20-%20Questa%20specie%20d%27amore.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CAmerican%20Pie%203-%20The%20Wedding%5CSoundtrack%20-%202003%20-%20American%20Pie%203-%20The%20Wedding%20-%2010%20-%20Gob%20-%20Give%20Up%20the%20Grudge.mp3&song=J%3A%5CMusic%5CS%5CSystem%20Of%20A%20Down%5CSystem%20of%20A%20Down%20-%202001%20-%20Toxicity%20-%2004%20-%20Jet%20Pilot.mp3&song=J%3A%5CMusic%5CF%5CFinger%20Eleven%5CFinger%20Eleven%20-%202003%20-%20Finger%20Eleven%20-%2008%20-%20Last%20Scene%20of%20Struggling.mp3
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   Entering musicMagicResponseHandler, 1
Tuesday, November 21, 2006 10:19:56 AM: TRACE:   Entering musicMagicResponseHandler, 1
Tuesday, November 21, 2006 10:21:26 AM: TRACE:   Entering musicMagicResponseHandler, 2
Tuesday, November 21, 2006 10:21:26 AM: TRACE:   Entering musicMagicResponseHandler, 3
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   Entering musicMagicResponseHandler, 4
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   Received 7 suggestions from musicMagic
Tuesday, November 21, 2006 10:21:27 AM: TRACE: Choosing Track
Tuesday, November 21, 2006 10:21:27 AM: TRACE: TEST SONG: Reject if M (Van Eyden Vs- M-o-r-p-h- Re By Ayu is in now playing
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   ACCEPT: song is not in now playing.
Tuesday, November 21, 2006 10:21:27 AM: TRACE: TEST ALBUM: Reject if album 'ATB The DJ: In the Mix' (10092) is in now playing
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   Parameters: RestrictAlbum, 10, startIndex, 91, endIndex, 100
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: 'Conan the Barbarian' (9960)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   ACCEPT: Album is not in now playing
Tuesday, November 21, 2006 10:21:27 AM: TRACE: TEST ARTIST: Reject if artist 'Ayu' (6222) is in now playing
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   Parameters: RestrictArtist, 10, startIndex, 91, endIndex, 100
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: 'Basil Poledouris' (4062)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:21:27 AM: TRACE:   ACCEPT: Artist is not in now playing
Tuesday, November 21, 2006 10:21:27 AM: MusicMagic chose M (Van Eyden Vs- M-o-r-p-h- Re By Ayu to follow Recovery By Basil Poledouris
Tuesday, November 21, 2006 10:22:07 AM: TRACE: ******************************************************************
Tuesday, November 21, 2006 10:22:07 AM: TRACE: Entered MusicMagicDJ
Tuesday, November 21, 2006 10:22:07 AM: TRACE: seed:, 10, style, 150
Tuesday, November 21, 2006 10:22:07 AM: TRACE: Creating mixURL
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: M (Van Eyden Vs- M-o-r-p-h- Re by Ayu
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: Recovery by Basil Poledouris
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: Gob - Give Up the Grudge by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: John Denver - Looking for Space by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: Billy Joel - These Rhinestone Days (demo, Never Released, Became "I Loved These Days") by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: Zombie Nation - Kernkraft 400 (DJ Guis remix) by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: The Beach Boys - Make It Good by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: Ennio Morricone - Questa specie d'amore by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: Gob - Give Up the Grudge by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   adding seed song: System of A Down - Jet Pilot by 
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   mixURL:, http://localhost:10002/api/mix?size=20&rejectsize=20&style=150&song=J%3A%5CMusic%5C_Techno%5C2004%20-%20ATB%20The%20DJ-%20In%20the%20Mix%5CTechno%20-%202004%20-%20ATB%20The%20DJ-%20In%20the%20Mix%20-%2004%20-%20Ayu%20-%20M%20%28Van%20Eyden%20Vs-%20M-o-r-p-h-%20Re.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CConan%20the%20Barbarian%5CSoundtrack%20-%201982%20-%20Conan%20the%20Barbarian%20-%2011%20-%20Basil%20Poledouris%20-%20Recovery.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CAmerican%20Pie%203-%20The%20Wedding%5CSoundtrack%20-%202003%20-%20American%20Pie%203-%20The%20Wedding%20-%2010%20-%20Gob%20-%20Give%20Up%20the%20Grudge.mp3&song=J%3A%5CMusic%5CJ%5CJohn%20Denver%5CJohn%20Denver%20-%201997%20-%20The%20Country%20Roads%20Collection%20-%20219%20-%20Looking%20for%20Space.mp3&song=J%3A%5CMusic%5CB%5CBilly%20Joel%5CBilly%20Joel%20-%202005%20-%20My%20Lives%20%28disc%201-%201965-1980%29%20-%2014%20-%20These%20Rhinestone%20Days%20%28demo%2C%20Never%20Released%2C%20Became%20%27I%20Loved%20These%20Days%27%29.mp3&song=J%3A%5CMusic%5C_Techno%5C2005%20-%20The%20Very%20Best%20of%20Frantic%20Euphoria%5CTechno%20-%202005%20-%20The%20Very%20Best%20of%20Frantic%20Euphoria%20-%20101%20-%20Zombie%20Nation%20-%20Kernkraft%20400%20%28DJ%20Guis%20remix%29.mp3&song=J%3A%5CMusic%5CB%5CThe%20Beach%20Boys%5CThe%20Beach%20Boys%20-%201972%20-%20Carl%20and%20the%20Passions-%20So%20Tough%20-%2006%20-%20Make%20It%20Good.mp3&song=J%3A%5CMusic%5CE%5CEnnio%20Morricone%5CEnnio%20Morricone%20-%202005%20-%20Gold%20Edition%20-%2050%20Movie%20Themes%20Hits%20-%20208%20-%20Questa%20specie%20d%27amore.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CAmerican%20Pie%203-%20The%20Wedding%5CSoundtrack%20-%202003%20-%20American%20Pie%203-%20The%20Wedding%20-%2010%20-%20Gob%20-%20Give%20Up%20the%20Grudge.mp3&song=J%3A%5CMusic%5CS%5CSystem%20Of%20A%20Down%5CSystem%20of%20A%20Down%20-%202001%20-%20Toxicity%20-%2004%20-%20Jet%20Pilot.mp3
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   Entering musicMagicResponseHandler, 1
Tuesday, November 21, 2006 10:22:07 AM: TRACE:   Entering musicMagicResponseHandler, 1
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   Entering musicMagicResponseHandler, 2
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   Entering musicMagicResponseHandler, 3
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   Entering musicMagicResponseHandler, 4
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   Received 8 suggestions from musicMagic
Tuesday, November 21, 2006 10:22:40 AM: TRACE: Choosing Track
Tuesday, November 21, 2006 10:22:40 AM: TRACE: TEST SONG: Reject if Questa specie d'amore By Ennio Morricone is in now playing
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   ACCEPT: song is not in now playing.
Tuesday, November 21, 2006 10:22:40 AM: TRACE: TEST ALBUM: Reject if album 'Gold Edition - 50 Movie Themes Hits' (23931) is in now playing
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   Parameters: RestrictAlbum, 10, startIndex, 91, endIndex, 100
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: 'ATB The DJ: In the Mix' (10092)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: 'Conan the Barbarian' (9960)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   ACCEPT: Album is not in now playing
Tuesday, November 21, 2006 10:22:40 AM: TRACE: TEST ARTIST: Reject if artist 'Ennio Morricone' (3966) is in now playing
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   Parameters: RestrictArtist, 10, startIndex, 91, endIndex, 100
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: 'Ayu' (6222)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: 'Basil Poledouris' (4062)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   checking: '' (-1)
Tuesday, November 21, 2006 10:22:40 AM: TRACE:   ACCEPT: Artist is not in now playing
Tuesday, November 21, 2006 10:22:40 AM: MusicMagic chose Questa specie d'amore By Ennio Morricone to follow M (Van Eyden Vs- M-o-r-p-h- Re By Ayu
Tuesday, November 21, 2006 10:27:02 AM: TRACE: ******************************************************************
Tuesday, November 21, 2006 10:27:02 AM: TRACE: Entered MusicMagicDJ
Tuesday, November 21, 2006 10:27:02 AM: TRACE: seed:, 10, style, 150
Tuesday, November 21, 2006 10:27:02 AM: TRACE: Creating mixURL
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: Questa specie d'amore by Ennio Morricone
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: M (Van Eyden Vs- M-o-r-p-h- Re by Ayu
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: Recovery by Basil Poledouris
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: Gob - Give Up the Grudge by 
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: John Denver - Looking for Space by 
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: Billy Joel - These Rhinestone Days (demo, Never Released, Became "I Loved These Days") by 
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: Zombie Nation - Kernkraft 400 (DJ Guis remix) by 
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: The Beach Boys - Make It Good by 
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: Ennio Morricone - Questa specie d'amore by 
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   adding seed song: Gob - Give Up the Grudge by 
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   mixURL:, http://localhost:10002/api/mix?size=20&rejectsize=20&style=150&song=J%3A%5CMusic%5CE%5CEnnio%20Morricone%5CEnnio%20Morricone%20-%202005%20-%20Gold%20Edition%20-%2050%20Movie%20Themes%20Hits%20-%20208%20-%20Questa%20specie%20d%27amore.mp3&song=J%3A%5CMusic%5C_Techno%5C2004%20-%20ATB%20The%20DJ-%20In%20the%20Mix%5CTechno%20-%202004%20-%20ATB%20The%20DJ-%20In%20the%20Mix%20-%2004%20-%20Ayu%20-%20M%20%28Van%20Eyden%20Vs-%20M-o-r-p-h-%20Re.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CConan%20the%20Barbarian%5CSoundtrack%20-%201982%20-%20Conan%20the%20Barbarian%20-%2011%20-%20Basil%20Poledouris%20-%20Recovery.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CAmerican%20Pie%203-%20The%20Wedding%5CSoundtrack%20-%202003%20-%20American%20Pie%203-%20The%20Wedding%20-%2010%20-%20Gob%20-%20Give%20Up%20the%20Grudge.mp3&song=J%3A%5CMusic%5CJ%5CJohn%20Denver%5CJohn%20Denver%20-%201997%20-%20The%20Country%20Roads%20Collection%20-%20219%20-%20Looking%20for%20Space.mp3&song=J%3A%5CMusic%5CB%5CBilly%20Joel%5CBilly%20Joel%20-%202005%20-%20My%20Lives%20%28disc%201-%201965-1980%29%20-%2014%20-%20These%20Rhinestone%20Days%20%28demo%2C%20Never%20Released%2C%20Became%20%27I%20Loved%20These%20Days%27%29.mp3&song=J%3A%5CMusic%5C_Techno%5C2005%20-%20The%20Very%20Best%20of%20Frantic%20Euphoria%5CTechno%20-%202005%20-%20The%20Very%20Best%20of%20Frantic%20Euphoria%20-%20101%20-%20Zombie%20Nation%20-%20Kernkraft%20400%20%28DJ%20Guis%20remix%29.mp3&song=J%3A%5CMusic%5CB%5CThe%20Beach%20Boys%5CThe%20Beach%20Boys%20-%201972%20-%20Carl%20and%20the%20Passions-%20So%20Tough%20-%2006%20-%20Make%20It%20Good.mp3&song=J%3A%5CMusic%5CE%5CEnnio%20Morricone%5CEnnio%20Morricone%20-%202005%20-%20Gold%20Edition%20-%2050%20Movie%20Themes%20Hits%20-%20208%20-%20Questa%20specie%20d%27amore.mp3&song=J%3A%5CMusic%5C_Soundtrack%5CAmerican%20Pie%203-%20The%20Wedding%5CSoundtrack%20-%202003%20-%20American%20Pie%203-%20The%20Wedding%20-%2010%20-%20Gob%20-%20Give%20Up%20the%20Grudge.mp3
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   Entering musicMagicResponseHandler, 1
Tuesday, November 21, 2006 10:27:02 AM: TRACE:   Entering musicMagicResponseHandler, 1
Tuesday, November 21, 2006 10:27:26 AM: TRACE:   Entering musicMagicResponseHandler, 2
Tuesday, November 21, 2006 10:27:26 AM: TRACE:   Entering musicMagicResponseHandler, 3
Tuesday, November 21, 2006 10:27:26 AM: TRACE:   Entering musicMagicResponseHandler, 4
Tuesday, November 21, 2006 10:27:26 AM: TRACE:   Received 9 suggestions from musicMagic
Tuesday, November 21, 2006 10:27:26 AM: TRACE: Choosing Track
ElGringo
Posts: 6
Joined: Sat Oct 21, 2006 2:04 pm
Location: Val-David, Qc, Canada

Songs Rating

Post by ElGringo »

Hello all,

A big thanks to DanielWebb for making this script available, this is the best script for me, and i am using it all the time and it works really great.

I have done some customization to this script lately.

1. I have put in a average songs rating to the algorithm to respect when choosing a new song from MusicIP.

When receiving the list of songs from MusicIP, before adding a song to your playlist, it will calculate the new average rating with your actual playlist, and make sure that it still respects your average rating. If it can't respect, it will choose a random unplayed song, that still respects your average rating. If it can't find one, it will choose a completely random song.

2. You did a modification to always pick the first song returned by MusicIP, instead of picking a random one. With that modification. each HTTPREquest to MusicIp with the Track A was always returning the same song at the first position, cause HTTPRequests caches the requests to be faster. so the same response is always returned. So i did a modification, so the requests is not cached, and its not always the same song returned.

What's left for me to do, is to put the average songs rating in the GUI, for now it's hardcoded in my script.

Do you prefer that i send my modification to the code here, and you will see if you want to include them in the installer ?

Excuse for my english is not perfect, don't hesitate if you don't understand.

Thanks,
ElGringo
DanielWebb
Posts: 32
Joined: Thu Sep 28, 2006 5:17 am

Post by DanielWebb »

Teknojnky,

I reckon your MusicIP library either:
a) has some records in it of files that no longer exist or
b) is on another machine and is references files that your client cannot see.

Either way, to fix the error download the new version 1.7 I've just uploaded.

This is the change:

insert before line 520 var f = fso.GetFile(fileName);

Code: Select all


	if(fso.FileExists(fileName) == false)
	{
		TRACE("ERROR: file doesn't exist in removeDriveLetterFromPath", fileName);
		return("");	
	}

To REALLY fix the problem you could run the DJ until you get some of the "ERROR: file doesn't exist in removeDriveLetterFromPath" error messages in your debug log and then work out why MusicMagicDJ can't find the file.

Hope this helps and thanks for your input in this thread - Much appreciated.
Regards

Daniel Webb
www.planetgriff.com
Post Reply