Posts: 13,381
Threads: 302
Joined: Apr 2012
Reputation:
237
07-12-2024, 03:47 AM
(This post was last modified: 07-12-2024, 03:47 AM by Zubersoft.)
I can't use abc2svg - it's written in javascript and not designed to be consumed as a library from an Android application. I'm currently using abcm2ps.
Mike
Posts: 1,231
Threads: 194
Joined: May 2015
Reputation:
13
ABC, like ChordPro, is a loosely defined format. Renderers have lots of freedom in how the result will look.
The way MobileSheets renders ChordPro is accurate, but there are slight (hopefully harmless) differences with the rendering of ChordPro and other tools. This will be the case for ABC as well. Smaller page width, different fonts, ...
When you process an ABC source with abcsvg you will get a different result than when you include the source in the ChordPro program. It also uses abcsvg but different page width, different fonts, ...
As soon as MobileSheets supports images in ChordPro I'll add an option to the ChordPro program to turn the ABC data into an SVG image so you'll get near identical results. But you'll lose the ability to transpose in MobileSheets.
Bottom line: Expect good results, but do not expect identical results.
On the other hand, when you give the same piece of music to different musicians, you'll get slightly different results as well ☺.
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,047
Threads: 112
Joined: Dec 2015
Reputation:
11
Hey Sciurius, thanks again for your input.
I'm sure it will work out somehow. For transposing one can get back to the chordpro file, transpose there and generate the image again (maybe there will be a way to keep MS annotations to the image file if it is generated again).
Jef was pretty firm that he doesn't intend to add any new features into abcm2ps and puts those only into abc2svg.
But I intend to ask him again, if he might make an exception and maybe add at least the chord grid function so it works in MS (or EasyABC). I would be very happy to have that because then we would have something like iRealPro (I'm not talking about the backing music) but with melody, chords, lyrics PLUS a chord grid if needed.
Posts: 1,231
Threads: 194
Joined: May 2015
Reputation:
13
(07-12-2024, 09:38 PM)BRX Wrote: the chord grid function You mean diagrams? Or grid like {start_of_grid}/{end_of_grid}?
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,047
Threads: 112
Joined: Dec 2015
Reputation:
11
(07-12-2024, 10:39 PM)sciurius Wrote: (07-12-2024, 09:38 PM)BRX Wrote: the chord grid function You mean diagrams? Or grid like {start_of_grid}/{end_of_grid}?
I mean grid (I'm a pianist. I have no need for guitar diagrams if that's what you meant :-) ). The grid functionality is something I suggested to Jef and he kindly obliged to program it into abc2svg.
Posts: 1,231
Threads: 194
Joined: May 2015
Reputation:
13
How is this different from {start_of_grid}/{end_of_grid}?
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,047
Threads: 112
Joined: Dec 2015
Reputation:
11
It isn't. You misunderstood (or I did).
But it won't work with abcm2ps if Mike uses that for MS ABC "native support" while (I presume) it would work through chordpro for showing the ABC grid in MS.
That was my point. (What was yours?)
Posts: 1,231
Threads: 194
Joined: May 2015
Reputation:
13
I misunderstood. You want iRealPro style grids (in ChordPro: {start_of_grid}/{end_of_grid}) in ABC and that's only available in abcsvg.
BTW, ChordPro can do iRealPro style grids, too. Even in Technicolor™.
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,381
Threads: 302
Joined: Apr 2012
Reputation:
237
Version 3.9.0 includes support for {start_of_grid}/{end_of_grid} in MobileSheets, so you wouldn't have to rely on ABC for that.
While my initial implementation uses abcm2ps, if there are a lot of reasons to go with abc2svg, then I'll have to see how difficult it would be to embed a javascript engine in all of the different platforms and execute the javascript files that way. I just hope it's not asynchronous in nature, because that would make it a huge headache for processing the images (I'd have to just sit there monitoring the output until I see a file pop into existance which is less than ideal).
Mike
Posts: 1,047
Threads: 112
Joined: Dec 2015
Reputation:
11
I know. I followed your development and it made me considering actually using it instead of iRealPro since I can use it in MS (I previously shared the common dislike that you couldn't work very well with the cpro files to accompany someone if you didn't know the tune's melody by heart, much easier with a grid).
I always wanted to ask if you have or can provide some (Python) conversion tools for iRealPro and ABC to cpro format (grids) to avoid manually transcribing files into cpro format. But since the ABC support is coming soon it's not that important anymore. But out of pure interest: Have you?
Posts: 1,231
Threads: 194
Joined: May 2015
Reputation:
13
I have Perl tools for several conversions. Not iRealPro to ChordPro grid (ChordPro can handle iRealPro with a delegate).
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,047
Threads: 112
Joined: Dec 2015
Reputation:
11
Yes, I meant Perl script. of course. Will read up on delegates.
Posts: 45
Threads: 6
Joined: Jan 2024
Reputation:
0
just bumping the topic to see if I can get an estimate on the release of 3.9. Can't wait for full native abc file support in MSP.
Thx!
Posts: 13,381
Threads: 302
Joined: Apr 2012
Reputation:
237
I'm making the final changes for the Windows version of the companion to get the installer ready, and then I'll just have to do some final testing with that. After that, I have a couple days of work to do porting changes to Windows and iOS (and testing those changes), and then I can release 3.9.0. Then I will work on figuring out how to distribute the Linux and MacOS versions of the companion app, as I still have some work to do figuring that all out.
Mike
|