INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How can i set ratings in increments of a half?  (Read 7920 times)

steviewonders

  • Recent member
  • *
  • Posts: 35
How can i set ratings in increments of a half?
« on: December 07, 2012, 07:24:46 am »

Is there any way i can alter the ratings field so i can have increments of a half so i could rate a file as 2 and a half or 4 and a half etc? I've created a custom field for rating out of 10 but this can't be changed from the now playing display.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How can i set ratings in increments of a half?
« Reply #1 on: December 07, 2012, 01:34:07 pm »

The stock fields cannot be changed, as you've discovered.

Your own field can be configured to appear in the zone in use under Playing Now, and you can change it there.

I should add - there are a bunch of examples of how to present dark rating stars and light colored stars to represent 1/2 star.  Search the forums here for examples.  Some of these take advantage of newer MC features.  Ask if you need help.
Logged
The opinions I express represent my own folly.

steviewonders

  • Recent member
  • *
  • Posts: 35
Re: How can i set ratings in increments of a half?
« Reply #2 on: December 07, 2012, 06:05:15 pm »

Ok cheers. Glad to hear there is a solution. I've added my custom field to the playing now bar but i can't quickly click on it and change the tag. Perhaps that was implemented in a more recent version of MC. I don't suppose you have a link to the 1/2 star ratings stuff. I tried to find it but i guess i'm using the wrong search terms.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How can i set ratings in increments of a half?
« Reply #3 on: December 07, 2012, 07:12:44 pm »

The Rating field is a simple 5 Star-type field.  It allows you to select from 0 to 5 stars in the UI, and these are stored as the numbers from 0 to 5.

There is no support for anything other than 5 stars (via the Stars UI, although you can adjust a column that shows a 5 Star field, and have it show fewer stars), but you can use integers or decimals if that would work for you.  For example, you could have a 0-10 scale, and set the value in that field.  You could then show this field as 0-5 in increments of .5 using 1/2 stars.  I believe that is what some folks are doing.

How would you like to proceed?
Logged
The opinions I express represent my own folly.

steviewonders

  • Recent member
  • *
  • Posts: 35
Re: How can i set ratings in increments of a half?
« Reply #4 on: December 08, 2012, 10:22:39 pm »

0 to 5 in increments of.5 and half stars sounds ideal. How could I set this up?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How can i set ratings in increments of a half?
« Reply #5 on: December 11, 2012, 06:54:22 pm »

I'm sorry for the delay in responding to this.

Here's a way to make a 5 star rating system with pseudo 1/2 stars (shown as unfilled stars).

You're going to make a new user field of type Decimal.  You'll use this field to set the rating.  This is where you'll rate your tracks, and will ignore the stock [Rating] field.

Anywhere you want to see the Stars, you'll enter the expression:

   mid(★★★★★, 0, [rating (mine)])/
   ifelse(math(equal([rating (mine)] % 1, .5)),☆)

This can be in an expression column, a category, thumbnail or caption text.

The results will look like the attached image.

To create the new User field of type decimal:

   Tools > Options > Library & Folders > Manage Library Fields... > Add New Field

and enter Rating (mine) as the new field name.  Set the User data: Data Type to Decimal, and click OK.

Now, to test it out, in a files list in some view, add two new columns by right-clicking somewhere in the header, and and enable the Rating (mine) field.  Then do it again, this time selecting Add Expression Column... and enter the expression above, and give it a name such as Rating Stars (mine).

Now you can set your values in the Rating (mine) field and see the stars reflected in the Rating Stars (mine) column.
Logged
The opinions I express represent my own folly.

Khaoz

  • Recent member
  • *
  • Posts: 12
Re: How can i set ratings in increments of a half?
« Reply #6 on: January 26, 2013, 05:32:52 pm »

I want to have both ratings, 5 stars (which stores into file) and 10 stars (or halves). Is there a way to make the 5-star rating to autofill when I give the files the 10-star rating? I mean, 1-2 (or 1 and 1.5) will be 1 star, 3-4 (or 2 and 2.5) 2 stars, and so on... The point is to put the number just once.

Sorry if I don't explain myself very clear, language barriers, you know.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How can i set ratings in increments of a half?
« Reply #7 on: January 26, 2013, 05:46:54 pm »

There's no way to automatically update the Rating field based on another field.

You can create your own 5-Star rating field, say, My Rating 5, and have it be a calculated field based of your other field My Rating 10.

You'll want to Create two fields:

   My Rating 10
     Data Type: Integer
     Acceptable Values: 1;2;3;4;5;6;7;8;9;10

   My Rating 5
     Data Type: 5 Star
     Calculated data: Expression: Math([My Rating 10] / 2)

(note: set the type to 5 Star, and OK out of the dialog to save the field definition.  Then, re-open it, and change to User Calculated and enter the expression above).
Logged
The opinions I express represent my own folly.

Khaoz

  • Recent member
  • *
  • Posts: 12
Re: How can i set ratings in increments of a half?
« Reply #8 on: January 26, 2013, 06:01:48 pm »

Oh... but that new 5-star field won't save into file, right?

No problem, I think I'll stick to 5-star ratings. It's so unfair! haha
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How can i set ratings in increments of a half?
« Reply #9 on: January 26, 2013, 06:03:04 pm »

Oh... but that new 5-star field won't save into file, right?

No problem, I think I'll stick to 5-star ratings. It's so unfair! haha

Sure it can, just set the field to Save in file tags (when possible).
Logged
The opinions I express represent my own folly.

Khaoz

  • Recent member
  • *
  • Posts: 12
Re: How can i set ratings in increments of a half?
« Reply #10 on: January 26, 2013, 06:27:19 pm »

I know, but it won't show in other players.

I thought that I could do something like the edition of replay counts, which can't be edited directly, but you can modify with an expression column.

I've seen a post to create ratings based on variables, but that's for a custom field too, right?

Thank you so much!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How can i set ratings in increments of a half?
« Reply #11 on: January 26, 2013, 07:57:51 pm »

The stock Rating field is integer only, accepting values of 1, 2, 3, 4 or 5.  That's it.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up