![]() |
#1 |
Junior Member
Join Date: Feb 2017
Posts: 23
|
ATF syntax problem please
Hi there is some things I misunderstand with ATF syntax, if someone with knowledge could help ? I'm lost, thanks a lot
I have those elements working perfect separatly as PART A & PART B but when I'm making a big string there is syntax errors. Here you may wanna have a look on what I'm trying to do ![]() http://imagesia.com/winamp_1cvyt STRING PART A 1/ CATEGORY ( Displaying energy level from another software, 1 to 9 in a level bar) code:$if(%category%,$ifgreater(%category%,9, ,$repeat(▓,%category%)$repeat(░,$sub(9,%category%))),) 2/ TRACKNUMBER ( I don't need real tracknumbers, here i display another energy tag, more like mouvement, from 1 to 3 up / middle / down) code:$if(%tracknumber%,$IfStrEqual(%tracknumber%,01,↗ ) 3/ PUBLISHER & YEAR ( Here i display some tag infos i need in a dashboard style) code:$if(%publisher%,$ifgreater($strstr(%publisher%,instru),0,i≡ , ), ) STRING PART B 4/ RATING ( Trying to keep it centered and if rating=5 it display a big star ★ instead of five ●) code:$if(%rating%,$ifgreater(5,%rating%,$repeat( ,$sub(4,%rating%))$repeat(●,%rating%)$repeat( ,$sub(4,%rating%)), ★ ), ) 5/ COMMENT ( Display harmonic and bpm from another software) code:$if(%comment%,%comment%$repeat( ,$sub(12,$len(%comment%))), ) 6/ FILENAME & COMPOSER ( Minimal here but efficient for the moment i will work on later if I can fix this before) code:$filepart(%filename%) Could someone help me to understand my mystakes please ? I'm blocked alone ![]() Thanks a lot ! Last edited by gilougilougilou; 1st February 2017 at 16:46. |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Mar 2010
Location: Canada
Posts: 757
|
When formatting titles, there can be no more than 1022 characters in the ATF string. I know from trial and error.
If you enter more, Winamp truncates the string without warning. This will probably cause a syntax error. Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2017
Posts: 23
|
What's the point with doing a complex informatic language if you can't write more than 1022 characters, ok thank you so much that's what I was missing, I will try to find how to reduce the code at his max. Any ideas are welcome
Last edited by gilougilougilou; 2nd February 2017 at 00:09. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|