• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chord formatting error
#1
Hello y'all!
Here's a line of ChordPro code for you:
Code:
[Bm7][Bm6]   [Bm add(#5)]   [Bm]

What happens is that the third chord is half formatted as text (the Bm part) and half formatted as chord (the add(#5) part).
Reply
#2
Hi,

I don't think you are posting in the right place - what you are asking about is a Chordpro issue, not a MobileSheets one.

MobileSheets expects the correct Chordpro format to be used and the Chordpro chord format does not permit spaces!  If you change the chord to [Bmadd(#5)] it will work. If you want to see a gap between "Bm" and "add" you will need to use an underscore or a dash between. Same applies for all applications incorporating Chordpro format.
Reply
#3
I'd like Sciurius to provide feedback on this as he manages the chord pro specification. I'm not sure why the code isn't handling [Bm add(#5)] correctly - I'll have to look into that. In theory, I would have expected that to work, so if it's a simple change to make that work correctly, I'll update the code. 

Mike
Reply
#4
(01-10-2020, 02:04 AM)Little-Uke Wrote: Hi,

I don't think you are posting in the right place - what you are asking about is a Chordpro issue, not a MobileSheets one.

MobileSheets expects the correct Chordpro format to be used and the Chordpro chord format does not permit spaces!  If you change the chord to [Bmadd(#5)] it will work. If you want to see a gap between "Bm" and "add" you will need to use an underscore or a dash between. Same applies for all applications incorporating Chordpro format.

It may be true that the Chordpro format doesn't allow spaces in a chord. But I noticed that the chord like I wrote it with the space between is formatted just fine in other contexts, just not in this one. I think the irregularity pointed me towards the conclusion that this might be a bug.
Reply
#5
Formally, ChordPro does not impose restrictions on what can be a chord name. Anything is valid, e.g.,

    [A Quick Fox]Jumps over the dog

However, if you want your favourite ChordPro processing tool to do something intelligent with your chord (e.g., print a diagram, or transpose) then you may find that the tools impose restrictions on what chord name are recognized. Generally accepted chord names are like Am and C#maj7#5. And in general spaces are not allowed. (Yes, there are exceptions.)

So even though it is not a formal restriction of the ChordPro format, it is best to stick to generally accepted chord names and not use spaces.

EDIT: Having said all that, I agree that [Bm add5] should completely render in chord style, just like [A cappella], [Coda], [Fine], etc..
Johan
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).
Reply
#6
With a normal line of lyrics and chords, [Bm add(#5)] renders just fine as a chord in MobileSheetsPro. It's only when it's on a line by itself with other chords and no lyrics at all. So I'll take a look into that, but the problem is pretty minor.

Mike
Reply




Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.