Urs Liska <[email protected]> writes: > Am 08.03.2017 um 10:36 schrieb David Kastrup: >> Urs Liska <[email protected]> writes: >> >>> Hi all, >>> >>> I'd be interested in knowing the exact position of all systems in a >>> score. What I'd like to achieve is write out an auxiliary file >>> containing information about the musical moment and the vertical >>> position of each system. I know about the moment but not about the page >>> position. [1] >>> >>> The goal is to retrieve the current measure when clicking anywhere in a >>> score in Frescobaldi. The overall goal is then to be able to sync the >>> rendered score, the input, and a manuscript displayed in the Manuscript >>> Viewer, which would be terrific to have. >>> >>> Which property/ies would I have to read out from which objects at what >>> time (in which callback)? >>> >>> Thanks for any suggestions >> Have you tried the 'scm or the 'socket backend? > > No. Thank you for that suggestion. > > On > http://lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage > only the 'scm backend is described, and it may provide what I need. > However, this would require me to compile the score twice and parse the > resulting file. Probably it would be more efficient if I could create an > engraver (?) that collects just the required data and produces the > appropriate output file along with the score. > > What is the 'socket backend?
system 8.5358 -12.2027 47.5594 0.0000 cause -1 "LedgerLineSpanner" 8.53582677165354 -7.14732724413365 8.53582677165354 -7.14732724413365 at 0.0 -4.14732724413365 draw_round_box -25.0758144726067 26.2989518274687 0.1 0.1 0.2 at 0.0 -4.14732724413365 draw_round_box -20.0592852702283 21.2535643994053 0.1 0.1 0.2 nocause cause -1 "BarLine" 47.3694278851229 -9.14732724413365 47.5594278851229 -5.14732724413365 at 47.3694278851229 -7.14732724413365 draw_round_box -0.0 0.19 2.0 2.0 0.0 nocause cause -1 "BarLine" 32.0950956016584 -9.14732724413365 32.2850956016584 -5.14732724413365 at 32.0950956016584 -7.14732724413365 draw_round_box -0.0 0.19 2.0 2.0 0.0 nocause cause -1 "StaffSymbol" 8.58582677165354 -9.19732724413365 47.5094278851229 -5.09732724413365 at 8.53582677165354 -9.14732724413365 drawline 0.1 0.0500000000000007 0.0 38.9736011134694 0.0 at 8.53582677165354 -8.14732724413365 drawline 0.1 0.0500000000000007 0.0 38.9736011134694 0.0 at 8.53582677165354 -7.14732724413365 drawline 0.1 0.0500000000000007 0.0 38.9736011134694 0.0 at 8.53582677165354 -6.14732724413365 drawline 0.1 0.0500000000000007 0.0 38.9736011134694 0.0 at 8.53582677165354 -5.14732724413365 drawline 0.1 0.0500000000000007 0.0 38.9736011134694 0.0 nocause cause -1 "Accidental" 35.6639636151852 -9.52530955872616 36.2727014700033 -7.95040224673352 at 35.7687290502959 -9.14732724413365 glyphshow 57629 "Emmentaler-13" 2.51984209978975 "accidentals.flat" nocause cause -1 "Stem" 37.3081223734952 -9.052553182936 37.4381223734952 -6.94246540681762 at 37.3731223734952 -7.14732724413365 draw_round_box 0.065 0.065 1.90522593880235 0.204861837316028 0.08 nocause cause -1 "Script" 36.6209315809094 -4.84732724413365 37.4398882628398 -3.53699935286957 at 37.0304099218745 -4.84732724413365 glyphshow 57674 "Emmentaler-13" 2.51984209978975 "scripts.upbow" nocause cause -1 "NoteHead" 36.6226974702539 -9.50159504474258 37.4381223734952 -8.79305944352472 at 36.6226974702539 -9.14732724413365 glyphshow 57757 "Emmentaler-13" 2.51984209978975 "noteheads.s2" nocause cause -1 "Slur" 37.0272541989999 -10.460018301091 40.7618184721367 -9.46159504474258 nocause cause -1 "MultiMeasureRest" 23.1929857930707 -9.5410525722258 24.1379305802412 -9.14732724413365 at 23.1929857930707 -9.14732724413365 glyphshow 57600 "Emmentaler-13" 2.51984209978975 "rests.0" nocause cause -1 "Rest" 43.9318260165274 -7.93478190006731 44.5302885152275 -6.16301092409125 at 43.9318260165274 -7.14732724413365 glyphshow 57608 "Emmentaler-13" 2.51984209978975 "rests.2" nocause cause -1 "Stem" 40.962686646632 -8.552553182936 41.092686646632 -6.44246540681762 at 41.027686646632 -7.14732724413365 draw_round_box 0.065 0.065 1.40522593880235 0.704861837316028 0.08 nocause cause -1 "NoteHead" 40.2772617433907 -9.00159504474258 41.092686646632 -8.29305944352472 at 40.2772617433907 -8.64732724413365 glyphshow 57757 "Emmentaler-13" 2.51984209978975 "noteheads.s2" nocause cause -1 "Stem" 20.9197081735949 -3.552553182936 21.0497081735949 -2.07242593176506 at 20.9847081735949 -7.14732724413365 draw_round_box 0.065 0.065 -3.59477406119765 5.07490131236859 0.08 nocause cause -1 "NoteHead" 20.2342832703536 -4.00159504474258 21.0497081735949 -3.29305944352472 at 20.2342832703536 -3.64732724413365 glyphshow 57757 "Emmentaler-13" 2.51984209978975 "noteheads.s2" nocause cause -1 "TextScript" 33.1850956016584 -12.2027497967976 47.5594278851229 -10.837017513333 at 33.1850956016584 -11.895460033018 utf-8 "LilyPond\040Serif\0402.435546875" "Stuff\040to\040be\040played\040as\040is" nocause cause -1 "TimeSignature" 13.5358267716535 -8.14732724413365 15.2358207716535 -6.14732724413365 at 13.5358267716535 -7.14732724413365 glyphshow 57730 "Emmentaler-20" 4.0 "timesig.C44" nocause cause -1 "Clef" 9.33582677165354 -10.6973312441336 11.9008447716535 -3.34732324413365 at 9.33582677165354 -8.14732724413365 glyphshow 57718 "Emmentaler-20" 4.0 "clefs.G" nocause cause -1 "Rest" 17.2358207716535 -5.93478190006731 17.8342832703536 -4.16301092409125 at 17.2358207716535 -5.14732724413365 glyphshow 57608 "Emmentaler-13" 2.51984209978975 "rests.2" nocause cause -1 "InstrumentSwitch" 17.2358207716535 -1.29744566929134 26.6252302204724 0.0 at 17.2358207716535 -1.02429921259843 utf-8 "LilyPond\040Serif\0402.435546875" "Quoted\040from…" nocause cause -1 "Rest" 33.1850956016584 -7.93478190006731 33.7835581003584 -6.16301092409125 at 33.1850956016584 -7.14732724413365 glyphshow 57608 "Emmentaler-13" 2.51984209978975 "rests.2" nocause cause -1 "Flag" 26.0300956016584 -3.71885926825062 26.6082293742121 -1.74069522542965 at 26.0950956016584 -1.79744566929134 glyphshow 57894 "Emmentaler-13" 2.51984209978975 "flags.u3" nocause cause -1 "Stem" 25.9650956016584 -3.552553182936 26.0950956016584 -1.75744566929134 at 26.0300956016584 -7.14732724413365 draw_round_box 0.065 0.065 -3.59477406119765 5.38988157484231 0.08 nocause cause -1 "NoteHead" 25.2796706984171 -4.00159504474258 26.0950956016584 -3.29305944352472 at 25.2796706984171 -3.64732724413365 glyphshow 57757 "Emmentaler-13" 2.51984209978975 "noteheads.s2" nocause cause -1 "Accidental" 19.2755494152849 -4.02530955872616 19.884287270103 -2.45040224673352 at 19.3803148503957 -3.64732724413365 glyphshow 57629 "Emmentaler-13" 2.51984209978975 "accidentals.flat" nocause cause -1 "Rest" 23.4497081735949 -5.8209430335226 24.0796706984171 -4.63075561392739 at 23.4497081735949 -5.14732724413365 glyphshow 57611 "Emmentaler-13" 2.51984209978975 "rests.3" nocause
It probably has not seen sufficient love in the last decade or so: apparently it does not know about "path". I was surprised to find out that apparently there is no way to compile a single score with multiple backends at the same time: it would seem like an obvious thing to do. -- David Kastrup
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
