03-29-2025, 09:07 AM
Hey,
I would like to use .abc notation for all my brazilian choro tunes, with Mobilesheets as my viewer of choice, because it is awesome.
One of the prerequisites is that I can control how it looks like on my 10" Android tablet, more precisely:
* I want to use all the vertical space, so that the notes are as big as possible
* I don't necessarily want to use all the horizontal space, because if I remove all left and right margin, the notes are sometimes too spaced out and I find it harder to read.
Here is a sample piece that I have:
The process I'm going through right now to tweak the rendering of the ABC for my tablet is:
1. I set %%rightmargin and %%leftmargin to 0
2. I set %%pagescale (defined just before the notes after the headers) to the highest value that
* uses all the vertical space
* doesn't have measures overflowing to another line, I want to keep the same number of lines defined in the ABC.
3. I then adjust %%rightmargin and %%leftmargin to higher values if I find that the notes are too spread apart.
This works, but it is a bit tedious, I need to do it for every piece, and if I send the .abc file to someone else with a tablet with other dimensions, it might not display as well.
I understand the "crop" feature doesn't work for .abc files as the music sheet is rendered on opening. But could we imagine to have an option in Mobilesheets Pro to "fit to page" so that I don't have to specify the "%%pagescale" at all?
Any other suggestions are welcome.
Additionally, I noticed that %%topmargin and %%botmargin don't seem to do anything. Looking at this documentation [ http://moinejf.free.fr/abcm2ps-doc/index.html ] for abc2svg, it seems it's only taken into account for "page" mode, which I'm not sure what this is.
Thanks again for the awesome work on Mobilesheets and I hope this .abc integration will bring a lot of new users.
I would like to use .abc notation for all my brazilian choro tunes, with Mobilesheets as my viewer of choice, because it is awesome.
One of the prerequisites is that I can control how it looks like on my 10" Android tablet, more precisely:
* I want to use all the vertical space, so that the notes are as big as possible
* I don't necessarily want to use all the horizontal space, because if I remove all left and right margin, the notes are sometimes too spaced out and I find it harder to read.
Here is a sample piece that I have:
Quote:%%propagate-accidentals octave
%%partsfont Times-BoldItalic 20 box
%%leftmargin 50
%%rightmargin 50
%%topmargin 0
%%botmargin 0
X:1
T:Seu Louren\cco no Vinho
C: Pixinguinha/Benedito Lacerda
%%MIDI gchord fc2cfhcf
M:2/4
L:1/16
P:AABBACCA
Q:1/4=92
R:Choro
K:C clef=treble
%%pagescale 1.20
P:A
: E Gcec | "G7"df2d BAGF | "C"E2zE Gcec | "G7"df2d BAGF |
"C"EGce dcBA | "E7"^GBdf edcB | "Am"A^GAB cBA=G | "D7"^F2zd cA^FD |
"G7"A3G zA^GA | "A7"_BA^GA "A7/C#"BA^GA | "Dm"_BA^GA BA^GA | "A7"d^c^Bc dcBc |
"Dm"ed^cd edf2 | "Fm6"z_afd c_AFD | "C/E"GEGc "Ab7"_A_EAc | "Dm"AFAc "G7"BGBd | "C"c2 .|
P:B
[K: Am]: B dcBA | "E7/G#"^GE^DE GEDE | "Am"AE^DE cEDE | "E7/B"B2^GB dfed |
"A7/C#"^cege cAGE | "Dm"D2e2 d2z2 | "Am/E"z2d2 c2z2 | "B7/D#"zcBc BcBc |
"E7"BcBc BcBc | "G7"Beda gfdB | "C"dcfe dcBA | "E7/G#"^G2z2 EGBd |
"A7"^ceg_b agfe | "Dm"gfdB AFDB, | "Am"z2e2 "F7"z2f2 | "Bb"z2 _b2 "E7"z2e2 | "Am"za2 .|
P:C
[K: F]: c Bcdc | "F"f3A ^GABA | "F/A"c3F EFGF | "F"AC=B,C FAce |
"Gm"dcBG E2z2 | "A7"zage ^c_BAG | "Dm"FAd^c edA=B | "A"^cecA "E7/G#"=BdB^G |
"A"Az3 z4 | "D7/F#"z2c2 B2A2 | "Gm"D3A "G7/B"G4 | "C7"z2B2 A2G2 | "F"c2Ac "Db"ffff |
"Ddim"z^G=Bd "Bbm6/Db"ffff | "F"zagf edc=B | "Gm"_Bc^cd "C7"AG=cA | "F"F3 .|
The process I'm going through right now to tweak the rendering of the ABC for my tablet is:
1. I set %%rightmargin and %%leftmargin to 0
2. I set %%pagescale (defined just before the notes after the headers) to the highest value that
* uses all the vertical space
* doesn't have measures overflowing to another line, I want to keep the same number of lines defined in the ABC.
3. I then adjust %%rightmargin and %%leftmargin to higher values if I find that the notes are too spread apart.
This works, but it is a bit tedious, I need to do it for every piece, and if I send the .abc file to someone else with a tablet with other dimensions, it might not display as well.
I understand the "crop" feature doesn't work for .abc files as the music sheet is rendered on opening. But could we imagine to have an option in Mobilesheets Pro to "fit to page" so that I don't have to specify the "%%pagescale" at all?
Any other suggestions are welcome.
Additionally, I noticed that %%topmargin and %%botmargin don't seem to do anything. Looking at this documentation [ http://moinejf.free.fr/abcm2ps-doc/index.html ] for abc2svg, it seems it's only taken into account for "page" mode, which I'm not sure what this is.
Thanks again for the awesome work on Mobilesheets and I hope this .abc integration will bring a lot of new users.