Re: Fixed width measures

2015-03-05 Thread Urs Liska



Am 05.03.2015 um 08:34 schrieb Brian Barker:

At 11:37 05/03/2015 +1100, Andrew Bernard wrote:
I have asked this question on the list in the past, but no solution 
seems to be available. The topic is fixed width measures. I have 
contemporary music that has lots of complex tuplets within tuplets 
and rapidly varying time signatures (New Complexity School). The 
composer I am working with draws all his scores by hand, and uses a 
fixed measure width notation to help the performer understand the 
very complex rhythms, with a fixed physical measure length 
corresponding to a specific fixed interval of time. Actually, several 
composers do this.


I have tried everything to do with proportional notation and new 
spacing sections but I can't seem to succeed. Is there any way to 
instruct lilypond to use a fixed length, absolute size measure?


I see that others have wanted this capability for fixed width 
measures for chord charts, overriding the lovely and subtle way that 
lilypond has of moving the bar lines on the page around a little for 
readability and aesthetics.


I am attaching the smallest most simplified snippet I can make that 
shows unequal measures. If anybody can make something like this have 
fixed width measures, let me know!


I am aware that this goes entirely against classical engraving 
principles, and all of lilypond's aesthetic architecture, but it is 
2015 now! Does this require internal code hacking of the layout 
engine somewhere deep down below the user level? It's frustrating to 
be defeated by a man with a pencil who can simply rule lines! :-)


o Insert indent = 0 - so that your first system is the same length 
as the other.


o Change the value in proportionalNotationDuration = #(ly:make-moment 
1/20) to 1/28 - following the advice in the Notation manual: How do 
we select the right reference duration to pass to 
proportionalNotationDuration? Usually by a process of trial and error, 
beginning with a duration close to the fastest (or smallest) duration 
in the piece.


Now I see three systems, each with two bars of exactly equal length.

At smaller staff sizes, I can see two systems of three bars each - but 
they are not quite of equal length. The problem seems to be the time 
signature, occurring in only the first system. Can you put up with no 
time signature? Or with time signatures in both systems? Or (probably 
best) with an invisible time signature (to take up appropriate space) 
in subsequent systems?


Or put the time signature in a separate context, as in the last example 
of http://lilypondblog.org/2014/05/independent-meters/


One solution hasn't been mentioned so far - but I agree that this is a 
hack and it would be nice to have a stable solution built-in to LilyPond.


You can override the minimal-length of MultiMeasureRest and add an 
invisible layer with (only) MultiMeasureRests. This will cause all 
measures to have _at least_ that length. So the limitation is that you 
have to take care that this minimal length is long enough for all your 
measures.


HTH
Urs


Brian Barker

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fixed width measures

2015-03-05 Thread Simon Albrecht

Am 05.03.2015 um 09:21 schrieb Urs Liska:



Am 05.03.2015 um 08:34 schrieb Brian Barker:

At 11:37 05/03/2015 +1100, Andrew Bernard wrote:
I have asked this question on the list in the past, but no solution 
seems to be available. The topic is fixed width measures. I have 
contemporary music that has lots of complex tuplets within tuplets 
and rapidly varying time signatures (New Complexity School). The 
composer I am working with draws all his scores by hand, and uses a 
fixed measure width notation to help the performer understand the 
very complex rhythms, with a fixed physical measure length 
corresponding to a specific fixed interval of time. Actually, 
several composers do this.


I have tried everything to do with proportional notation and new 
spacing sections but I can't seem to succeed. Is there any way to 
instruct lilypond to use a fixed length, absolute size measure?


I see that others have wanted this capability for fixed width 
measures for chord charts, overriding the lovely and subtle way that 
lilypond has of moving the bar lines on the page around a little for 
readability and aesthetics.


I am attaching the smallest most simplified snippet I can make that 
shows unequal measures. If anybody can make something like this have 
fixed width measures, let me know!


I am aware that this goes entirely against classical engraving 
principles, and all of lilypond's aesthetic architecture, but it is 
2015 now! Does this require internal code hacking of the layout 
engine somewhere deep down below the user level? It's frustrating to 
be defeated by a man with a pencil who can simply rule lines! :-)


