• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resize chordpro with abc
#1
Hello
When resizing (with my fingers) a *.pro file containing both text data and abc data, text data size changes correctly, but the abc graph always keep the same size.

Is this behaviour correct?

I attack an example with which you can test

Thanks


Attached Files
.pro   C106 Aleluya.pro (Size: 280 bytes / Downloads: 3)
Reply
#2
Yes, there is no scaling applied to ABC segments, as there is no setting at the moment to control that. That's something I can consider adding.

Mike
Reply
#3
Thanks
Since I discovered ABC, the small size of the files, avoid modifying and managing PDF, and the possibility of transporting chords and scores at the same time, I think it would be great if you could consider it.
Reply
#4
(11-19-2024, 06:23 AM)Zubersoft Wrote: Yes, there is no scaling applied to ABC segments, as there is no setting at the moment to control that. That's something I can consider adding.

Mike

Hi Mike,

are you sure about that?
There is an %%scale-option existing in ABC.
I am using that currently to format my sheets.

The only major problem I have with it is that the scaling factor works depending on the screen resolution of the tablet. As a result, I need different scaling factors for my Surface Pro and my Android tablet.
Since I assume that you can read out the screen resolution, it should be possible to calculate the respective scaling factor so that the display is identical on each end device, right?

Then the annotations would always be more or less in the same place in the song (ok, not when transposing with many accidentals).
There are still some issues not working perfect, but by changing the following ABC parameters, I always get a very good screen display on my Surface Pro for every sheet with one or two pages.

%%gchordfont sans-serifBoldItalic 12
%%partsfont serifBold 16
%%partsbox 1
%%vocalfont Helvetica 10
%%wordsfont Times-Roman 14
%%stretchlast 1
%%scale 2.3

Here is a video, showing how this parameters are working in mobilesheets.
https://youtu.be/Jjo8iU3I0PA
---------------------------------------------------------
13" - Point of View POV_TAB-P1325, Android 4.1.1
13" - Point of View POV_TAB-I1345, Android 5.1.1
Microsoft Surface Pro 4; Windows 10
Phone: Motorola Moto G3, Android 6.0
Reply
#5
I was not suggesting that I needed to implement scaling in the ABC library or anything of that sort. I was suggesting that I would need to add things to control the scaling, i.e. UI components, data in the database to store the setting for that value (like the other text display settings), and then the code to feed the scaling into the ABC file.

I am currently feeding a scaling factor into the ABC rendering based on the display density of the screen (pixels per inch). This will have to be handled differently when I switch to using abc2svg.

Mike
Reply
#6
I'd expect that "fixed page size" also works for ChordPro files that contain ABC sections. And I'd expect pinch zoom to work on a displayed song no matter where it comes from.
first language: German
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 22H2 - Huawei Media Pad T5, Android 8.0 - Boox Tab Ultra C, Android 11
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de


Reply




Users browsing this thread:
1 Guest(s)


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