Re: unmetered music - page breaks and empty bar lines
On 2 January 2011 14:33, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: Dear list, I'm typesetting unmetered music. My question is: what is the right (or best) approach to do so? If I set Score.timing to false, I have to insert \bar everywhere in order to let lilypond figure out a nice layout. That's tedious. My current approach is this: \layout { \context { \Score \remove Bar_number_engraver \override BarLine #'transparent = ##t \override TimeSignature #'transparent = ##t } \context { \PianoStaff \override SpanBar #'stencil = #(lambda (grob) (if (string=? (ly:grob-property grob 'glyph-name) |) (set! (ly:grob-property grob 'glyph-name) )) (ly:span-bar::print grob)) } } At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). I tried to set the next-note distance to 0 in the space-alist of barline, but that didn't remove all horizontal space. Is there a better way to do this? Try \context { \Staff \remove Bar_engraver } That appears to do what you need. You also don't need \override BarLine #'transparent = ##t if you do this. -- Sven Axelsson ++[+ -].+..+.+.-.+... +++.-.++..++.++.... ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 2 January 2011 15:03, Sven Axelsson sven.axels...@gmail.com wrote: On 2 January 2011 14:33, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: Dear list, I'm typesetting unmetered music. My question is: what is the right (or best) approach to do so? If I set Score.timing to false, I have to insert \bar everywhere in order to let lilypond figure out a nice layout. That's tedious. My current approach is this: \layout { \context { \Score \remove Bar_number_engraver \override BarLine #'transparent = ##t \override TimeSignature #'transparent = ##t } \context { \PianoStaff \override SpanBar #'stencil = #(lambda (grob) (if (string=? (ly:grob-property grob 'glyph-name) |) (set! (ly:grob-property grob 'glyph-name) )) (ly:span-bar::print grob)) } } At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). I tried to set the next-note distance to 0 in the space-alist of barline, but that didn't remove all horizontal space. Is there a better way to do this? Try \context { \Staff \remove Bar_engraver } That appears to do what you need. You also don't need \override BarLine #'transparent = ##t if you do this. You can also \remove Time_signature_engraver in the \Staff context if you don't want the invisible time signature to take up space. -- Sven Axelsson ++[+ -].+..+.+.-.+... +++.-.++..++.++.... ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 1/2/11 3:03 PM, Sven Axelsson wrote: On 2 January 2011 14:33, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: Dear list, I'm typesetting unmetered music. My question is: what is the right (or best) approach to do so? If I set Score.timing to false, I have to insert \bar everywhere in order to let lilypond figure out a nice layout. That's tedious. My current approach is this: \layout { \context { \Score \remove Bar_number_engraver \override BarLine #'transparent = ##t \override TimeSignature #'transparent = ##t } \context { \PianoStaff \override SpanBar #'stencil = #(lambda (grob) (if (string=? (ly:grob-property grob 'glyph-name) |) (set! (ly:grob-property grob 'glyph-name) )) (ly:span-bar::print grob)) } } At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). I tried to set the next-note distance to 0 in the space-alist of barline, but that didn't remove all horizontal space. Is there a better way to do this? Try \context { \Staff \remove Bar_engraver } That appears to do what you need. Thanks for the suggestion. This has the desired effect on the note spacing, but it raises other problems: 1. I cannot have the final bar line 2. Clefs and key signatures are not printed at the start of systems 3. line breaks occur everywhere, also in the middle of beams, etc. Unfortunately, the balance is negative. best, Peter ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 1/2/11 3:09 PM, Sven Axelsson wrote: You can also \remove Time_signature_engraver in the \Staff context if you don't want the invisible time signature to take up space. Thanks. That looks better indeed. best, Peter ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 1/2/11 3:17 PM, Frauke Jurgensen wrote: Oddly, I'm dealing with the exact same problem just now! Like you, I've set a metre and then set the default bar line type to empty. Simply removing the Bar_engraver will lead to disaster, although it will make all the notes evenly spaced...The clefs on subsequent systems will disappear. Now sure why yet. Section 3.2.9 of the Internals Reference gives all the properties of bar lines that you can mess with; I'll report on what I find out. I tried to adjust kern, thin-kern, several parameters in space-alist; all without success. The descriptions are too sparse for me to get the full meaning of the properties. --- off topic --- Out of interest, what are you working on? It looks somewhat familiar... It's organ music. A trio in French Baroque style, part of a Magnificat suite, composed by a friend of mine. Saw your Bach article in CIM 15, btw; nice work! Thanks. Looking forward to meet you in Aberdeen. Best regards, Peter Regards, Frauke On Sun, Jan 2, 2011 at 1:33 PM, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: Dear list, I'm typesetting unmetered music. My question is: what is the right (or best) approach to do so? If I set Score.timing to false, I have to insert \bar everywhere in order to let lilypond figure out a nice layout. That's tedious. My current approach is this: \layout { \context { \Score \remove Bar_number_engraver \override BarLine #'transparent = ##t \override TimeSignature #'transparent = ##t } \context { \PianoStaff \override SpanBar #'stencil = #(lambda (grob) (if (string=? (ly:grob-property grob 'glyph-name) |) (set! (ly:grob-property grob 'glyph-name) )) (ly:span-bar::print grob)) } } At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). I tried to set the next-note distance to 0 in the space-alist of barline, but that didn't remove all horizontal space. Is there a better way to do this? Thanks in advance. Best, Peter van Kranenburg ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On Jan 2, 2011, at 2:33 PM, Peter Van Kranenburg wrote: Dear list, I'm typesetting unmetered music. My question is: what is the right (or best) approach to do so? If I set Score.timing to false, I have to insert \bar everywhere in order to let lilypond figure out a nice layout. That's tedious. My current approach is this: \layout { \context { \Score \remove Bar_number_engraver \override BarLine #'transparent = ##t \override TimeSignature #'transparent = ##t } \context { \PianoStaff \override SpanBar #'stencil = #(lambda (grob) (if (string=? (ly:grob-property grob 'glyph-name) |) (set! (ly:grob-property grob 'glyph-name) )) (ly:span-bar::print grob)) } } At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). I tried to set the next-note distance to 0 in the space-alist of barline, but that didn't remove all horizontal space. Is there a better way to do this? Thanks in advance. Best, Peter van Kranenburg Perhaps something like: \version 2.12.3 \layout { \context { \Score \remove Timing_translator \remove Bar_number_engraver } \context { \Staff \override BarLine #'stencil = ##f \override TimeSignature #'stencil = ##f } } music = { \repeat unfold 64 { a4 a a a } } \score { \music \layout {} } Hope this helps, James ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 2 January 2011 13:33, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). If you upgrade to 2.13, you'll find that empty barlines don't take up any space. Cheers, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On Jan 2, 2011, at 3:23 PM, Peter Van Kranenburg wrote: On 1/2/11 3:03 PM, Sven Axelsson wrote: On 2 January 2011 14:33, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: Dear list, I'm typesetting unmetered music. My question is: what is the right (or best) approach to do so? If I set Score.timing to false, I have to insert \bar everywhere in order to let lilypond figure out a nice layout. That's tedious. My current approach is this: \layout { \context { \Score \remove Bar_number_engraver \override BarLine #'transparent = ##t \override TimeSignature #'transparent = ##t } \context { \PianoStaff \override SpanBar #'stencil = #(lambda (grob) (if (string=? (ly:grob-property grob 'glyph-name) |) (set! (ly:grob-property grob 'glyph-name) )) (ly:span-bar::print grob)) } } At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). I tried to set the next-note distance to 0 in the space-alist of barline, but that didn't remove all horizontal space. Is there a better way to do this? Try \context { \Staff \remove Bar_engraver } That appears to do what you need. Thanks for the suggestion. This has the desired effect on the note spacing, but it raises other problems: 1. I cannot have the final bar line 2. Clefs and key signatures are not printed at the start of systems 3. line breaks occur everywhere, also in the middle of beams, etc. Unfortunately, the balance is negative. best, Peter minor change since you said you needed a final barline: \version 2.12.3 \layout { \context { \Score \remove Timing_translator \remove Bar_number_engraver } \context { \Staff \override TimeSignature #'stencil = ##f } } music = { \override Staff.BarLine #'stencil = ##f \repeat unfold 32 { \repeat unfold 2 { a8[ a a a] } } \revert Staff.BarLine #'stencil \bar |. } \score { \music \layout {} } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 1/2/11 3:55 PM, James Bailey wrote: On Jan 2, 2011, at 3:23 PM, Peter Van Kranenburg wrote: On 1/2/11 3:03 PM, Sven Axelsson wrote: On 2 January 2011 14:33, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: Dear list, I'm typesetting unmetered music. My question is: what is the right (or best) approach to do so? minor change since you said you needed a final barline: \version 2.12.3 \layout { \context { \Score \remove Timing_translator \remove Bar_number_engraver } \context { \Staff \override TimeSignature #'stencil = ##f } } music = { \override Staff.BarLine #'stencil = ##f \repeat unfold 32 { \repeat unfold 2 { a8[ a a a] } } \revert Staff.BarLine #'stencil \bar |. } \score { \music \layout {} } Thanks a lot! That looks very good indeed. The only drawback is that automatic beaming is off. Automatic beaming is an advantage of having an underlying meter. So, the trade-off is inserting \bar at many places or manually indicating all beams... best, Peter ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 1/2/11 3:54 PM, Neil Puttock wrote: On 2 January 2011 13:33, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: At the beginning of the music I do: \set Timing.defaultBarType = So, I set the music with meter - providing lilypond many good points to insert line breaks - and I make all barlines empty and hide the meter. The problem is that the (empty) bar lines still occupy space, causing the notes to be spaced unevenly (see attached example - the bottom part is where the bar lines are when they are not empty. The space before the final note is really bad). If you upgrade to 2.13, you'll find that empty barlines don't take up any space. Indeed. This makes me very happy! Thanks a lot! One final question - maybe trivial - but I am not able to figure out what the equivalent of \set Timing.defaultBarType = in the layout block should be. best, Peter ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
Hmm, when I tried this, I got something like mensurstriche instead...but that must be because I was using a PianoStaff. When I get rid of the PianoStaff, I can get the (lack of space-occupying) bar lines I want, but attempts at creating a StaffGroup to give me back my curly brace have failed so far. On Sun, Jan 2, 2011 at 3:14 PM, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: On 1/2/11 3:55 PM, James Bailey wrote: minor change since you said you needed a final barline: \version 2.12.3 \layout { \context { \Score \remove Timing_translator \remove Bar_number_engraver } \context { \Staff \override TimeSignature #'stencil = ##f } } music = { \override Staff.BarLine #'stencil = ##f \repeat unfold 32 { \repeat unfold 2 { a8[ a a a] } } \revert Staff.BarLine #'stencil \bar |. } \score { \music \layout {} } best, Peter ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 2 January 2011 15:34, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: One final question - maybe trivial - but I am not able to figure out what the equivalent of \set Timing.defaultBarType = in the layout block should be. \layout { \context { \Score defaultBarType = # } } http://lilypond.org/doc/v2.13/Documentation/notation/changing-context-default-settings http://lilypond.org/doc/v2.13/Documentation/notation/special-rhythmic-concerns#time-administration Cheers, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: unmetered music - page breaks and empty bar lines
On 1/2/11 5:12 PM, Frauke Jurgensen wrote: Hmm, when I tried this, I got something like mensurstriche instead...but that must be because I was using a PianoStaff. When I get rid of the PianoStaff, I can get the (lack of space-occupying) bar lines I want, but attempts at creating a StaffGroup to give me back my curly brace have failed so far. Those 'mensurstriche' are created by the spanbar engraver. A solution is here: http://lsr.dsi.unimi.it/LSR/Item?id=299 or more rigorous: \layout { \context { \PianoStaff \override SpanBar #'stencil = ##f } } best, Peter On Sun, Jan 2, 2011 at 3:14 PM, Peter Van Kranenburg peter.van.kranenb...@meertens.knaw.nl wrote: On 1/2/11 3:55 PM, James Bailey wrote: minor change since you said you needed a final barline: \version 2.12.3 \layout { \context { \Score \remove Timing_translator \remove Bar_number_engraver } \context { \Staff \override TimeSignature #'stencil = ##f } } music = { \override Staff.BarLine #'stencil = ##f \repeat unfold 32 { \repeat unfold 2 { a8[ a a a] } } \revert Staff.BarLine #'stencil \bar |. } \score { \music \layout {} } best, Peter ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user