Difference between revisions of "TINT-based filing"

From tango.info wiki
Jump to: navigation, search
(From filesystem to file)
Line 2: Line 2:
 
[[Category:data]]
 
[[Category:data]]
 
==Overview==
 
==Overview==
 +
 +
[[TINT]]-based filing is an audio track filenaming scheme that uses only the track's [[TINT]] as the distinguishing segment of the full pathname, as follows:
 +
 +
<pre><nowiki><root>\<TIN>\<Disc#>\<Track#>.ext</nowiki></pre>
 +
 +
where <tt>\</tt> represents the folder name separator appropriate to the filing system.
  
==TINT/ and TINT\==
+
For example, track 1 of disc 1 of the album having TIN 00008637207120 may have the pathname <pre>C:\My Music\00008637207120\1\1.flac</pre>
Note: For Unix, Linux etc. the form is TINT/ and for Windows the form is TINT\.
 
 
[[TINT]]\ may be used as the basis of a music library's filepath format e.g. track 1 of disc 1 of the album having TIN 00008637207120 has the filepath <tt>C:\My Music\00008637207120\1\1.flac</tt>.
 
  
The TINT subpath is fixed forever. It contains no metadata, so avoids metadata correction causing inconsistentcy or breakage of references from e.g. playlists. The TINT subfilepath is constant across multiple libraries, allowing playlist to be transported, file extension and content set permitting.
+
Since a track's TINT is fixed forever, so is the TINT segment of its pathname. The pathname contains no metadata, so metadata variation (e.g. correction) cannot cause incompatibility or breakage of references from e.g. playlists. The TINT segment is constant across multiple libraries, allowing playlist to be transported (file extension and content set permitting).
  
The fact that TINT includes the disc segment number even for single-disc albums means that the folder tree level of track files is uniform for all albums, allowing access to are creation of TIN fields in scriptiong to be uniform.
+
The fact that TINT includes the disc segment number even for single-disc albums ensures the folder tree level of track files is uniform for all albums, allow uniform access to and creation of TIN fields e.g. in scripted processes.
  
 
===Examples===
 
===Examples===
Line 22: Line 25:
 
To ease identification when browsing the folder tree directly, each album folder may contain a file named '''<Album> - <Album Artist>.txt''' or '''.htm'''. This can contain track metadata.
 
To ease identification when browsing the folder tree directly, each album folder may contain a file named '''<Album> - <Album Artist>.txt''' or '''.htm'''. This can contain track metadata.
  
To ease location of a particular album, there may additional subfolders holding descriptively-named links/shortcuts:
+
To ease location of a particular album, the root folder may contain additional subfolders holding descriptively-named links/shortcuts:
 
*"!Explore by Album title" holding links/shortcuts named '''<Album> - <Album Artist>.lnk'''
 
*"!Explore by Album title" holding links/shortcuts named '''<Album> - <Album Artist>.lnk'''
* "!Explore by Album Artist" holding links/shortcuts named '''<Album Artist> - <Album>.lnk'''.
+
*"!Explore by Album Artist" holding links/shortcuts named '''<Album Artist> - <Album>.lnk'''.
  
 
===Use in librarians===
 
===Use in librarians===
* MediaMonkey - to find a track by TINT\, enter the TINT\ followed by . into the quick search box (on the Search toolbar).
+
* MediaMonkey - to find a track by TINT, into the quick search box (on the Search toolbar), enter TINT followed by . (dot).
  
 
===Use in Mp3tag===
 
===Use in Mp3tag===
* Within Mp3tag script, TINT\ path fields are accessible as the following placeholders:
+
* Within Mp3tag script, TINT path fields are accessible as the following placeholders:
 
**TIN - %_parent_directory%
 
**TIN - %_parent_directory%
 
**Disc# - %_directory%
 
**Disc# - %_directory%
 
**Track# - %_filename%
 
**Track# - %_filename%
*Tag values may be set to TINT\ path values e.g:
+
*Tracks may be tagged from their TINT paths:
**Convert | Filename - Tag, Format string: <tt>%discnumber%\%track%</tt>
+
**Convert | Filename - Tag, Format string: <tt>\%TIN%\field%discnumber%\%track%</tt> (Note: %TIN% is a custom field.)
*Track paths may be changed to TINT-based:
+
*Tracks may be renamed to TINT-based names:
**Convert | Tag - Filename, Format string:<pre>C:\My Music\$regexp(%album%,'.*\[(\d{14})\]',\1)\$regexp(%discnumber%,(.*)/.*,\1)\%track%</pre> (where Album contains [TIN], and discnumber and track fields are set)
+
**Convert | Tag - Filename, Format string:<pre>C:\My Music\$regexp(%album%,'.*\[(\d{14})\]',\1)\$regexp(%discnumber%,(.*)/.*,\1)\%track%</pre> (where Album contains [TIN], and discnumber and track fields are valid.)
**Convert | Tag - Filename, Format string:<pre>C:\My Music\$regexp(00$regexp(%album%,.*\'['(\d{12,14})\']',\1),.*(\d{14}),\1)\$regexp(%discnumber%,(.*)/.*,\1)\%track%</pre> (where Album contains [UPC/EAN/TIN], and discnumber and track fields are set)
+
**Convert | Tag - Filename, Format string:<pre>C:\My Music\$regexp(00$regexp(%album%,.*\'['(\d{12,14})\']',\1),.*(\d{14}),\1)\$regexp(%discnumber%,(.*)/.*,\1)\%track%</pre> (where Album contains [UPC/EAN/TIN], and discnumber and track fields are valid.)
  
