INTERACT FORUM

Please login or register.

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

Author Topic: Numbering tracks from certain number  (Read 2346 times)

DaremoS

  • World Citizen
  • ***
  • Posts: 151
  • Rock is not just music... is a way of living
Numbering tracks from certain number
« on: April 28, 2013, 09:41:53 pm »

I want to number selected tracks from a desired number to fill Track#
Like it does function "Fill Track Number From List Order"

How can achieve this?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Logged
The opinions I express represent my own folly.

DaremoS

  • World Citizen
  • ***
  • Posts: 151
  • Rock is not just music... is a way of living
Re: Numbering tracks from certain number
« Reply #2 on: April 29, 2013, 10:23:17 am »

I've read and tested such solution... doesn´t work  :(

For the moment now that counter() is not working either, I'm numbering one by one in Track # on tags.
In log collections of 4 or more cds.... it's a nightmare.

Question: what, why and when it was changed the function counter ()??
Thanks for your help!!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Numbering tracks from certain number
« Reply #3 on: April 29, 2013, 10:35:57 am »

Counter() works fine.  Select your tracks, and edit the Track # field via F2 (or Tag Action Window) and enter either:

  =counter(100)

or

  =math(100 + counter())
Logged
The opinions I express represent my own folly.

DaremoS

  • World Citizen
  • ***
  • Posts: 151
  • Rock is not just music... is a way of living
Re: Numbering tracks from certain number
« Reply #4 on: April 29, 2013, 10:41:42 pm »

YESSSSSSSS!!!!!

It has never changed!!!... It's me who forgot the syntax of the function  :-[ :-[ :-[ :-[
The darn equal sign!!!

I've known this since 2008 look here: http://yabb.jriver.com/interact/index.php?topic=48678.0

Thanks for the clue!
Logged

SkGe

  • Galactic Citizen
  • ****
  • Posts: 433
Re: Numbering tracks from certain number
« Reply #5 on: June 30, 2013, 12:44:35 am »

Counter() works fine.  Select your tracks, and edit the Track # field via F2 (or Tag Action Window) and enter either:

  =counter(100)

or

  =math(100 + counter())

How can you do to counter multiple albums but to show you the number of tracks of each album, ex. album=10, album=15 and so on. What i do with your expression is i create a new field with =math(0 + counter()) but when i try to do on multiple albums it will counter all and not return the exact number of tracks. I use move/copie fields to write on larger numbers of albums instead one per row. Maybe you can help me!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Numbering tracks from certain number
« Reply #6 on: June 30, 2013, 01:21:42 pm »

I'm not sure I'm understanding, but I think you are asking how you can number tracks from 1 to n, for each album.  Is this correct?

I can think of a technique to do this, but please confirm that's what you want.

Counter() increments each time it is used.  It does timeout and reset after about 5 seconds, which isn't useful for you here.
Logged
The opinions I express represent my own folly.

SkGe

  • Galactic Citizen
  • ****
  • Posts: 433
Re: Numbering tracks from certain number
« Reply #7 on: June 30, 2013, 01:39:43 pm »

I'm not sure I'm understanding, but I think you are asking how you can number tracks from 1 to n, for each album.  Is this correct?

I can think of a technique to do this, but please confirm that's what you want.

Counter() increments each time it is used.  It does timeout and reset after about 5 seconds, which isn't useful for you here.
Yes, for what u say, i want to write on a separate field what i create the number of tracks on album, but that mean i need to do manually, and i want a solution to do for multiple albums.
What i create with your exp works, but only for single album selection, not on all, like it say count from 0 to n numbers and that is not a solution.
Hope now you understand my idea.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Numbering tracks from certain number
« Reply #8 on: June 30, 2013, 03:13:32 pm »

You're going to have to create a new view, or modify the current view, to accomplish this.  It is a little complicated.  It numbers the tracks based on the order they are listed in the view's file list.

1. Add these rules to Set rules for file display under Customize View...   Use the Import/Export button to paste them in:

Code: [Select]
[Filename (path)]=[M:\Testing" [=save(0,v_ntracks_AlbumKey())1]=1 [=save(math(1+load(v_ntracks_AlbumKey())), v_ntracks_AlbumKey())1]=1 [=save(math(max(load(v_maxtn_AlbumKey()),[track #])),v_maxtn_AlbumKey())1]=1
2. Select all the tracks in the view and in the Tag Action Window, enter:

    =Counter()

into the Track # field.  This will assign a monotonically increasing number to each track.  We'll fix this in the next step.

3. Now, with the same tracks selected, enter the following into Track # in the TAW:

   =math([track #] - (load(v_maxtn_AlbumKey()) - load(v_ntracks_AlbumKey())))

This uses some calculations performed in the Set rules for file display to fix-up the track numbers, adjusting them downwards by the per-album total track count and maximum track number.

The expressions will need to be adjusted to deal with multi-disc albums though.
Logged
The opinions I express represent my own folly.

SkGe

  • Galactic Citizen
  • ****
  • Posts: 433
Re: Numbering tracks from certain number
« Reply #9 on: June 30, 2013, 03:50:03 pm »

I will try this later what you gave me, and thx for the response like always :)
Logged
Pages: [1]   Go Up