Posts: 1,234
Threads: 194
Joined: May 2015
Reputation:
13
11-16-2016, 07:48 PM
(This post was last modified: 11-16-2016, 10:19 PM by sciurius.
Edit Reason: Typo
)
(This is actually one of the new features of the ChordPro v5 standard)
If a {comment} contains a chord between [brackets], render it without the brackets but allow it to be transposed.
For example:
Code: {comment: Intro [C] [G] [F] [C]}
would show as "Intro C G F C", but when the song is transposed up a full tone it shows as "Intro D A G D".
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).
Posts: 1,903
Threads: 296
Joined: Sep 2014
Reputation:
33
Can I read more about the upcoming ChordPro v5 standard somewhere? Did you discuss with Mike if MSP will support it?
Posts: 1,903
Threads: 296
Joined: Sep 2014
Reputation:
33
Currently I write things like that as
Code: {comment: Intro}
[C] [G] [F] [C]
or
Code: [Intro] [C] [G] [F] [C]
That's why I appreciate that MSP allows just chords without any lyrics (1st example) and formats anything in square brackets like chords (2nd example)
Both have some disadvantages compared with your proposal
Posts: 1,234
Threads: 194
Joined: May 2015
Reputation:
13
For the upcoming ChordPro v5 standard, see http://www.chordpro.org/chordpro/v50.html .
As for discussing with Mike: That's what this feature request is for.
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).
Posts: 1,903
Threads: 296
Joined: Sep 2014
Reputation:
33
Thank you for the info.
How about making "Stay tuned for the upcoming release of ChordPro format version 5.0!" on http://www.chordpro.org/chordpro/index.html a link to that draft page?
Marking the new features of V 5.0 would help to understand what's going to happen.
Posts: 1,234
Threads: 194
Joined: May 2015
Reputation:
13
Excellent suggestion, thanks!
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).
Posts: 1,903
Threads: 296
Joined: Sep 2014
Reputation:
33
(11-17-2016, 04:27 AM)sciurius Wrote: Excellent suggestion, thanks! You're fast ;-) Thanks
Posts: 1,234
Threads: 194
Joined: May 2015
Reputation:
13
Trying to be like Mike
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).
Posts: 13,539
Threads: 302
Joined: Apr 2012
Reputation:
241
I'll have to work on slowly adding the new features in the v5.0 spec. Some things like the new image directive may be restricted depending upon the OS and permissions. For example, in Windows 10, I cannot access any file outside the storage location, as universal apps are very restricted in terms of what files they can access. So that means the image would need to use a relative path most likely, but then it's up to the user to provide the images beside the text file (which I'm not sure how I would handle during the import process). That's probably just a feature that users who manage their own storage location would utilize.
Posts: 1,234
Threads: 194
Joined: May 2015
Reputation:
13
I think it is acceptable to restrict this to (or "is guaranteed to work only for") images that reside in the same folder as the referring ChordPro document.
It is also acceptable to require (e.g.) the specified image file name to correspond to a file under management of MSPro, (another real or pseudo) song, so the image files can be imported and managed just like all the other MSPro files.
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).
Posts: 84
Threads: 18
Joined: Feb 2015
Reputation:
0
(11-16-2016, 10:22 PM)sciurius Wrote: For the upcoming ChordPro v5 standard, see http://www.chordpro.org/chordpro/v50.html .
As for discussing with Mike: That's what this feature request is for.
Took a quick peek, looks like some good stuff that would make MSP even more awesomererer! Thanks much for the effort.
Samsung Note 10.1 GT-N8013ZW / iPad Pro / AirTurn BT-105 / AirTurn BT200S-4
Posts: 13,539
Threads: 302
Joined: Apr 2012
Reputation:
241
I've added support for transposing chords in comments based upon the version 5 standard. This will be available in version 1.7.8.
Mike
Posts: 1,234
Threads: 194
Joined: May 2015
Reputation:
13
Great! Thanks a lot!
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).
Posts: 1,903
Threads: 296
Joined: Sep 2014
Reputation:
33
Great. I definetely will use it.
It would be even more valuable if I could specify font parameters like font size, font color, background color, bold, italic ... independently for comment, comment_italic and other ChordPro styles.
Posts: 13,539
Threads: 302
Joined: Apr 2012
Reputation:
241
I'll see what I can do with that at some point. It's going to require a lot more changes than what I had to do to support transposing chords in comments though. I also have to change the transposing logic based upon the feedback you both provided me in that other thread, so that is probably higher priority.
|