Re: How to make different horizontal spacing for each staff?

2007-09-14 Thread Vít Reichel
Valentin Villenave v.villenave at gmail.com writes:

 
 2007/9/13, Mats Bengtsson mats.bengtsson at ee.kth.se:
 
  I don't understand why you set measurePosition (which tells where the next
  note is in the measure). Rather, you could set measureLength
  corresponding to
  the scaling of the durations that you have applied (ideally that should
  be done
  automatically by compressMusic, but this doesn't seem to happen now).
 
 Oh yes! I missed the point about the second argument of make-moment
 being set to the second argument of compressMusic.
 
 I had tried with measureLength indeed, but since my second argument
 was wrong the barlines were messed up, whereas the measurePosition
 trick made them disappear.
 
 Indeed compressMusic should configure make-moment as well. I think
 this explains #453, which I reported a few days ago.
 
 Anyway, it's in LSR now.
 
 Thanks,
 Valentin
 

Hi Valentin and Mats!

Thanks for help.
This is a part of the composition by Morton Feldman that I am writing:

\include deutsch.ly
#(set-global-staff-size 13)

\layout {
  \context { \Score
 \remove Timing_translator
 \remove Default_bar_line_engraver
  }
  \context {
\Staff
\consists Timing_translator
\consists Default_bar_line_engraver
  }
}

\paper {
#(set-paper-size a3 'landscape)
}


  \new Staff {
\clef bass \time 2/4 des2
\time 7/8 r8 des2.
\time 2/2 r4 des2.
\time 5/8 r8 des2
\time 2/4 r8 des4.~
\time 5/8 des4 r8 des4~
\time 2/4 \times 2/3 { des4 r des~ }
\time 7/8 des2. r8
\time 9/8 r8 des1
\time 7/8 r2. c,8~\
\time 5/4 c2 r4\! c2~\
\time 5/8 c8\! r2
\time 2/4 \times 2/3 { r2 c4~\ }
\time 5/8 c4.\! r8 c8~\
\time 3/4 c2.\! \bar |
  }
  \new Staff {
\time 3/4
\clef treble R2.
R2.
R2.
R2.
R2.^timp.
\clef bass h16 h h h h h h r h h h h
h h h r16 r16 h h h h h h h
r8 r16 h h h h h h h r8
r8 h16 h h h h h h r r8
r16 h h h h h r h h h h h
h h r h h h h h h h r h
h h h h r h h h h r h h
h h h h r h h h h h r h
h h h h r h h h h h h h
r h h h h h h h r8 h16 h
  }
 

There is no need for compressing music as the number of eighth notes in both
staves is the same. The problem is that I would need regular intervals between
the sixteenth notes.

Vít






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


Re: How to make different horizontal spacing for each staff?

2007-09-14 Thread Valentin Villenave
2007/9/14, Vít Reichel [EMAIL PROTECTED]:

 There is no need for compressing music as the number of eighth notes in both
 staves is the same. The problem is that I would need regular intervals between
 the sixteenth notes.

Oh, I understand now! This is indeed tricky; the Spacing_engraver, and
every properties of the SpacingSpanner object, apply to the whole
score, no matter where you put it.

I have no idea how to solve this. Hopefully someone will have one.

Regards,
Valentin


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


Re: How to make different horizontal spacing for each staff?

2007-09-14 Thread Mats Bengtsson



Valentin Villenave wrote:

2007/9/14, Vít Reichel [EMAIL PROTECTED]:

  

There is no need for compressing music as the number of eighth notes in both
staves is the same. The problem is that I would need regular intervals between
the sixteenth notes.



Oh, I understand now! This is indeed tricky; the Spacing_engraver, and
every properties of the SpacingSpanner object, apply to the whole
score, no matter where you put it.
  

Actually, I don't understand exactly what you are asking for.
If you want the 16th notes regularly spaced, read the two sections
on Proportional notation in the manual. At the bottom of the
second of these two (Sect. 11.6.5), you will also find settings that
makes it possible for LilyPond to insert more line breaks, which
seems to be another problem in your current score.

  /Mats


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


Re: How to make different horizontal spacing for each staff?

2007-09-14 Thread Vít Reichel
Mats Bengtsson mats.bengtsson at ee.kth.se writes:


 Actually, I don't understand exactly what you are asking for.
 If you want the 16th notes regularly spaced, read the two sections
 on Proportional notation in the manual. At the bottom of the
 second of these two (Sect. 11.6.5), you will also find settings that
 makes it possible for LilyPond to insert more line breaks, which
 seems to be another problem in your current score.
 
/Mats
 
I want the top staff to stay exactly the way it is now and for the bottom staff,
make a completly independent spacing so that the sixteenth notes would be spaced
more ragularly. 





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


Re: How to make different horizontal spacing for each staff?

2007-09-13 Thread Valentin Villenave
2007/9/13, Vít Reichel [EMAIL PROTECTED]:

 thanks for your reply but this is not what I want. I need in general 2
 independently spaced staves in a system that have a common barline at the end 
 of
 every system. I know this is technically not clean but for this modern piece 
 it
 would be the best possible solution.

Mats: there's got to be a simpler way, but I can't get the barline to
prin otherwise. Would you mind correcting my snippet, so I can add it
to the LSR?

Hi Vit,
Mats was actually right; however you have to mix the second and the
third examples in Polymetric Notation. Besides, you have to treat each
system as a separate entity, i.e. each system has its own
\compressMusic block.

You have to know, for each system, the amount of durations? Say you have
== four 3/4 measures on a staff = 12 quarter notes
== on the other: one 5/8 measure, one 2/2, one 6/8 and one 4/4 = 27
eight notes.
So you have to multiply the second staff by 24/27 (which is equivalent
to 8/9) to get the same duration than on the first staff.

The measurePosition takes two arguments, which here basically
correspond to your time signature.
Maybe a Scheme function could set both the TimeSignatureFraction *and*
the measurePosition *and* the correct automatic barlines ; but every
time I try, I still have to enter each \bar manually. Can't understand
why.
Anyway, I just tried to make it simple.

Regards,
V.Villenave

\layout {
  \context { \Score
 \remove Timing_translator
 \remove Default_bar_line_engraver
  }
  \context {
\Staff
\consists Timing_translator
\consists Default_bar_line_engraver
  }
}


  \new Staff {
\compressMusic #'( 8 . 9 ) {
  \time 5/8
  \set Timing.measurePosition = #(ly:make-moment 5 8)
b8 b b b b \bar |
  \time 2/2
  \set Timing.measurePosition = #(ly:make-moment 2 2)
b2 b \bar |
  \time 6/8
  \set Timing.measurePosition = #(ly:make-moment 6 8)
b4. b8 b b \bar |
  \time 4/4
  \set Timing.measurePosition = #(ly:make-moment 4 4)
b4 b b b \bar |
  }
}
  \new Staff {
\clef bass
\time 3/4
c2. d e f  }



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