o Insert indent = 0 - so that your first system is the same length 
as the other.


o Change the value in proportionalNotationDuration = 
#(ly:make-moment 1/20) to 1/28 - following the advice in the 
Notation manual: How do we select the right reference duration to 
pass to proportionalNotationDuration? Usually by a process of trial 
and error, beginning with a duration close to the fastest (or 
smallest) duration in the piece.


Now I see three systems, each with two bars of exactly equal length.

At smaller staff sizes, I can see two systems of three bars each - 
but they are not quite of equal length. The problem seems to be the 
time signature, occurring in only the first system. Can you put up 
with no time signature? Or with time signatures in both systems? Or 
(probably best) with an invisible time signature (to take up 
appropriate space) in subsequent systems?


Or put the time signature in a separate context, as in the last 
example of http://lilypondblog.org/2014/05/independent-meters/


One solution hasn't been mentioned so far - but I agree that this is a 
hack and it would be nice to have a stable solution built-in to LilyPond.


You can override the minimal-length of MultiMeasureRest and add an 
invisible layer with (only) MultiMeasureRests. This will cause all 
measures to have _at least_ that length. So the limitation is that you 
have to take care that this minimal length is long enough for all your 
measures.
Plus, (presuming ragged-right = ##f) you’d have to adapt it to 
line-length, which probably is a daunting trial-and-error task…


~ Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fixed width measures

2015-03-04 Thread Simon Albrecht

Hi Andrew,

I tried some things with some success: if there are only two bars per 
line and ther is no indent, the bars are _almost_ the same width. I 
don’t have any idea why this is imprecise, though.


HTH, Simon

P.S. I also did some reformatting to the code, which in my eyes much 
improves the readability…


Am 05.03.2015 um 01:37 schrieb Andrew Bernard:

Greetings all,

I have asked this question on the list in the past, but no solution 
seems to be available. The topic is fixed width measures. I have 
contemporary music that has lots of complex tuplets within tuplets and 
rapidly varying time signatures (New Complexity School). The composer 
I am working with draws all his scores by hand, and uses a fixed 
measure width notation to help the performer understand the very 
complex rhythms, with a fixed physical measure length corresponding to 
a specific fixed interval of time. Actually, several composers do this.


I have tried everything to do with proportional notation and new 
spacing sections but I can’t seem to succeed. Is there any way to 
instruct lilypond to use a fixed length, absolute size measure?


I see that others have wanted this capability for fixed width measures 
for chord charts, overriding the lovely and subtle way that lilypond 
has of moving the bar lines on the page around a little for 
readability and aesthetics.


I am attaching the smallest most simplified snippet I can make that 
shows unequal measures. If anybody can make something like this have 
fixed width measures, let me know!


I am aware that this goes entirely against classical engraving 
principles, and all of lilypond’s aesthetic architecture, but it is 
2015 now! Does this require internal code hacking of the layout engine 
somewhere deep down below the user level? It’s frustrating to be 
defeated by a man with a pencil who can simply rule lines! :-)


Andrew





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


\version 2.19.16
\paper
{
  % A4 version.
  #(set-paper-size a4 'landscape)
  indent = 0
  top-margin = 20\mm
  bottom-margin = 16\mm
  left-margin = 16\mm
  right-margin = 16\mm

  myStaffSize = #20
}

aux = \repeat unfold 3 { s1*2 \break }

upper = \relative c'' {
  \time 4/4
  \clef treble
  \key c \major

  
{
  \voiceOne
  \stemDown
  \override TupletBracket.bracket-visibility = ##t
  c,4 c c c |
  \tupletDown
  \tuplet 7/4 {c16 bes c bes c d bes }
  \tuplet 7/4 {c16 bes c bes c d bes }
  \tuplet 7/4 {c16 bes c bes c d bes }
  \tuplet 7/4 {c16 bes c bes c d bes }
  c4 c c c |
  bes' bes bes bes |
  a a a a |
  \tuplet 7/4 {c,16 bes c bes c d bes }
  \tuplet 7/4 {c16 bes c bes c d bes }
  \tuplet 7/4 {c16 bes c bes c d bes }
  \tuplet 7/4 {c16 bes c bes c d bes }
}
\\
{
  \voiceThree
  \override TupletBracket.bracket-visibility = ##t
  \tuplet 9/8 { c8[ d e f g f d b c] } |
  \tuplet 7/8 { d f g a e f c } |
  \tuplet 13/8 { d g bes a f c d a' f d e d g }
  \tuplet 3/8 { f d cis } |
  \tuplet 5/8 { cis ees d f d } |
}
  
}

lower = \relative c' {
  \time 4/4

  \clef bass
  \key c \major

  \voiceOne
  c,1 |
  bes |
  a |
  g |
  a |
  bes |
}

