Question on .abc files

Discussion in 'General Discussion' started by Ysold, Aug 1, 2020.

Tags:
  1. Ysold

    Ysold Avatar

    Messages:
    114
    Likes Received:
    157
    Trophy Points:
    18
    Location:
    Soryn Fields Market
    Hi folks,

    Today I have been messing around with .abc files . I already solved at lot of issues, like where to place them to be able to play them in game, and which ABC-converter to use (I settled on EasyABC), but an issue still remains.

    I seem to be able to play only single note tunes. When I start a tune that has chords, I get the message "started playing ....", so that's ok, but all I hear is silence. Are only single note tunes allowed, or is there a way to make the game play my 'chord'-tunes? Or do I need to tweak the .abc file? Or do I need another file format?

    Any help is greatly appreciated!
    Ysold.
     
  2. scroda

    scroda Empyrean Enforcer

    Messages:
    205
    Likes Received:
    368
    Trophy Points:
    30
    there's a bug where switching scenes can prevent you from hearing your own instrument.

    can you put up copies of one that works and one that doesn't up on pastebin? or use starbound composer.
     
    Ysold likes this.
  3. Ysold

    Ysold Avatar

    Messages:
    114
    Likes Received:
    157
    Trophy Points:
    18
    Location:
    Soryn Fields Market
    Sure!

    This one works:
    Code:
    X:230
    T:B230-  If love's a sweet passion
    S:by H. Purcell
    Q:1/4=120
    L:1/4
    M:3/4
    K:Gm
    d|c3/2d/2B|cAd|B3/2A/2 (B/2G/2)|G2e/2d/2|
    cc(c/4d/4e/2)|dBd|(de/2)d/2c|d2||d/2c/2|\
    =Bcd|ecf|GAB|A2d|edg|(g/2f/2) (g/2f/2) (e/2d/2)|\
    (e/2d/2) (c/2d/2) (c/2B/2)|B2d/2e/2|\
    cc(c/4d/4e/2)|ed*d/4=e/4f/2)|f=e(e/4^f/4g/2)|\
    ^f3/2e/2d|g(d/2e/2)f|dB\/c/2d|B3/2A/2G|G2|]
    
    And this one doesn't:
    Code:
    
    X:1
    T:If Love is Sweet Passion
    C: Purcell
    M:3/4
    L:1/8
    K:Gm
    [d2G2B,2G,2] [c2D2A,2G,2] ^F,[dDB,] | [G2D2G,2G,2] [c2E2A,2C,2] [A2D2^F,2D,2] | [d2D2G,2B,,2] [B2E2G,2E,2]>[A2E2G,2C,2] | [BD^F,D,]G [G4D4G,4G,,4] | [eGB,G,][dGB,G,] [c2G2C2A,2] [c2F2C2A,2] |
    [d/F/C/F,/][e/G/][fA] [d2F2D2B,2] [BGDB,]A, | [dDB,G,]F, [d2G2B,2E,2] e[G/B,/F,/]d/ | [c2A2E2E,2] [d4^F4A,4D,4] | [d2G2B,2G,2] [c2D2A,2G,2] ^F,[dDB,] |
    [G2D2G,2G,2] [c2E2A,2C,2] [A2D2^F,2D,2] | [d2D2G,2B,,2] [B2E2G,2E,2]>[A2E2G,2C,2] | [BD^F,D,]G [G4D4G,4G,,4] | [eGB,G,][dGB,G,] [c2G2C2A,2] [c2F2C2A,2] |
    [d/F/C/F,/][e/G/][fA] [d2F2D2B,2] [BGDB,]A, | [dDB,G,]F, [d2G2B,2E,2] e[G/B,/F,/]d/ | [c2A2E2E,2] [d4^F4A,4D,4] | [d^FDD,][c=FDD,] [=BGEG,][DF,] [c2G2C2E,2] |
    [d2G2=B,2D,2] [e2G2C2C,2] [c2F2A,2F,2] | [f2F2B,2D,2] [GFB,E,]D, [A2E2C2C,2] | [B2D2F,2B,,2] [A4C4F,4F,4] | [dFA,F,]e [eB,G,G,]C [dDA,F,]B, |
    [g2E2C2E,2] [gA,CD,]f [g2D2B,2B,,2] | [eGB,E,]d [eGB,C,]d [cEA,F,]d | [cF,,][BDB,] [B4D4B,4B,,4] | [dFB,B,]>[eFB,B,] [c2F2C2B,2] [c2F2C2B,2] |
    [c/F/C/B,/]d/e [e2F2C2B,2] [d2G2B,2B,2] | [c/G/D/=B,/]d/f [f2G2D2C2] [=eACC]D | [f/A/=E/^C/]f/g2< [^f2A2D2D2][e=C] | [dADB,][ADA,] [g2B2D2G,2] [dBB,G,]e |
    [f2A2C2A,2] [d2A2D2B,2] [BGDB,]c | [d2G2D2C2] [B2G2D2D2]>[A2G2D2D2] | [GGDD,]^F [G7/2G7/2D7/2G,7/2] |
    
    Both can be played in the EasyABC program.
     
  4. Toular

    Toular Avatar

    Messages:
    512
    Likes Received:
    498
    Trophy Points:
    63
    I have literally dozens of ABC, all use chords just fine. I use Maestro to convert midi files with multiple instruments to ABC and my own script to convert the resulting ABC file to a band file with individual parts for the instruments available in Sota. Those instrument files each have chords. So, at first glance, I would say that EasyABC is doing something wrong.

    Comparing your ABC with one of min, I see that there is no "Q". That indicates the song's tempo. From http://abcnotation.com/wiki/abc:standard:v2.0#qtempo

    3.1.8. Q: - tempo
    Defines the tempo in terms of a number of beats per minute, e.g. Q:1/2=120 means 120 half-note beats per minute.

    I changed the header in the ABC file to this and I can play it. In my case on the lute.
    X:1
    T:If Love is Sweet Passion
    C: Purcell
    M:3/4
    Q: 50
    L:1/8
    K:Gm


    I suspect the tempo of 50 bpm might be a little slow for this song, as it sounds a little ..."plodding" at 50 bpm.

    So, it would seem that EasyABC has a default bpm and is "forgiving" if one is not specified.
     
    Ysold and Anpu like this.
  5. Ysold

    Ysold Avatar

    Messages:
    114
    Likes Received:
    157
    Trophy Points:
    18
    Location:
    Soryn Fields Market
    Thank you sooo much, @Toular! That worked perfectly and with some experimenting to get the right tempo, I can now play my favorite Purcell tunes, wheeee!
     
    Anpu likes this.
  6. scroda

    scroda Empyrean Enforcer

    Messages:
    205
    Likes Received:
    368
    Trophy Points:
    30
    you're welcome
     
  7. Toular

    Toular Avatar

    Messages:
    512
    Likes Received:
    498
    Trophy Points:
    63
    You're very welcome. It was like a puzzle. I like solving puzzles.
     
    Anpu and Alley Oop like this.
  8. majoria70

    majoria70 Avatar

    Messages:
    9,889
    Likes Received:
    24,048
    Trophy Points:
    153
    Gender:
    Female
    Location:
    United States
    I use easyabc. I have about 2000 songs saved to my Sota sheet music folder. I really never learned how to tweak songs I just get them mostly already created from a lotto site. I have solo songs and lots of songs that need a group to play. Not sure if you've sync'd songs but it is a lot of fun imo. Let me know if I can help or advise any time. Also many sample songs around town in Wizards Rest located behind Owlshead in Hidden Vale. Have fun
     
  9. Xiones

    Xiones Avatar

    Messages:
    216
    Likes Received:
    273
    Trophy Points:
    18
    Location:
    Dark Side of the Moon
    I have a working version of Zoot's MotA Maestro, if you would like a copy send me a private message..