TINT-based filing: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
No edit summary
(→‎Examples: + TINP-link)
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:tango.info]]
[[Category:Tango.info]]
[[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:
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>  
<pre><nowiki><root>/<TINP>/<Side#>/<Track#>.<ext></nowiki></pre>  


where <tt>\</tt> represents the folder name separator appropriate to the filing system.
where <tt>/</tt> 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 <pre>C:\My Music\00008637207120\1\1.flac</pre>
For example, track 1 of CD 1 of the album having [[TINP]] 00008637207120 may have the pathname <pre>C:/My Music/00008637207120/1/1.flac</pre>


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).
(OS: Windows; audio file format: FLAC)


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.
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 playlists to be transported e.g. interpreted unambiguously in the absence of the original library; played on a library having the same file extension, subject to coverage.


===Examples===
The fact that TINT includes the side segment even for single-side albums ensures the folder tree level of track files is uniform for all albums, allowing uniform access to and creation of TIN fields e.g. in scripted processes.
* single-disc album
**<tt>C:\My Music\'''00828766933420'''\'''1'''\'''1'''.flac</tt>
*multi-disc album
**<tt>C:\My Music\'''08427328146067'''\'''1'''\'''1'''.flac</tt>
**<tt>C:\My Music\'''08427328146067'''\'''2'''\'''1'''.flac</tt>


===Use in Windows Explorer===
==Examples==
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.
* single-CD album {{TINP|00828766933420}}
**<tt>C:/My Music/'''00828766933420'''/'''1'''/'''1'''.flac</tt>
* double-CD album {{TINP|08427328146067}}
**<tt>C:/My Music/'''08427328146067'''/'''1'''/'''1'''.flac</tt>
**<tt>C:/My Music/'''08427328146067'''/'''2'''/'''1'''.flac</tt>
* double-LP album {{TINP|02480002331643}}
**<tt>C:/My Music/'''02480002331643'''/'''1'''/'''1'''.flac</tt>
**<tt>C:/My Music/'''02480002331643'''/'''2'''/'''1'''.flac</tt>
**<tt>C:/My Music/'''02480002331643'''/'''3'''/'''1'''.flac</tt>
**<tt>C:/My Music/'''02480002331643'''/'''4'''/'''1'''.flac</tt>
 
==Use in Windows Explorer==
To ease identification when browsing the folder tree directly, each album folder may be 'labelled' with e.g. '''<Album> ; <Album Artist>''' by putting a file of this name in the album directory e.g. [[TINTed album labelling]]. Also, this label file may contain track metadata.


To ease location of a particular album, the root folder may contain 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:
Line 29: Line 35:
*"!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, into the quick search box (on the Search toolbar), enter TINT followed by . (dot).
* MediaMonkey - to find a track by TINT, in the quick search box (on the Search toolbar) enter TINT followed by . (dot).
 
==Use for playlists==
:see [[TINT playlist]]


===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%
**TINP - %_parent_directory%
**Disc# - %_directory%
**Side# - %_directory%
**Track# - %_filename%
**Track# - %_filename%
*Tracks may be tagged from their TINT paths:
*TINT fields may be copied from path to tags:
**Convert | Filename - Tag, Format string: <tt>\%TIN%\field%discnumber%\%track%</tt> (Note: %TIN% is a custom field.)
**Convert | Filename - Tag, Format string: <pre>\%TIN%\%discnumber%\%track%</pre>(Note: %TIN% is a custom field.)
*Tracks may be renamed to TINT-based names:
*TINT fields may be copied from tags to path i.e. the path is changed to TINT-based:
**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.)
**Where the Album tag contains the string [TINP] (i.e. the TINP inside square brackets), and discnumber and track fields are present:
**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.)
***Convert | Tag - Filename, Format string:<pre>$regexp(%album%,'.*\[(\d{14})\]',\1)\$regexp(%discnumber%,(.*)/.*,\1)\$add(%track%,0)</pre>
**Where the Album tag contains the album [[barcode number]] as UPC, EAN or TIN, and discnumber and track fields are present:
***Convert | Tag - Filename, Format string:<pre>$regexp(00$regexp(%album%,.*\'['(\d{12,14})\']',\1),.*(\d{14}),\1)\$regexp(%discnumber%,(.*)/.*,\1)\$add(%track%,0)</pre>


==Partially TINT-based schemes==
==See also==
===Examples===
* [[TINT usage]]
====Concise====
* [[Partially TINT-based filing]]
*<tt>C:\My Music\'''08427328146067'''-'''2'''\'''1'''.flac</tt> [TINT]
* [[TINT-based filing migration]]
*<tt>C:\My Music\'''08427328146067'''-'''2'''-'''1'''.flac</tt> [TINT]
* [[pathnames]]
*<tt>C:\My Music\'''08427328146067'''\'''2'''-'''1'''.flac</tt> [TINT]
* [[listing pathnames to file]]
====Verbose====
*<tt>C:\My Music\'''828766933420'''-'''1'''_El_rey_del_compas_(1941-1943)\'''1''' El rey del compás.flac</tt>
*<tt>C:\My Music\40 Grandes Exitos (CD1 of 2) '''8427328146067'''-'''1'''\'''01''' Patotero sentimental.flac</tt>
*<tt>C:\My Music\'''08427328146067'''\'''2'''-'''9'''_de_julio.flac</tt> - would be ambiguous if context scheme was undefined.


