Help - Search - Members - Calendar
Full Version: Columns UI title formatting for beginners
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
miscellanea
Okay I decided to start.

In this thread, we make configs for, and with (<-important), newbie users.

Some users want to customize title formatting, but give up. They say it's complicating.

I think TAGZ is like a source code, but we don't need knowledge for programming (we only need interests).
I quote two good comments (by upNorth and Lyx).
http://www.hydrogenaudio.org/forums/index....ndpost&p=273399
http://www.hydrogenaudio.org/forums/index....ndpost&p=273404

You can ask questions or requests and we will make some example code about them, but what is important mostly is that you should try your own code. No matter how it looks. Writing your formatting is encouraged.
Lucky that in "General" section attachment is disabled, we can only paste code here. So, you have to copy them and paste to your own if you want it. You can modify it, and learn from it. Try to find the answer and show us your fb2k looks.

Here is "for beginners" section, so TAGZ functions in here will be limited to simple ones. %album artist% or something like that ("Tag-Standards") will not be used. If you want some advanced, this is a nice guide.
http://www.hydrogenaudio.org/forums/index....showtopic=31530

I'm not an expert (I've been keeping code simplicity, in other words I must be lazy tongue.gif ), so from here I can also learn more about TAGZ.
hedge153
Not really sure that this question belongs in this thread, but I can't find a better thread at the moment so...
If i declare a var in globals, like for instance $puts(blah,0), and export it, can i then use $add and $sub to modify the value of 'blah', and will this new value remain after that column has been displayed?
miscellanea
hmm, "0" in $puts(blah,0) is text, so I'm afraid it can't be used in such situation.
Lyx
Just a quick comment for those who think that they need to be programmers to understand TAGZ:

I'm actually very bad at abstract maths - not just that, i'm bad at abstract and complex systems in general. Almost every non-macro programming-language looks like hyroglyphs to me and i just cannot get into it. I do have a quite good sense in logic and intuition, but that only works as long as i can imagine it in my head.

Start small and simple instead of trying to achieve right away what the big popular formattings do.

- Lyx
miscellanea
QUOTE(Lyx @ Feb 21 2005, 06:00 PM)
Just a quick comment for those who think that they need to be programmers to understand TAGZ:

I'm actually very bad at abstract maths - not just that, i'm bad at abstract and complex systems in general. Almost every non-macro programming-language looks like hyroglyphs to me and i just cannot get into it. I do have a quite good sense in logic and intuition, but that only works as long as i can imagine it in my head.

Start small and simple instead of trying to achieve right away what the big popular formattings do.

- Lyx
*



Hmm, that's it. (because I'm also bad at maths biggrin.gif) Thanks for comment smile.gif
Synthetic Soul
QUOTE(hedge153 @ Feb 21 2005, 07:53 AM)
Not really sure that this question belongs in this thread, but I can't find a better thread at the moment so...
If i declare a var in globals, like for instance $puts(blah,0), and export it, can i then use $add and $sub to modify the value of 'blah', and will this new value remain after that column has been displayed?
Any such functions will not amend the value of the variable. These functions take values and return results. The values used are not altered by the function.

So:

$put(blah,0)
$crlf()
$add(blah,10)
$crlf()
$get(blah)


... will return:

0
10
0


If you wanted to add 10 to blah use the $add function and allocate the result back to blah, so:

$put(blah,0)
$crlf()
$put(blah,$add(blah,10))
$crlf()
$get(blah)


... will return:

0
10
10

QUOTE(hedge153 @ Feb 21 2005, 07:53 AM)
and will this new value remain after that column has been displayed?
It will persist for any column, but not for the next row.
Synthetic Soul
QUOTE(Lyx @ Feb 21 2005, 09:00 AM)
Start small and simple instead of trying to achieve right away what the big popular formattings do.
My suggestion would be this: trial and error.

The copy command is an easy place to test. If you are unsure how a function operates or whether a combination is possible try it - you won't break anything! Copy your existing copy command to Notepad for safe keeping and have a play. Make the code as simple as possible (i.e.: only test one line if possible, not ten at a time) and see what happens. It's a lot more fun if you can work it out for yourself.

Edit: 1. I suggest the copy command for those, like me, who are using Columns UI and don't want to keep messing with their title, tray or status bar text - but I guess other areas will allow you to test more quickly. I don't use the copy command for anything but testing, so that's my test area of choice. 2. Keep an eye on the Preview text box when entering your code in Preferences - this will give you an immediate view of the result of your code.
miscellanea
@ Synthetic Soul

nice explanation (about function) smile.gif I've never used it, so it's interesting.

QUOTE
It's a lot more fun if you can work it out for yourself.


Yes, that's because I want to make another config.
miscellanea
just a quick guideline for posting codes (example) :

Length column Display tab :
CODE
$if2(%_length%,%_time_elapsed%)

Bitrate column Display tab :
CODE
$if(%__bitrate%,%__bitrate%kbps,)

like this.

Colour codes are also accepted.
hedge153
QUOTE(Synthetic Soul @ Feb 21 2005, 10:08 PM)
It will persist for any column, but not for the next row.
*


Heh bugga cos i was wanting it to persist for the next row.... sad.gif oh wells thanks for the explanation.
Synthetic Soul
QUOTE(hedge153 @ Feb 22 2005, 01:46 AM)
QUOTE(Synthetic Soul @ Feb 21 2005, 10:08 PM)
It will persist for any column, but not for the next row.
Heh bugga cos i was wanting it to persist for the next row.... sad.gif oh wells thanks for the explanation.
I thought you probably meant row. I was a little disappointed to discover this also - it is slightly limiting. In some instances you just have to be a little bit more inventive, but in others you're simply scuppered.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.