Re: How to make different horizontal spacing for each staff?

2007-09-13 Thread Mats Bengtsson



Valentin Villenave wrote:

2007/9/13, Vít Reichel [EMAIL PROTECTED]:

  

thanks for your reply but this is not what I want. I need in general 2
independently spaced staves in a system that have a common barline at the end of
every system. I know this is technically not clean but for this modern piece it
would be the best possible solution.



Mats: there's got to be a simpler way, but I can't get the barline to
prin otherwise. Would you mind correcting my snippet, so I can add it
to the LSR?
  

I don't understand why you set measurePosition (which tells where the next
note is in the measure). Rather, you could set measureLength 
corresponding to
the scaling of the durations that you have applied (ideally that should 
be done

automatically by compressMusic, but this doesn't seem to happen now).
Here's a working version:

\layout {
 \context { \Score
\remove Timing_translator
\remove Default_bar_line_engraver
 }
 \context {
   \Staff
   \consists Timing_translator
   \consists Default_bar_line_engraver
 }
}


 \new Staff {
   \compressMusic #'( 8 . 9 ) {
 \time 5/8
 \set Timing.measureLength = #(ly:make-moment 5 9)
 b8 b b b b
 \time 2/2
 \set Timing.measureLength = #(ly:make-moment 8 9)
 b2 b
 \time 6/8
 \set Timing.measureLength = #(ly:make-moment 6 9)
 b4. b8 b b %\bar |
 \time 4/4
 \set Timing.measureLength = #(ly:make-moment 8 9)
 b4 b b b \bar |
 }
   }
 \new Staff {
   \clef bass
   \time 3/4
   c2. d e f  }


  /Mats



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


Re: How to make different horizontal spacing for each staff?

2007-09-13 Thread Valentin Villenave
2007/9/13, Mats Bengtsson [EMAIL PROTECTED]:

 I don't understand why you set measurePosition (which tells where the next
 note is in the measure). Rather, you could set measureLength
 corresponding to
 the scaling of the durations that you have applied (ideally that should
 be done
 automatically by compressMusic, but this doesn't seem to happen now).

Oh yes! I missed the point about the second argument of make-moment
being set to the second argument of compressMusic.

I had tried with measureLength indeed, but since my second argument
was wrong the barlines were messed up, whereas the measurePosition
trick made them disappear.

Indeed compressMusic should configure make-moment as well. I think
this explains #453, which I reported a few days ago.

Anyway, it's in LSR now.

Thanks,
Valentin


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


Re: How to make different horizontal spacing for each staff?

2007-09-12 Thread Vít Reichel

Hello Mats,

thanks for your reply but this is not what I want. I need in general 2
independently spaced staves in a system that have a common barline at the end of
every system. I know this is technically not clean but for this modern piece it
would be the best possible solution.

Thanks Vít






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


Re: How to make different horizontal spacing for each staff?

2007-09-11 Thread Mats Bengtsson

Have you read the section on Polymetric notation?
You may also want to play with the techniques described in Scaling 
durations,

for example.

  /Mats

Vít Reichel wrote:

Hello!

How can I make a different horizontal spacing for each staff or staff group?

I need to write a modern notation piece where there is one staff with every bar
with different time signature and one staff group in 3/4. All staves have a
common barline at the end of every system. The rythm of the music is quite free,
it is not at all necessary that the beats in different staves would be exactly
at the same vertical position. Time signature changes in one staff make
especially the little notes in other staves badly readable.

Is there a way to have independent horizontal spacing for each staff?

Thanks Vít



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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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