==Non-TINT-based schemes==
==From talk==
*<tt>C:\My Music\'''08427328146067'''-'''002'''\'''1'''.flac</tt>
*[[User:Chrisjjj|Chrisjjj]] Explanation of the purpose is needed for '''From filesystem to file'''
*<tt>C:\My Music\El rey del compas (1941-1943) '''828766933420'''\'''1''' El rey del compás.flac</tt>
** you can export TINTs from your libary and give to other people [[User:Tobiasco|Tobiasco]] 2008-03-29T22:54:07 (UTC)
*<tt>C:\My Music\'''828766933420'''_El_rey_del_compas_(1941-1943)\'''1''' El rey del compás.flac</tt>


==From filesystem to file==
===change from "Other TINT" to "Partially TINT"===
;Windows
.. looks wrong
# At Start | Run, enter the command
*https://tango.info/x/wiki/w/index.php?title=TINT-based_filing&diff=next&oldid=12141 ( Other TINT-based schemes -> Partially TINT-based schemes ) [[User:Tobiasco|Tobiasco]]
<pre>DIR  C:\your-path-name\*.flac /b/s > C:\your-path-name\myflacfiles.txt</pre>
** it looks like change of definition.
# The output will be written to C:\your-path-name\myflacfiles.txt
*** I see no change of definition. If you do, please quote the old and new text. I do see a change to examples - as labelled they did not accord with the definition and I rectified this by adjusting the labelling. [[User:Chrisjjj|Chrisjjj]] 2008-04-10T17:45:55 (UTC)
*TINT is TIN + D# + T# separated by two separators? [[User:Tobiasco|Tobiasco]] 2008-03-29T22:54:07 (UTC)
** [[User:Chrisjjj|Chrisjjj]] The separator must be "the folder name separator appropriate to the filing system".
*** since when? [[User:Tobiasco|Tobiasco]] 2008-04-07T00:01:17 (UTC)
**** Since I wrote that. [[User:Chrisjjj|Chrisjjj]] 2008-04-09T22:38:58 (UTC)


==See also==
===if i have almost TINT based filing===
*[[pathnames]]
... but tracks have leading zero, how to remove this in mp3tag? [[User:Tobiasco|Tobiasco]] 2008-04-07T00:01:17 (UTC)

Latest revision as of 2018-12-18T01:46:16

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>/<TINP>/<Side#>/<Track#>.<ext>

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

For example, track 1 of CD 1 of the album having TINP 00008637207120 may have the pathname

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

(OS: Windows; audio file format: 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 playlists to be transported e.g. interpreted unambiguously in the absence of the original library; played on a library having the same file extension, subject to coverage.

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

Examples

  • single-CD album 00828766933420
    • C:/My Music/00828766933420/1/1.flac
  • double-CD album 08427328146067
    • C:/My Music/08427328146067/1/1.flac
    • C:/My Music/08427328146067/2/1.flac
  • double-LP album 02480002331643
    • C:/My Music/02480002331643/1/1.flac
    • C:/My Music/02480002331643/2/1.flac
    • C:/My Music/02480002331643/3/1.flac
    • C:/My Music/02480002331643/4/1.flac

Use in Windows Explorer

To ease identification when browsing the folder tree directly, each album folder may be 'labelled' with e.g. <Album> ; <Album Artist> by putting a file of this name in the album directory e.g. TINTed album labelling. Also, this label file may 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, in the quick search box (on the Search toolbar) enter TINT followed by . (dot).

Use for playlists

see TINT playlist

Use in Mp3tag

  • Within Mp3tag script, TINT path fields are accessible as the following placeholders:
    • TINP - %_parent_directory%
    • Side# - %_directory%
    • Track# - %_filename%
  • TINT fields may be copied from path to tags:
    • Convert | Filename - Tag, Format string:
      \%TIN%\%discnumber%\%track%
      (Note: %TIN% is a custom field.)
  • TINT fields may be copied from tags to path i.e. the path is changed to TINT-based:
    • Where the Album tag contains the string [TINP] (i.e. the TINP inside square brackets), and discnumber and track fields are present:
      • Convert | Tag - Filename, Format string:
        $regexp(%album%,'.*\[(\d{14})\]',\1)\$regexp(%discnumber%,(.*)/.*,\1)\$add(%track%,0)
    • Where the Album tag contains the album barcode number as UPC, EAN or TIN, and discnumber and track fields are present:
      • Convert | Tag - Filename, Format string:
        $regexp(00$regexp(%album%,.*\'['(\d{12,14})\']',\1),.*(\d{14}),\1)\$regexp(%discnumber%,(.*)/.*,\1)\$add(%track%,0)

See also

From talk

  • Chrisjjj Explanation of the purpose is needed for From filesystem to file
    • you can export TINTs from your libary and give to other people Tobiasco 2008-03-29T22:54:07 (UTC)

change from "Other TINT" to "Partially TINT"

.. looks wrong

  • https://tango.info/x/wiki/w/index.php?title=TINT-based_filing&diff=next&oldid=12141 ( Other TINT-based schemes -> Partially TINT-based schemes ) Tobiasco
    • it looks like change of definition.
      • I see no change of definition. If you do, please quote the old and new text. I do see a change to examples - as labelled they did not accord with the definition and I rectified this by adjusting the labelling. Chrisjjj 2008-04-10T17:45:55 (UTC)
  • TINT is TIN + D# + T# separated by two separators? Tobiasco 2008-03-29T22:54:07 (UTC)
    • Chrisjjj The separator must be "the folder name separator appropriate to the filing system".
      • since when? Tobiasco 2008-04-07T00:01:17 (UTC)
        • Since I wrote that. Chrisjjj 2008-04-09T22:38:58 (UTC)

if i have almost TINT based filing

... but tracks have leading zero, how to remove this in mp3tag? Tobiasco 2008-04-07T00:01:17 (UTC)