• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ChordPro versus Text
#1
Hi,

When a ChordPro file that has extension ".txt" is imported, [Chords] are still recognized, but {directives} are not. Is this intentional?
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
#2
Yes, I don't treat text files as chord pro files. I process the two files differently as I have to do more processing to figure out what things are valid chords in a text file and what lines are chord lines versus lyrics. If there was some way to uniquely identify that a text file is actually a chord pro file, I could treat it as such, but the problem is that various parts of my application care about the extension that is used, so unless I renamed the file during import, it could cause issues in my code.
Reply
#3
I assume you mean this text format:
Code:
      D          G    D
Swing low, sweet chariot,

In the case I have at hand the files are real ChordPro files, there's just some tool (GuitarTapp?) that shares them with extension .txt.

I think you may safely assume a .txt file to contain ChordPro content when it starts with {title...} or {new_song} and then rename it during import.
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




Users browsing this thread:
2 Guest(s)


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