Re: mark text (not markup) to fill Rest bars?
On 12/06/2011 03:10 AM, Keith OHara wrote: Rutger Hofmanrutgerat cs.vu.nl writes: Thanks, this works well for multimeasure rests. But I would also like the same mark to work for another staff that has music in it. With these overrides, that looks weird: the markup is stretched over an empty space, the music starts after it. Is there some trickery to find out whether the mark has rests following it? Or is there some trickery to selectively disable these overrides by hand, e.g. when there are notes? The mark does not use much trickery, it is in concept part of the column of bar lines, and the extra-spacing-* settings define how much space the mark gets to the other columns, whether these columns contain notes or bar line. Unfortunately RehearsalMark spacing has a few small bugs, such as forgetting its space reservation after a couple columns of notes have gone by. Probably, though, something along these lines will work for you. You can treat special cases with \once\override... \relative c' { \override Score . RehearsalMark #'self-alignment-X = #LEFT \override Score . RehearsalMark #'extra-spacing-width = #'(-1 . 0) %% Shift the space-reservation vertically up, to clear the stems %% (stems get space reserved to the top of the staff in ver 2.12) \override Score . RehearsalMark #'extra-spacing-height = #'(3 . 3) %% Make bar lines taller than (most) stems \override Score . BarLine #'extra-spacing-height = #'(0 . +3) R1 \mark \markup foo foo foo bar c1 \mark \markup foo foo foo bar c4 d e f c4 d e f } %% Enable drawing of spacing outlines \layout { \context { \Score \override NonMusicalPaperColumn #'stencil = #ly:separation-item::print \override PaperColumn #'stencil = #ly:separation-item::print }} #(ly:set-option 'debug-skylines) Ah, thanks a lot. This does (nearly always) what I want, and yes, I can use \once \override Score.RehearsalMark #'extra-spacing-width = #'( +inf.0 . -inf.0 ) to restore default behaviour where needed. Rutger ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: mark text (not markup) to fill Rest bars?
On 11/30/2011 03:36 PM, m...@apollinemike.com wrote: On Nov 30, 2011, at 3:33 PM, Rutger Hofman wrote: Good afternoon list, in http://www.lilypond.org/doc/v2.14/Documentation/notation/writing-rests#index-_005ctextLengthOn , the section on Multi-measure rest markup, I find a method to have empty bars (Rest bars) extend to the length of the ^\markup{ ... bla ... }. I would like to have the same behaviour for \mark \markup{ ... bla ... }. Is that possible? Rutger Hofman Amsterdam Lilypond 2.14.2 \relative c' { \override Score . RehearsalMark #'extra-spacing-width = #'(0 . 0) \override Score . RehearsalMark #'self-alignment-X = #LEFT \mark \markup foo bar foo bar foo bar foo bar foo bar foo bar R1 } Cheers, MS Thanks, this works well for multimeasure rests. But I would also like the same mark to work for another staff that has music in it. With these overrides, that looks weird: the markup is stretched over an empty space, the music starts after it. Is there some trickery to find out whether the mark has rests following it? Or is there some trickery to selectively disable these overrides by hand, e.g. when there are notes? Ultimately, I would like to be able to specify where in time the markup ends -- that would give lots of control. Rutger ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: mark text (not markup) to fill Rest bars?
Hi Rutger, 2011/12/5 Rutger Hofman rut...@cs.vu.nl On 11/30/2011 03:36 PM, m...@apollinemike.com wrote: On Nov 30, 2011, at 3:33 PM, Rutger Hofman wrote: Good afternoon list, in http://www.lilypond.org/doc/**v2.14/Documentation/notation/** writing-rests#index-_**005ctextLengthOnhttp://www.lilypond.org/doc/v2.14/Documentation/notation/writing-rests#index-_005ctextLengthOn, the section on Multi-measure rest markup, I find a method to have empty bars (Rest bars) extend to the length of the ^\markup{ ... bla ... }. I would like to have the same behaviour for \mark \markup{ ... bla ... }. Is that possible? Rutger Hofman Amsterdam Lilypond 2.14.2 \relative c' { \override Score . RehearsalMark #'extra-spacing-width = #'(0 . 0) \override Score . RehearsalMark #'self-alignment-X = #LEFT \mark \markup foo bar foo bar foo bar foo bar foo bar foo bar R1 } Cheers, MS Thanks, this works well for multimeasure rests. But I would also like the same mark to work for another staff that has music in it. With these overrides, that looks weird: the markup is stretched over an empty space, the music starts after it. Is there some trickery to find out whether the mark has rests following it? Or is there some trickery to selectively disable these overrides by hand, e.g. when there are notes? Ultimately, I would like to be able to specify where in time the markup ends -- that would give lots of control. Rutger perhaps I don't understand, but is the attached PNG not what you want? \version 2.14.2 one = \relative c' { \override Score . RehearsalMark #'extra-spacing-width = #'(0 . 0) \override Score . RehearsalMark #'self-alignment-X = #LEFT \mark \markup foo bar foo bar foo bar foo bar foo bar foo bar R1 } two = \relative c' { \mark \markup foo bar foo bar foo bar foo bar foo bar foo bar c4 d e f } \new Staff \one \new Staff \two Cheers, Harm attachment: atest-04.png___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: mark text (not markup) to fill Rest bars?
Rutger Hofman rutger at cs.vu.nl writes: Thanks, this works well for multimeasure rests. But I would also like the same mark to work for another staff that has music in it. With these overrides, that looks weird: the markup is stretched over an empty space, the music starts after it. Is there some trickery to find out whether the mark has rests following it? Or is there some trickery to selectively disable these overrides by hand, e.g. when there are notes? The mark does not use much trickery, it is in concept part of the column of bar lines, and the extra-spacing-* settings define how much space the mark gets to the other columns, whether these columns contain notes or bar line. Unfortunately RehearsalMark spacing has a few small bugs, such as forgetting its space reservation after a couple columns of notes have gone by. Probably, though, something along these lines will work for you. You can treat special cases with \once\override... \relative c' { \override Score . RehearsalMark #'self-alignment-X = #LEFT \override Score . RehearsalMark #'extra-spacing-width = #'(-1 . 0) %% Shift the space-reservation vertically up, to clear the stems %% (stems get space reserved to the top of the staff in ver 2.12) \override Score . RehearsalMark #'extra-spacing-height = #'(3 . 3) %% Make bar lines taller than (most) stems \override Score . BarLine #'extra-spacing-height = #'(0 . +3) R1 \mark \markup foo foo foo bar c1 \mark \markup foo foo foo bar c4 d e f c4 d e f } %% Enable drawing of spacing outlines \layout { \context { \Score \override NonMusicalPaperColumn #'stencil = #ly:separation-item::print \override PaperColumn #'stencil = #ly:separation-item::print }} #(ly:set-option 'debug-skylines) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: mark text (not markup) to fill Rest bars?
On Nov 30, 2011, at 3:33 PM, Rutger Hofman wrote: Good afternoon list, in http://www.lilypond.org/doc/v2.14/Documentation/notation/writing-rests#index-_005ctextLengthOn , the section on Multi-measure rest markup, I find a method to have empty bars (Rest bars) extend to the length of the ^\markup{ ... bla ... }. I would like to have the same behaviour for \mark \markup{ ... bla ... }. Is that possible? Rutger Hofman Amsterdam Lilypond 2.14.2 \relative c' { \override Score . RehearsalMark #'extra-spacing-width = #'(0 . 0) \override Score . RehearsalMark #'self-alignment-X = #LEFT \mark \markup foo bar foo bar foo bar foo bar foo bar foo bar R1 } Cheers, MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user