• 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
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


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
RE: ChordPro and images - by laurent - 12-21-2020, 06:18 PM
RE: ChordPro and images - by BRX - 12-22-2020, 08:19 PM
RE: ChordPro and images - by sciurius - 12-23-2020, 07:23 PM
RE: ChordPro and images - by Heronimus - 07-30-2021, 10:37 PM
RE: ChordPro and images - by NeoCZ - 12-23-2020, 08:12 PM
RE: ChordPro and images - by eichelbe - 12-31-2020, 06:07 PM
RE: ChordPro and images - by sciurius - 12-31-2020, 06:50 PM
RE: ChordPro and images - by eichelbe - 12-31-2020, 07:06 PM
RE: ChordPro and images - by charly44 - 05-27-2021, 03:43 AM
RE: ChordPro and images - by tr4npt - 01-05-2023, 03:18 PM
RE: ChordPro and images - by Zubersoft - 01-05-2023, 03:49 PM



Users browsing this thread:
1 Guest(s)


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