Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2+]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

Post by Big_Berny » Mon Dec 31, 2007 7:16 am

Hi ZvezdanD,
since there were some problems about the rating. these are the exact ratingranges:
-1 = Unknown
0-5 (0) = Bomb
6-15 (10) = 0.5*
16-25 (20) = 1*
26-35 (30) = 1.5*
36-45 (40) = 2*
46-55 (50) = 2.5*
56-65 (60) = 3*
66-75 (70) = 3.5*
76-85 (80) = 4*
86-95 (90) = 4.5*
96-100 (100) = 5*

Would be nice if you could implement them, since AutoRateAccurate uses a bit special ratings...

Here's a function I wrote for MonkeyRok to get the stars. Maybe this helps you a bit:

Code: Select all

'star images 
Function ImagesForRating(rating) 
  Dim temp : temp = Int(rating) 
  If temp < 0 Then 
    ImagesForRating = "<image src='unknown.gif'>" 
    Exit Function 
  End If  
  If temp >= 0 and temp < 6 Then 
    ImagesForRating = "<image src='bomb.gif'>" 
    Exit Function 
  End If    
  Do While temp > 15 
    ImagesForRating = ImagesForRating&"<image src='star.gif'>" 
    temp = temp - 20 
  Loop 
  If temp > 5 Then 
    ImagesForRating = ImagesForRating&"<image src='star_half.gif'>" 
  End If 
End Function
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

ZvezdanD
Posts: 3106
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD » Mon Dec 31, 2007 7:29 am

Big_Berny wrote:since there were some problems about the rating. these are the exact ratingranges
Thank you very much for this. Could you please test the new version (1.6) of this script? It has some changes with the Rating value, I think a result is similar as yours.

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

Post by Big_Berny » Mon Dec 31, 2007 8:13 am

Almost perfect, the only ratings which are not sorted correctly are:
5, 15, 25 and so on. They get a half star too much.

Thanks for the fast work! :)
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

ZvezdanD
Posts: 3106
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD » Mon Dec 31, 2007 8:30 am

Big_Berny wrote:the only ratings which are not sorted correctly are:
5, 15, 25 and so on. They get a half star too much.
I don't get it. Please, could you be more specific?
Big_Berny wrote:Thanks for the fast work! :)
Well, the new version of the script was ready much before your post. :)

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

Post by Big_Berny » Mon Dec 31, 2007 8:37 am

Song.Rating = 5 is a Bomb in MM but is sorted under 0.5 stars in a rating-magicnode.
Song.Rating = 15 gets 0.5* but is sorted under 1 stars in a rating-magicnode.
Song.Rating = 25 gets 1* but is sorted under 1.5 stars in a rating-magicnode.
and so on...

Your ranges go from x5-y4 (for example 15-24) instead of x6-y5 (like 16-25)

Hope that helps!
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

ZvezdanD
Posts: 3106
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD » Mon Dec 31, 2007 9:11 am

Big_Berny wrote:Your ranges go from x5-y4 (for example 15-24) instead of x6-y5 (like 16-25)
I see. Well, in my opinion MM approach is not very well. There are 6 possible values for a Bomb, 5 values for 5 stars and 10 values for any other star. This is totally inconsistent.

Anyway, next release of the script will be modified to include same approach as MM. Thanks again.

ZvezdanD
Posts: 3106
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD » Thu Jan 03, 2008 7:59 am

There is a new version of the script (1.6.1) with fixed Rating values. Thanks for the report to Big_Berny.

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

Post by Big_Berny » Thu Jan 03, 2008 8:11 am

Thanks! :)

And yes, you're right about the ratings. Even in MM the ratings aren't always displayed with the same 'formula'...
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

Dreadlau
Posts: 1967
Joined: Sun Nov 25, 2007 6:49 am

Post by Dreadlau » Thu Jan 03, 2008 10:49 am

- Added: Send To, Edit and Delete Magic Node options to the Tree window context menu; :D

MM3 monkey
Posts: 445
Joined: Mon Aug 27, 2007 2:34 am

Post by MM3 monkey » Fri Jan 04, 2008 8:06 am