\score {
  \new PianoStaff 
\new Staff = treble \new Voice 
  \upper
  \aux

\new Staff = bass \lower
  

  \layout {
\context {
  \Score
  proportionalNotationDuration = #(ly:make-moment 1/20)
  \override SpacingSpanner.uniform-stretching = ##t
}
  }
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fixed width measures

2015-03-04 Thread Brian Barker

At 11:37 05/03/2015 +1100, Andrew Bernard wrote:
I have asked this question on the list in the past, but no solution 
seems to be available. The topic is fixed width measures. I have 
contemporary music that has lots of complex tuplets within tuplets 
and rapidly varying time signatures (New Complexity School). The 
composer I am working with draws all his scores by hand, and uses a 
fixed measure width notation to help the performer understand the 
very complex rhythms, with a fixed physical measure length 
corresponding to a specific fixed interval of time. Actually, 
several composers do this.


I have tried everything to do with proportional notation and new 
spacing sections but I can't seem to succeed. Is there any way to 
instruct lilypond to use a fixed length, absolute size measure?


I see that others have wanted this capability for fixed width 
measures for chord charts, overriding the lovely and subtle way that 
lilypond has of moving the bar lines on the page around a little for 
readability and aesthetics.


I am attaching the smallest most simplified snippet I can make that 
shows unequal measures. If anybody can make something like this have 
fixed width measures, let me know!


I am aware that this goes entirely against classical engraving 
principles, and all of lilypond's aesthetic architecture, but it is 
2015 now! Does this require internal code hacking of the layout 
engine somewhere deep down below the user level? It's frustrating to 
be defeated by a man with a pencil who can simply rule lines! :-)


o Insert indent = 0 - so that your first system is the same length 
as the other.


o Change the value in proportionalNotationDuration = 
#(ly:make-moment 1/20) to 1/28 - following the advice in the 
Notation manual: How do we select the right reference duration to 
pass to proportionalNotationDuration? Usually by a process of trial 
and error, beginning with a duration close to the fastest (or 
smallest) duration in the piece.


Now I see three systems, each with two bars of exactly equal length.

At smaller staff sizes, I can see two systems of three bars each - 
but they are not quite of equal length. The problem seems to be the 
time signature, occurring in only the first system. Can you put up 
with no time signature? Or with time signatures in both systems? Or 
(probably best) with an invisible time signature (to take up 
appropriate space) in subsequent systems?


Brian Barker  



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fixed width measures (or another good way to do this)

2007-02-15 Thread Fred Leason
I suggest programming lilypond to format ragged right ##f (justified)  
single bars of length 4 inches for each the cantor and congregation.   
Then use lilypond-book to make individual eps (or pdf) files.  You  
can then paste those images into a larger document in the two 4 inch  
each columns you are looking for.  Or, you can use latex (or  
pdflatex) to make the two column format.


If you send some samples, I'd be glad to play around with it.  I'm  
getting better at the lilypond-book stuff.


Fred Leason

On Feb 15, 2007, at 7:43 PM, Geoff Horton wrote:


I'm working on some unmetered music that essentially needs to fall
into two columns--cantor on the left, congregation on the right. It
would be great if I could get all the measures to be of the same width
so that the columns would line up neatly. Searching the mailing list,
the only solution I found is to add a row of invisible 32nd notes (or
whatever duration I like) in each measure. Since all the measures
aren't the same musical length, I'd have to do some hefty
duration-scaling to make it come out right, and I'd rather not if
there's another way to do this. Is there?

Geoff


___
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