User Tools

Site Tools


columns_ui:tips_and_tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
columns_ui:tips_and_tricks [2005/02/09 16:01] – added some info on titleformatting musicmusiccolumns_ui:tips_and_tricks [2012/10/07 03:55] (current) – Reverted vandalism 98.248.89.12
Line 1: Line 1:
-====== Tips and tricks ======+====== New user tips ======
  
 You may never see the light of day if you try and read the entire Columns UI thread, so this most of the useful information for new users will slowly be filled in here. You may never see the light of day if you try and read the entire Columns UI thread, so this most of the useful information for new users will slowly be filled in here.
 +
 +FIXME Actually add some useful content here
  
 ===== Formatting tips ===== ===== Formatting tips =====
 +
 +==== Choosing a playlist view ====
 +
 +Newer versions of **columns_ui** include two versions of the playlist view: a legacy version (Columns Playlist) and a newer version that supports embedded artwork (NG Playlist).
 +
 +To experiment with the following examples, install the legacy playlist view, //Columns Playlist//. Also locate the Globals tab in the __Playlist view__ preferences panel and place a checkmark next to //"Enable legacy support for globals"//.
 +
 +Experimenting with the legacy playlist view affords you the opportunity to get your feet wet with the TAGZ language. You can switch to NG Playlist once you become more comfortable with TAGZ. Scripts are readily transferable to the new interface, although some built-in variable names are changed.
 +
 ==== Understanding titleformatting ==== ==== Understanding titleformatting ====
-Rather than blindly using someone elses config, it is best to get a grasp of the titleformatting language, so you can create personalised configs. The language used in titleformatting is tagz; an overview of it is available in the titleformat_help.html file in your foobar2000 directory. Several useful function were also added after that document was last updated. These include+Rather than blindly using someone elses config, it is best to get a grasp of the titleformatting language, so you can create personalised configs yourself. The language used in titleformatting is tagz; for more information see the articles below
-  * $codec()\\ returns codec tech info field if available, or file extension otherwise +  * [[ha>Foobar2000:Titleformat_Introduction|Titleformat Introduction]] 
-  * $tracknumber([x])\\ returns tracknumber if available, zero paddded to x digits. +  * [[ha>Foobar2000:Titleformat_Reference|Titleformat Reference]
-  * $channels\\ returns a number of channels, word description if stereo or mono +
-  * %_filesize%\\ filesize of file in bytes +
-Square brackets denote an optional field+
 ==== Filesize in MB ==== ==== Filesize in MB ====
-<code tagz>$div(%_filesize%,1048576).$num($muldiv($mod(%_filesize%,1048576),100,1048576),2) MB</code>+<code tagz>$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB</code> 
 + 
 + 
 +==== Filesize in KB ==== 
 +<code tagz>$ifgreater($div(%_filesize%,1024,1000),1,$div(%_filesize%,1024,1000)',',)$right($div(%_filesize%,1024),3)' KB'</code> 
 ==== Alternating track colours ==== ==== Alternating track colours ====
 In your colour string, use this code for the colour you wish to alternate: In your colour string, use this code for the colour you wish to alternate:
 <code tagz>$ifequal($mod(%_playlist_number%,2),0,<colour a>,<colour b>)</code>replacing <colour a> and <colour b> with your desired colours. <code tagz>$ifequal($mod(%_playlist_number%,2),0,<colour a>,<colour b>)</code>replacing <colour a> and <colour b> with your desired colours.
 +
 +==== Making groups of alternating colours ====
 +To create alternating colours for groups of three songs (three red, three blue), use the following code:<code tagz>$ifgreater($mod($add(%_playlist_number%,2),6),2,0000dd,dd0000)</code>Replace 0000dd and dd0000 with your preferred colours. The number '2' in '%_playlist_number%,2' above may be replaced with a different value (say, 5) to align the desired colour with your first list item.
 +
 +For those using the newer **NG Playlist** interface, the above code looks something like this:<code tagz>$ifgreater($mod($add(%_display_index%,1),6),2,$set_style(text,0000dd),$set_style(text,dd0000))</code>The //_display_index// variable could be replaced with //list_index// if desired. Notice that //list_index// does not use a leading underscore. Also notice the offset value was adjusted to **1** because the group title occupies the first line.
columns_ui/tips_and_tricks.1107964865.txt.gz · Last modified: 2007/08/25 22:58 (external edit)