User:Chrisjjj/TINT: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
(Fork of https://tango.info/wiki/TINT)
 
No edit summary
Line 8: Line 8:
  <nowiki><TIN><separator><Side#><separator><Track#></nowiki>
  <nowiki><TIN><separator><Side#><separator><Track#></nowiki>


* [[TIN]] (14-digit number)
* [[TIN]] (14-digit decimal number)
* Side# (decimal number without leading zeros)
* Side# (decimal number without leading zeros)
* Track# (decimal number without leading zeros)
* Track# (decimal number without leading zeros)
Line 19: Line 19:
** for Unix/Linux: 00008637207120/1/1 ("TINT/" or "'''TINT forward slash'''")
** for Unix/Linux: 00008637207120/1/1 ("TINT/" or "'''TINT forward slash'''")
** for Windows: 00008637207120\1\1 ("TINT\" or "'''TINT backslash'''")
** for Windows: 00008637207120\1\1 ("TINT\" or "'''TINT backslash'''")
== Regex ==
It has the regex:
([0-9]{14})([\\/-])([0-9]{1,})([\\/-])([0-9]{1,})
Note: This regexp matches also non-TINT [[User:Chrisjjj|Chrisjjj]] 2010-08-09T19:42:27 (UTC)


==TINT and tags==
==TINT and tags==
The components of TINT are usefully stored in the audio file tags, for example:
The components of a TINT may usefully be stored in the audio file tag, for example:
*TIN - stored in a custom sub-field of the Album field, e.g. '''King of Rhythm 1937-1944 [00008637207120]'''
*TIN - stored in a custom sub-field of the Album field, e.g. '''King of Rhythm 1937-1944 [00008637207120]'''
*Side# - stored in the particular format's equivalent field, as either the entire tag value or where the tag value is in two-part format, the first part e.g. the '''1''' in '''1/2''' for the first disc of a two-disc album. E.g.
*Side# - stored in the particular format's equivalent field, as either the entire tag value or where the tag value is in two-part format, the first part e.g. the '''1''' in '''1/2''' for the first disc of a two-disc album. E.g.
Line 42: Line 36:
** if having in album name '''King of Rhythm 1937-1944 [00008637207120]'''
** if having in album name '''King of Rhythm 1937-1944 [00008637207120]'''
*** ToDo ? probably something like $left($right(%album%,15)),14)-$num($max(1,%discnumber%),2)-%track%, or search for [ and ] for a more advanced
*** ToDo ? probably something like $left($right(%album%,15)),14)-$num($max(1,%discnumber%),2)-%track%, or search for [ and ] for a more advanced
==TINT and pathnames==
TINT may be used as the basis of the track pathnames in in audio library. This allows standardisation across and within libraries, providing e.g. permanent references for playlists.
See [[TINT-based filing]]


==See also==
==See also==

Revision as of 2013-04-27T17:06:37


Overview

A TINT is a reference to one track of one side of one album, and is of the form:

<TIN><separator><Side#><separator><Track#>
  • TIN (14-digit decimal number)
  • Side# (decimal number without leading zeros)
  • Track# (decimal number without leading zeros)
  • separator (the separator character of choice)

Examples

  • 00008637207120-1-1 ("TINT hyphen-minus")
  • 00008637207120.1.1 ("TINT dot")
  • In TINT-based filing \ or / is used ("TINT slash").
    • for Unix/Linux: 00008637207120/1/1 ("TINT/" or "TINT forward slash")
    • for Windows: 00008637207120\1\1 ("TINT\" or "TINT backslash")

TINT and tags

The components of a TINT may usefully be stored in the audio file tag, for example:

  • TIN - stored in a custom sub-field of the Album field, e.g. King of Rhythm 1937-1944 [00008637207120]
  • Side# - stored in the particular format's equivalent field, as either the entire tag value or where the tag value is in two-part format, the first part e.g. the 1 in 1/2 for the first disc of a two-disc album. E.g.
  • Track# - stored as normal in the format's Track Number field.
  • Foobar
    • if barcode and discnumber are present, if no discnumber "1" is assmue
      • $num(%barcode%,14)-$num($max(1,%discnumber%),2)-%track%
    • if barcode is there and discnumber is absent, assume discnumber "1"
      • $num(%barcode%,14)-$num($max(1,%discnumber%),2)-%track%
    • if having in album name King of Rhythm 1937-1944 [00008637207120]
      • ToDo ? probably something like $left($right(%album%,15)),14)-$num($max(1,%discnumber%),2)-%track%, or search for [ and ] for a more advanced

See also