Hi everyone,
I'm trying to make a iTunes rainmeter skin which shows most information in, more or less, plain text. It's all working out fine, except for the one thing stated in the topic: I can't seem to find a way to make the track number appear as I want it to. I've added a substitute= in under the MeasureTrackNumber looking like this:
Substitute="1":"opening track","2":"second track","3":"third track","4":"fourth track","5":"fifth track","6":"sixth track","7":"seventh track","8":"eight track","9":"ninth track","10":"10th track","11":"11th track","12":"12th track","13":"13th track","14":"14th track","15":"15th track","16":"16th track","17":"17th track","18":"18th track","18":"18th track","19":"19th track","20":"20th track"
the problem is that when, for instance, the 11th track of an album is playing it says "opening trackopening track", the 12th track "opening tracksecond track" etc. I've tried to change the numbers 1-9 with 01, 02, 03 etc. but it can't seem to be able to "read" that, and instead simply shows the corresponding number when playing (i.e "1"). However, when I do this every number after 9 appears properly, displaying that "11th track" is playing and so on. So my question is simple: is there a way to remedy this or does it have something to do with the iTunes plugin? Sorry if this block of text is tough to read with all the citation signs and whatnot
It is currently May 2nd, 2024, 7:40 pm
iTunes - MeasureTrackNumber issue
-
- Posts: 9
- Joined: June 1st, 2010, 9:36 am
-
- Developer
- Posts: 318
- Joined: July 14th, 2009, 5:57 pm
Re: iTunes - MeasureTrackNumber issue
You need to put your substitutes in reverse order, counting down from 20 to 1 rather than up from 1 to 20
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
-
- Posts: 9
- Joined: June 1st, 2010, 9:36 am
Re: iTunes - MeasureTrackNumber issue
This is what I did:JamesAC wrote:You need to put your substitutes in reverse order, counting down from 20 to 1 rather than up from 1 to 20
Substitute="20":"20th","19":"19th","18":"18th","17":"17th","16":"16th","15":"15th","14":"14th","13":"13th","12":"12th","11":
"11th","10":"10th","9":"ninth","8":"eighth","7":"seventh","6":"sixth","5":"fifth","4":"fourth","3":"third","2":"second",
"1":"opening"
but it doesn't seem to cut it. It still says openingopeningth for the 11th track. Any ideas?
-
- Developer
- Posts: 318
- Joined: July 14th, 2009, 5:57 pm
Re: iTunes - MeasureTrackNumber issue
I would use a calc measure to take 21 away from the track number the apply the substitute to the negative numbers,
I think that should work
Code: Select all
[MakeNegative]
Measure=CALC
Formula=TrackNumber - 20
Substitute="-20":"opening","-19":"second"...
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
-
- Developer
- Posts: 2872
- Joined: April 17th, 2009, 12:18 pm
Re: iTunes - MeasureTrackNumber issue
Just tested and calc doesn't work with GetCurrentTrackTrackCount (probably because it returns a string, not an integer).JamesAC wrote:I would use a calc measure to take 21 away from the track number the apply the substitute to the negative numbers
-
- Posts: 9
- Joined: June 1st, 2010, 9:36 am
Re: iTunes - MeasureTrackNumber issue
I couldn't get it to work either. Does anyone know if it's even possible to change the track number like this or if there's some sort of "bug" (in lack of better words) preventing this in the iTunes plugin?poiru wrote: Just tested and calc doesn't work with GetCurrentTrackTrackCount (probably because it returns a string, not an integer).
-
- Developer
- Posts: 318
- Joined: July 14th, 2009, 5:57 pm
Re: iTunes - MeasureTrackNumber issue
Try usingpoiru wrote:Just tested and calc doesn't work with GetCurrentTrackTrackCount (probably because it returns a string, not an integer).
Code: Select all
Formula=[TrackNumber] - 20
DynamicVariables=1
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
-
- Posts: 9
- Joined: June 1st, 2010, 9:36 am
Re: iTunes - MeasureTrackNumber issue
Sorry! Still nothingJamesAC wrote: Try usingI don't have iTunes to try it out but it might workCode: Select all
Formula=[TrackNumber] - 20 DynamicVariables=1
-
- Developer
- Posts: 1270
- Joined: April 3rd, 2009, 4:31 am
- Location: NC, US
Re: iTunes - MeasureTrackNumber issue
So we need to request to elestel to change the return value of GetCurrentTrackTrackCount to an integer?
-
- Posts: 9
- Joined: June 1st, 2010, 9:36 am
Re: iTunes - MeasureTrackNumber issue
Seems like it. I've tried several methods but none of them works.dragonmage wrote:So we need to request to elestel to change the return value of GetCurrentTrackTrackCount to an integer?