==Other TINT-based schemes==
+
==Partially TINT-based schemes==
 
===Examples===
 
===Examples===
 
====Concise====
 
====Concise====
Line 57: Line 60:
  
 
==From filesystem to file==
 
==From filesystem to file==
;windows
+
;Windows
1. create a .bat file containing the following line
+
# At Start | Run, enter the command
DIR  C:\your-path-name\*.flac /b/s > C:\your-path-name\myflacfiles.txt
+
<pre>DIR  C:\your-path-name\*.flac /b/s > C:\your-path-name\myflacfiles.txt</pre>
 
+
# The output will be written to C:\your-path-name\myflacfiles.txt
2. run the .bat file (click on the file)
 
 
 
3. the output will be written to C:\your-path-name\myflacfiles.txt
 
  
 
==See also==
 
==See also==
 
*[[pathnames]]
 
*[[pathnames]]

Revision as of 2008-03-25T19:57:36

Overview

TINT-based filing is an audio track filenaming scheme that uses only the track's TINT as the distinguishing segment of the full pathname, as follows:

<root>\<TIN>\<Disc#>\<Track#>.ext

where \ represents the folder name separator appropriate to the filing system.

For example, track 1 of disc 1 of the album having TIN 00008637207120 may have the pathname

C:\My Music\00008637207120\1\1.flac

Since a track's TINT is fixed forever, so is the TINT segment of its pathname. The pathname contains no metadata, so metadata variation (e.g. correction) cannot cause incompatibility or breakage of references from e.g. playlists. The TINT segment is constant across multiple libraries, allowing playlist to be transported (file extension and content set permitting).

The fact that TINT includes the disc segment number even for single-disc albums ensures the folder tree level of track files is uniform for all albums, allow uniform access to and creation of TIN fields e.g. in scripted processes.

Examples

  • single-disc album
    • C:\My Music\00828766933420\1\1.flac
  • multi-disc album
    • C:\My Music\08427328146067\1\1.flac
    • C:\My Music\08427328146067\2\1.flac

Use in Windows Explorer

To ease identification when browsing the folder tree directly, each album folder may contain a file named <Album> - <Album Artist>.txt or .htm. This can contain track metadata.

To ease location of a particular album, the root folder may contain additional subfolders holding descriptively-named links/shortcuts:

  • "!Explore by Album title" holding links/shortcuts named <Album> - <Album Artist>.lnk
  • "!Explore by Album Artist" holding links/shortcuts named <Album Artist> - <Album>.lnk.

Use in librarians

  • MediaMonkey - to find a track by TINT, into the quick search box (on the Search toolbar), enter TINT followed by . (dot).

Use in Mp3tag

  • Within Mp3tag script, TINT path fields are accessible as the following placeholders:
    • TIN - %_parent_directory%
    • Disc# - %_directory%
    • Track# - %_filename%
  • Tracks may be tagged from their TINT paths:
    • Convert | Filename - Tag, Format string: \%TIN%\field%discnumber%\%track% (Note: %TIN% is a custom field.)
  • Tracks may be renamed to TINT-based names:
    • Convert | Tag - Filename, Format string:
      C:\My Music\$regexp(%album%,'.*\[(\d{14})\]',\1)\$regexp(%discnumber%,(.*)/.*,\1)\%track%
      (where Album contains [TIN], and discnumber and track fields are valid.)
    • Convert | Tag - Filename, Format string:
      C:\My Music\$regexp(00$regexp(%album%,.*\'['(\d{12,14})\']',\1),.*(\d{14}),\1)\$regexp(%discnumber%,(.*)/.*,\1)\%track%
      (where Album contains [UPC/EAN/TIN], and discnumber and track fields are valid.)

Partially TINT-based schemes

Examples

Concise

  • C:\My Music\08427328146067-2\1.flac [TINT]
  • C:\My Music\08427328146067-2-1.flac [TINT]
  • C:\My Music\08427328146067\2-1.flac [TINT]

Verbose

  • C:\My Music\828766933420-1_El_rey_del_compas_(1941-1943)\1 El rey del compás.flac
  • C:\My Music\40 Grandes Exitos (CD1 of 2) 8427328146067-1\01 Patotero sentimental.flac
  • C:\My Music\08427328146067\2-9_de_julio.flac - would be ambiguous if context scheme was undefined.

Non-TINT-based schemes

  • C:\My Music\08427328146067-002\1.flac
  • C:\My Music\El rey del compas (1941-1943) 828766933420\1 El rey del compás.flac
  • C:\My Music\828766933420_El_rey_del_compas_(1941-1943)\1 El rey del compás.flac

From filesystem to file

Windows
  1. At Start | Run, enter the command
DIR  C:\your-path-name\*.flac /b/s > C:\your-path-name\myflacfiles.txt
  1. The output will be written to C:\your-path-name\myflacfiles.txt

See also