lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternating stem directions on a beam + note spacing


From: Mats Bengtsson
Subject: Re: Alternating stem directions on a beam + note spacing
Date: Thu, 26 Apr 2007 10:07:48 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20070221)

Thanks Bruce for following up on old forgotten questions.
For this question, I think a much cleaner solution is to add the
following lines at the end of the file:

\layout{
 \context{
   \Score
   \override SpacingSpanner #'average-spacing-wishes = ##f
 }
}


  /Mats

Fairchild wrote:
Michael -

It seems your question hasn't received a response.  Here are a couple of
dirty solutions that may inspire others to do better.

                         - Bruce

%%%%%%%%%%%%%%%%%%%%%%

upper = { \clef treble \key f \minor \time 6/8 \skip 2. * 3 }
blah  = { \change Staff = lower \stemUp   \relative c { des16 }
                \change Staff = upper \stemDown \relative c'' { g } }
lower = { \clef bass \key f \minor \time 6/8
                \blah\blah\blah \blah\blah\blah
                \blah\blah\blah \blah\blah\blah
                \blah\blah\blah \blah\blah\blah }
pedal = { \clef bass \key f \minor \time 6/8

                \relative c, { f8 f f f'8. f16 f8 }

                \relative c, { f8 f f f'8. [
\once \set stemLeftBeamCount  = #2
\once \set stemRightBeamCount = #1
                                                        f16 s
\once \set stemLeftBeamCount  = #1
                                                                f ] }

                \relative c, { <<{ f8 f f
\override Stem           #'beamed-lengths = #'( 3.5 )
                                                        \stemDown f'8.
\once \override NoteHead             #'extra-offset  = #'( -2.0 . 0.0 )
\once \override Stem                 #'extra-offset  = #'( -2.0 . 0.0 )
\once \set stemLeftBeamCount  = #1       f16 f8 } \\ {
\once \override MultiMeasureRest     #'extra-offset  = #'(  5.1 . 0.9 )
\once \override MultiMeasureRest     #'font-size = #-3
                                                R2. }>> } }

\score { <<       \new PianoStaff <<
                                \context Staff = upper \upper
                                \context Staff = lower \lower
                                                >>
                        \new Staff \pedal
                >> }

%%%%%%%%%%%%%%%%%%%%%%

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Michael Krause
Sent: Saturday, December 09, 2006 9:17 AM
To: address@hidden
Subject: Alternating stem directions on a beam + note spacing


Hi there,

I've been playing around with staff switching in the PianoStaff context
recently and encountered a case of sub-optimal note spacing which I do
not know how to correct (I'm using 2.10.0).

Is there any possibility of pulling the f16 further towards the previous
note in the lowest stave in the following example? I find it's really
too close to the following note.

--- SNIP ---

\version "2.10.0"

upper = {
        \clef treble
        \key f \minor
        \time 6/8
        \skip 2. * 3
}

blah = {
        \change Staff = lower \stemUp   \relative c { des16 }
        \change Staff = upper \stemDown \relative c'' { g }
}

lower = {
        \clef bass
        \key f \minor
        \time 6/8

        \blah\blah\blah \blah\blah\blah
        \blah\blah\blah \blah\blah\blah
        \blah\blah\blah \blah\blah\blah
}

pedal = {
        \clef bass
        \key f \minor
        \time 6/8

        \relative c, { f8 f f f'8. f16 f8 }
        \relative c, { f8 f f f'8. f16 f8 }
        \relative c, { f8 f f f'8. f16 f8 }
}

\score {
        <<
                \new PianoStaff <<
                        \context Staff = upper \upper
                        \context Staff = lower \lower
                >>
                \new Staff = pedal \pedal
        >>
}

--- SNIP ---

Other than that, I'm having lots of fun with the program. Excellent
quality of output!

Best regards,
Michael




_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





_______________________________________________
lilypond-user mailing list
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]