Hello, ZvezdanD; thanks for the update. I'm really looking forward to using it but for now I've got

Code: Select all

Error #450 - ... runtime error

Wrong number of arguments or invalid property assignment: 'StatFormatRating'

File: c:\....magic nodes 1.6.1.vbs", Line:0, Column:0
Last edited by MM3 monkey on Fri Jan 04, 2008 9:01 am, edited 1 time in total.

MM3 monkey
Posts: 445
Joined: Mon Aug 27, 2007 2:34 am

Post by MM3 monkey » Fri Jan 04, 2008 8:24 am

An example of a node that doesn't work is

Code: Select all

Rating Genre\<rating|sort order:desc|statistic:count(all)>\<genre|sort by:count(all)|sort order:desc>\<album artist|statistic:count(all)>\<Album>
In this example I can expand "Rating Genre" but I can't expand the next level (in this case: the star ratings) - that's when I get the error.

I've got a similar node which is "Rating Mood" and, for this one, I can expand "Rating Mood" AND the star ratings on the next level ... but then I get the error when I try to expand the next level (the moods).

I think it doesn't like "sort by:count(all)". If I change "sort by" to statistic, the node works fine.

I'm trying to list my genres with the most populous at the top. I want to use

Code: Select all

<genre|statistic:count(all)|sort order:desc>
or something, but all that does is put the genres in reverse alphabetical order.

Big Isch
Posts: 112
Joined: Mon Mar 12, 2007 8:34 am
Location: Austria

Fields Custom 4 and Custom 5 actually return 1 and 2

Post by Big Isch » Fri Jan 04, 2008 10:27 am

Well,

Fields Custom 4 and Custom 5 actually return value of
custom 1 and custom 2 (easy in line 256 and 257)

fpero
Posts: 35
Joined: Thu Jan 03, 2008 11:18 am
Location: New Jersey, USA

Post by fpero » Sat Jan 05, 2008 5:21 pm

I'm fairly new to MM and have been seeing a lot of posts about "Magic Nodes" and wanted to see first-hand just what all the hub-bub was about.

After downloading the latest version, and only playing with it for a few minutes...I can see why everyone loves this thing so much!!

Fantastic work...thanks for sharing it with the rest of us!!

Frank

Guest

Post by Guest » Mon Jan 07, 2008 1:56 am

I'm not sure if this is the correct place to ask, but I've just found and installed this lovely script and have found out how to place Custom 1/Custom 2 and so on as a node.

I'm really interested in finding out how I might be able to sort all of the custom fields 1-5 in a single field.

Thus if a track had Drum&Bass in Custom 2 and Electro in Custom 3 there would be present a folder labeled Drum&Bass and a folder labeled Electro and this track would be shown in each folder.

My intention with this is to be able to give each track multiple style/genres if you will. I have a lot of electronic music that crosses several styles/genres, and I like to keep very sortable music.

I appreciate the time anyone spends helping me understand how to do this.

Guest

Getting old MagicNodes to work with MM3

Post by Guest » Mon Jan 07, 2008 1:04 pm

Hi,

I successfully used the following node definitions with the original MagicNodes script in MM2, but I can't get them to work in ModifiedMagicNodes 1.6.1/MM3:

1) AddedLastMonth|SQL filter:DateDiff('d',Songs.DateAdded,Now)<30\<date added|sort order:desc>\<Album>

Error executing SQL .... no such column Now(1,1), and then a couple more errors

2) Neue Alben|filter:playlist in ('Neue Alben')\<Album and artist>

Invalid mask

3) Incomplete Albums|SQL filter: Songs.IDAlbum IN (SELECT IDAlbum FROM Songs GROUP BY IDAlbum HAVING Count(SongOrder) <> (Max(SongOrder+1)) AND Count(SongOrder) > 1)|show tracks:no\<Album Artist>\<Album>

Invalid mask

3) Scarcely played albums\<album|sort by:sum(played)|top:10 percent|min tracks:5>

Invalid mask

Any ideas or can anyone point me to a solution? Thanks! Claude

Post Reply