Re: trying to solve "cyclic chain in pure-Y-offset callbacks" error in custom (ScoreMarks) context
Hi Toine, >> 3. In any case, is there a better way of doing what I'm trying to do (i.e., >> one that won't cause the error in the first place)? > > What about: > \layout { > \context { >\Score >\remove Staff_collecting_engraver > } > } Whoa… that looks… potentially problematic. (Admittedly, that's just an instinct, and I have no knowledge or evidence to back it up!) It sure seems like there should be a less 'nuclear' option than that to solve my little alignment problem! > This apparently removes the errors/warnings. That's a good thing. > I have no idea about other implications. This is what I'm worried about… I'll wait to see if anyone weighs in with more details/info. Thanks for the possible solution, in any case! Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: trying to solve "cyclic chain in pure-Y-offset callbacks" error in custom (ScoreMarks) context
> In the snippet included below, I'm using a custom ScoreMarks context to show > MetronomeMarks (plus, in the real world, RehearsalMarks and other things) > above the system. The problem is, in order to have the MetronomeMark align > correctly with the TimeSignature, I must (?) include the TimeSignature in > some form or other. But I don't want the actual grob to appear, or affect > spacing in any way *other than* helping with alignment. > > All the attempts I've tried (\omit-s, stencil tweaks, etc.) throw "cyclic > chain in pure-Y-offset callbacks" errors, which I have just been ignoring > (for years now). But I'd like to solve this once and for all, if possible… > > 1. Is the error more serious than a simply aesthetic problem? > > 2. If not, is there some way to avoid seeing the errors? > > 3. In any case, is there a better way of doing what I'm trying to do (i.e., > one that won't cause the error in the first place)? What about: \layout { \context { \Score \remove Staff_collecting_engraver } } This apparently removes the errors/warnings. I have no idea about other implications. Toine Schreurs > %%% SNIPPET BEGINS > \version "2.19" > > \layout { > \context { > \type "Engraver_group" > \name ScoreMarks > \consists "Staff_collecting_engraver" > \consists "Axis_group_engraver" > \override VerticalAxisGroup.staff-affinity = #DOWN > \consists "Metronome_mark_engraver" > \override MetronomeMark.break-align-symbols = > #'(left-edge staff-bar clef time-signature key-signature) > \override MetronomeMark.non-break-align-symbols = > #'(paper-column-interface) > } > \context { > \Score > \remove "Metronome_mark_engraver" > \remove "Mark_engraver" > \accepts ScoreMarks > } > } > > global = { > \tempo "Testing" > \time 2/2 > s1 > } > > \markup "No TimeSignature in ScoreMarks = incorrect alignment:" > \score { > << > \new ScoreMarks \global > \new Staff << \global c''1 >> > >> > } > > \markup "TimeSignature in ScoreMarks = correct alignment + unwanted grob + > error:" > \score { > << > \new ScoreMarks \global > \new Staff << \global c''1 >> > >> > \layout { > \context { > \ScoreMarks > \consists "Time_signature_engraver" > } > } > } > > \markup "TimeSignature included in and then \omit-ed from ScoreMarks = > correct alignment + error:" > \score { > << > \new ScoreMarks \global > \new Staff << \global c''1 >> > >> > \layout { > \context { > \ScoreMarks > \consists "Time_signature_engraver" > \omit TimeSignature > } > } > } > %%% SNIPPET ENDS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: weird Accidental spacing/padding issue
On Thu, Aug 3, 2017 at 11:06 AM, Kieren MacMillan [via Lilypond] < ml+s1069038n204846...@n5.nabble.com> wrote: > > I hoped it wasn't a font problem. > > Me, too. =) > Glad it wasn't. > Then, again, if it was a font problem, at least we'd know it wasn't LP's fault and I could better address the issue myself. Sorry XD - Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/weird-Accidental-spacing-padding-issue-tp204835p204847.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: weird Accidental spacing/padding issue
Hi Abraham, > I hoped it wasn't a font problem. Me, too. =) Glad it wasn't. > Yikes! That's an undesirable set of overrides. Tolerable, but undesirable. > Would be good to get to the bottom of what's really causing the extra space. +1 Thanks, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
trying to solve "cyclic chain in pure-Y-offset callbacks" error in custom (ScoreMarks) context
Hello all, In the snippet included below, I'm using a custom ScoreMarks context to show MetronomeMarks (plus, in the real world, RehearsalMarks and other things) above the system. The problem is, in order to have the MetronomeMark align correctly with the TimeSignature, I must (?) include the TimeSignature in some form or other. But I don't want the actual grob to appear, or affect spacing in any way *other than* helping with alignment. All the attempts I've tried (\omit-s, stencil tweaks, etc.) throw "cyclic chain in pure-Y-offset callbacks" errors, which I have just been ignoring (for years now). But I'd like to solve this once and for all, if possible… 1. Is the error more serious than a simply aesthetic problem? 2. If not, is there some way to avoid seeing the errors? 3. In any case, is there a better way of doing what I'm trying to do (i.e., one that won't cause the error in the first place)? Thanks, Kieren. %%% SNIPPET BEGINS \version "2.19" \layout { \context { \type "Engraver_group" \name ScoreMarks \consists "Staff_collecting_engraver" \consists "Axis_group_engraver" \override VerticalAxisGroup.staff-affinity = #DOWN \consists "Metronome_mark_engraver" \override MetronomeMark.break-align-symbols = #'(left-edge staff-bar clef time-signature key-signature) \override MetronomeMark.non-break-align-symbols = #'(paper-column-interface) } \context { \Score \remove "Metronome_mark_engraver" \remove "Mark_engraver" \accepts ScoreMarks } } global = { \tempo "Testing" \time 2/2 s1 } \markup "No TimeSignature in ScoreMarks = incorrect alignment:" \score { << \new ScoreMarks \global \new Staff << \global c''1 >> >> } \markup "TimeSignature in ScoreMarks = correct alignment + unwanted grob + error:" \score { << \new ScoreMarks \global \new Staff << \global c''1 >> >> \layout { \context { \ScoreMarks \consists "Time_signature_engraver" } } } \markup "TimeSignature included in and then \omit-ed from ScoreMarks = correct alignment + error:" \score { << \new ScoreMarks \global \new Staff << \global c''1 >> >> \layout { \context { \ScoreMarks \consists "Time_signature_engraver" \omit TimeSignature } } } %%% SNIPPET ENDS Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: weird Accidental spacing/padding issue
On Thu, Aug 3, 2017 at 7:12 AM, Kieren MacMillan [via Lilypond] < ml+s1069038n204842...@n5.nabble.com> wrote: > No. > > > Does this happen when you use Emmentaler for the music font? > > Yes. (Aside: Switching back to it to test that reminded me how much I love > Cadence!) > Thanks! I hoped it wasn't a font problem. > > I looked at the internals section and there is the 'extra-spacing-width > property that is set to '(-0.2 . 0) by default. Not sure if setting that to > '(0 . 0) would change it, but maybe. Not sure when it changed, exactly, but > some time between when the 'parent-alignment-... properties were added and > now. > > Adding > > \override AccidentalPlacement.right-padding = #0 > \override Accidental.extra-spacing-width = #'(0.3 . 0) > \override Accidental.extra-offset = #'(-0.05 . 0) > > to my score seems to bring it closer to what I would expect to be "default > spacing". I'm uncomfortable that I don't know what the real root problem > is… but at least I can get on with engraving! > Yikes! That's an undesirable set of overrides. Tolerable, but undesirable. Would be good to get to the bottom of what's really causing the extra space. Best, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/weird-Accidental-spacing-padding-issue-tp204835p204844.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scaling "normal text" font size inside dynamic
On Thu, Aug 3, 2017 at 6:45 AM, Kieren MacMillan-2 [via Lilypond] < ml+s1069038n204841...@n5.nabble.com> wrote: > > Just put \larger before \normal-text and it will respond to the > 'font-size property, but be at a larger point size than the rest of it. > > But the scaling factor is different depending on the font (x-height, etc.) > — so don't I have to do that *inside* each function, and therefore > duplicate each function in every stylesheet with a different font? I was > hoping there was a more elegant solution… > This is the unfortunate reality about fonts. I once tried to find a way by first making a non-printed markup of only the "x" character, getting its Y-extent, then scaling based on that, but I was never successful. Maybe someone else will have a better idea for you, aside from adding another input parameter for to pass in to the 'fontsize markup macro. Best, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/scaling-normal-text-font-size-inside-dynamic-tp204834p204843.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: weird Accidental spacing/padding issue
Hi Abraham, > Is there something in another staff that is causing the offset? No. > Does this happen when you use Emmentaler for the music font? Yes. (Aside: Switching back to it to test that reminded me how much I love Cadence!) > I looked at the internals section and there is the 'extra-spacing-width > property that is set to '(-0.2 . 0) by default. Not sure if setting that to > '(0 . 0) would change it, but maybe. Not sure when it changed, exactly, but > some time between when the 'parent-alignment-... properties were added and > now. Adding \override AccidentalPlacement.right-padding = #0 \override Accidental.extra-spacing-width = #'(0.3 . 0) \override Accidental.extra-offset = #'(-0.05 . 0) to my score seems to bring it closer to what I would expect to be "default spacing". I'm uncomfortable that I don't know what the real root problem is… but at least I can get on with engraving! Thanks, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scaling "normal text" font size inside dynamic
Hi Abraham, > Just put \larger before \normal-text and it will respond to the 'font-size > property, but be at a larger point size than the rest of it. But the scaling factor is different depending on the font (x-height, etc.) — so don't I have to do that *inside* each function, and therefore duplicate each function in every stylesheet with a different font? I was hoping there was a more elegant solution… Thanks, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Text listing output in .txt file
On Wed, 2 Aug 2017, Daniel Sanmartín Nieto wrote: > Is it possible to get a .txt output with a listing of text inputs written > throughout the music file? Does this have to be done all in Lilypond? Because it would be trivial to write your bits of text as comments with "%" and then extract them into a separate file using an external utility like grep or perl. Something like: { c4 d e f | % text 1 g f e d | % text 2 } and then grep '%' score.ly > score.txt which would give % text 1 % text 2 or, more elegantly because it separates out just the comment text, perl -ne 'print "$1" if /%\s*(.*)/' score.ly > score.txt -- Matthew Skala msk...@ansuz.sooke.bc.ca People before principles. http://ansuz.sooke.bc.ca/___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: running midi2ly in frecobaldi 3.0
Il giorno lun 31 lug 2017 alle 21:23, MING TSANGha scritto: hi lilyponders, I did the following steps in frecobaldi - trying to import midi so as to produce lily text file 1. file - import - import midi 2. selection box appeard : select midi file (created by lily ) - hit "open" button 3. another box appeared - check "pitches in absolute mode" box - hit "run midi2ly" button 4. nothing happened - no log entry and no lily code generated - just return before step 1. What must I do to have the "un midi2ly" work? Hi Ming I never use midi2ly, but I've just tested it in Frescobaldi using a MIDI generated by lilypond. Everything works fine. You should see a new file starting with something like this: % Lily was here -- automatically converted by /usr/bin/midi2ly from /tmp/23-10-63.midi You use Windows, right? I don't think that it's a path problem. If lilypond runs in frescobaldi, also midi2ly should be able to run. If midi2ly fails for some reason and Frescobaldi doesn't warn about this, then I'd say this is also a bug of Frescobaldi. But I guess that the source of your problem is in midi2ly. Please try debugging it using a command line: midi2ly file.ly and paste the output here Keep me in Cc, as I'm going in holidays soon and I've disabled all the lilypond mailing lists. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Reverting TimeSignature after box notation
Hi! I'm working on a piece while learning lilypond. It uses a bit of box notation so I have the time signatures hidden in the beginning, but then I want them back. After using \override Staff.TimeSignature.stencil = ##f to remove my time signatures, I can revert back using \revert Staff.TimeSignature.stencil if I place it before this block of code (making boxes for my box notation) s2-\markup { \with-dimensions #'(0 . 0) #'(0 . 0) \override #'(thickness . 3) \box \with-dimensions #'(-2 . 100) #'(-10 . 10) \null} s4. \bar""| s4.-\markup { \with-dimensions #'(0 . 0) #'(0 . 0) \box \with-dimensions #'(-2 . 15) #'(0 . 10) \null} s4.-\markup { \with-dimensions #'(0 . 0) #'(0 . 0) \box \with-dimensions #'(-2 . 9) #'(0 . 10) \null}| but if I place it after this code it has no effect (and gives no error). What am I doing wrong, is it a bug, is there a workaround? I'm on lilypond 2.18.2. Cheers, Erik Natanael Gustafsson ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user