Page 15 of 163

Posted: Mon Dec 31, 2007 7:16 am
by Big_Berny
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

Posted: Mon Dec 31, 2007 7:29 am
by ZvezdanD
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.

Posted: Mon Dec 31, 2007 8:13 am
by Big_Berny
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! :)

Posted: Mon Dec 31, 2007 8:30 am
by ZvezdanD
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. :)

Posted: Mon Dec 31, 2007 8:37 am
by Big_Berny
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!

Posted: Mon Dec 31, 2007 9:11 am
by ZvezdanD
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.

Posted: Thu Jan 03, 2008 7:59 am
by ZvezdanD
There is a new version of the script (1.6.1) with fixed Rating values. Thanks for the report to Big_Berny.

Posted: Thu Jan 03, 2008 8:11 am
by Big_Berny
Thanks! :)

And yes, you're right about the ratings. Even in MM the ratings aren't always displayed with the same 'formula'...

Posted: Thu Jan 03, 2008 10:49 am
by Dreadlau
- Added: Send To, Edit and Delete Magic Node options to the Tree window context menu; :D

Posted: Fri Jan 04, 2008 8:06 am
by MM3 monkey
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

Posted: Fri Jan 04, 2008 8:24 am
by MM3 monkey
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.

Fields Custom 4 and Custom 5 actually return 1 and 2

Posted: Fri Jan 04, 2008 10:27 am
by Big Isch
Well,

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

Posted: Sat Jan 05, 2008 5:21 pm
by fpero
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

Posted: Mon Jan 07, 2008 1:56 am
by Guest
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.

Getting old MagicNodes to work with MM3

Posted: Mon Jan 07, 2008 1:04 pm
by Guest
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