Announcement

Collapse
No announcement yet.

ATF syntax problem please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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,↗ )
    $IfStrEqual(%tracknumber%,02,→ )$IfStrEqual(%tracknumber%,03,↘ ), )

    3/ PUBLISHER & YEAR ( Here i display some tag infos i need in a dashboard style)

    code:
    $if(%publisher%,$ifgreater($strstr(%publisher%,instru),0,i≡ , ), )
    $if(%publisher%,$ifgreater($strstr(%publisher%,love),0,♥ , ), )
    $if(%genre%,$ifgreater($strstr(%genre%,Kids),0,KID , ), )
    $if(%genre%,$ifgreater($strstr(%genre%,Synth),0,SYN , ), )
    $if(%genre%,$ifgreater($strstr(%genre%,Folk),0,FOL , ), )
    $if(%genre%,$ifgreater($strstr(%genre%,Club),0,CLB , ), )
    $if(%year%,%year%, )
    $if(%publisher%,$ifgreater($strstr(%publisher%,fun),0,ω , ), )
    $if(%publisher%,$ifgreater($strstr(%publisher%,xp),0,xp , ), )
    $if(%publisher%,$ifgreater($strstr(%publisher%,evenement),0,▲ , ), )

    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%)
    [ | %composer%]


    Could someone help me to understand my mystakes please ? I'm blocked alone
    Thanks a lot !
    Last edited by gilougilougilou; 1 February 2017, 15:46.

  • #2
    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

    Comment


    • #3
      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; 1 February 2017, 23:09.

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