03-31-2016, 06:17 PM
Recently our band banned all books and went all-tablet. I will not deny that I played a part in that process
. Our rehearsal breaks now look pretty much like a computer club...
A question that frequently pops up is: hows can I combine (fragments of) a score with a ChordPro lead sheet. The answer is no, you cannot. So I started thinking.
Basically, the generic is how to embed an image in a ChordPro. And I think this wouldn't even be that hard to implement.
So I propose a new ChordPro directive.
This is not unlike the <img> in HTML. The uri is mandatory, the other items are optional.
The choice for uri is to avoid platform issues with file names, however the most simple form (a plain file name without path) should also be allowed.
Width and height can be used to specify the desired dimensions of the image. The image will be resized if necessary.
By default the image will be stretched to the width of the display, this can be disabled with scale=0. Other values for scale will do what can be expected.
For example, a hypothetical ChordPro fragment and its hypothetical output.
The possibilities are numerous...
There are some open ends to this proposal (how to handle backup/restore, to name one) but I'm sure these can be worked out.
What do you think?
![Wink Wink](https://www.zubersoft.com/mobilesheets/forum/images/smilies/wink.gif)
A question that frequently pops up is: hows can I combine (fragments of) a score with a ChordPro lead sheet. The answer is no, you cannot. So I started thinking.
Basically, the generic is how to embed an image in a ChordPro. And I think this wouldn't even be that hard to implement.
So I propose a new ChordPro directive.
Code:
{image: uri width=nnn height=nnn border=0 center scale=nnn}
The choice for uri is to avoid platform issues with file names, however the most simple form (a plain file name without path) should also be allowed.
Width and height can be used to specify the desired dimensions of the image. The image will be resized if necessary.
By default the image will be stretched to the width of the display, this can be disabled with scale=0. Other values for scale will do what can be expected.
For example, a hypothetical ChordPro fragment and its hypothetical output.
Code:
[C]What you're gonna find who you want to be
But you [Bb]might have to pick between these three
{image: riedel.png}
{c:A capella + gitaarslagje/pingel}
[Dm]Rock Paper [Bb]Scissors which one [F]is it's your de[C]cision
The possibilities are numerous...
There are some open ends to this proposal (how to handle backup/restore, to name one) but I'm sure these can be worked out.
What do you think?
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).
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).