From: Arshia C. <ars...@an...> - 2017-01-06 11:34:28
|
Hello Dominique et al. So in order to create an artificial rendered dynamic zoom, I believe we should be playing around with StaffFormat’s Size parameter (3pt by default), combined with API’s Spring parameter to introduce more space between events. I believe it’s doable. For the StaffFormat, I can see three ways of doing it. I’m wondering which one you’d recommend me to go for: (1) Modify the GMN source (such as in GuidoAR). Not ideal since it’d reduce dynamicity of the library and not elegant! :) (2) Modify the AR attributes of all staves, and re-render (3) Directly modify parameters in the GR domain, such as staffLSPACE (or similar) after a thorough study of dependencies, and re-render Let me know which way you’d pick and I’ll go through the necessary learning curve. Arshia > On 04 Jan 2017, at 14:58, Dominique Fober <fo...@gr...> wrote: > > >> Le 4 janv. 2017 à 14:40, Arshia Cont <ars...@an... <mailto:ars...@an...>> a écrit : >> >> Thank you Dominique. >> >> The StaffFormat tag’s Size parameter seems to be able to do the job, if we change the GMN score directly. >> >> Is there a way to control this parameter for the entire score from the API? I don’t see anything like this in GuidoGrParameters that I can control from the API. > > no, the API is not designed to affect the guido code itself (in a given way, that’s what it should do to control this parameter) > >> >> I tried creating a “zoom” using the PageFormat of the API but somehow the HEIGHT parameter is not as effective as the WIDTH parameter. Meaning that I can get “pages” with long Height but the rendered staff inside does not occupy much of it. > > maybe using the optimalPageFill attribute of the GuidoLayoutSettings > you can experiment that with the GuidoEditor preferences pane. > > >> >> >>> On 04 Jan 2017, at 12:31, Dominique Fober <fo...@gr... <mailto:fo...@gr...>> wrote: >>> >>> >>>> Le 4 janv. 2017 à 10:55, Arshia Cont <ars...@an... <mailto:ars...@an...>> a écrit : >>>> >>>> Hello Guido List, >>>> >>>> I was wondering if there’s a mean to control the “size” of a rendered score in a page, for readability purposes on a page. This can be achieved somehow if we can control the Height of the system on a page. Playing around with the engine, I don’t seem to be able to control this parameter. Ideally you’d want to control a default staff height where the system would infer from that given a score… . >>>> >>> >>> you should look at the ‘gmn-examples/tags/staff*.gmn’ files >>> https://sourceforge.net/projects/guidolib/files/gmn-examples/tags/ <https://sourceforge.net/projects/guidolib/files/gmn-examples/tags/> >>> does it answers your question? >>> you could also use the page format tag (or API parameter) and / or zoom in the rendered score >>> — >>> Dom >>> >>> >>>> Is it somehow fixed in the system? Any way to control this from the engine? >>>> >>>> Thanks in advance, >>>> >>>> >>>> Arshia Cont >>>> ------------------------------------------------------------------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, SlashDot.org <http://slashdot.org/>! http://sdm.link/slashdot <http://sdm.link/slashdot> >>>> _______________________________________________ >>>> Guidolib-devel mailing list >>>> Gui...@li... <mailto:Gui...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/guidolib-devel <https://lists.sourceforge.net/lists/listinfo/guidolib-devel> >>> >> > |