• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ChordPro and images
#1
Recently our band banned all books and went all-tablet. I will not deny that I played a part in that process Wink. 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.
Code:
{image: uri width=nnn height=nnn border=0 center scale=nnn}
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.
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
www.johanvromans.nlwww.hetgeluidvanseptember.nlwww.howsagoin.nl
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0, AirTurn Duo & Digit.
Samsung A3 (A320FL), Android 8.0.0 (emergency).
Reply


Messages In This Thread
ChordPro and images - by sciurius - 03-31-2016, 06:17 PM
RE: ChordPro and images - by itsme - 03-31-2016, 08:37 PM
RE: ChordPro and images - by sciurius - 03-31-2016, 09:35 PM
RE: ChordPro and images - by Zubersoft - 04-01-2016, 03:20 AM
RE: ChordPro and images - by sciurius - 04-01-2016, 04:03 AM
RE: ChordPro and images - by Zubersoft - 04-01-2016, 04:24 AM
RE: ChordPro and images - by AndyL - 04-02-2016, 12:55 AM
RE: ChordPro and images - by Zubersoft - 04-02-2016, 09:16 PM
RE: ChordPro and images - by itsme - 04-02-2016, 09:53 PM
RE: ChordPro and images - by NeoCZ - 11-15-2018, 05:53 AM
RE: ChordPro and images - by Zubersoft - 11-18-2018, 05:43 AM
RE: ChordPro and images - by sciurius - 11-18-2018, 08:19 AM
RE: ChordPro and images - by Zubersoft - 11-18-2018, 11:47 AM
RE: ChordPro and images - by sciurius - 11-19-2018, 06:34 AM
RE: ChordPro and images - by NeoCZ - 11-19-2018, 07:59 AM
RE: ChordPro and images - by sciurius - 11-20-2018, 06:47 PM
RE: ChordPro and images - by Zubersoft - 11-22-2018, 02:50 AM
RE: ChordPro and images - by sciurius - 11-22-2018, 07:42 AM
RE: ChordPro and images - by sciurius - 11-22-2018, 09:18 PM
RE: ChordPro and images - by Zubersoft - 11-23-2018, 02:02 AM
RE: ChordPro and images - by sciurius - 11-23-2018, 04:32 AM
RE: ChordPro and images - by Geoff Bacon - 11-23-2018, 05:19 AM
RE: ChordPro and images - by sciurius - 11-23-2018, 06:18 AM
RE: ChordPro and images - by ammelch - 09-27-2019, 02:19 AM
RE: ChordPro and images - by Zubersoft - 09-27-2019, 02:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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