Am Mittwoch, 1. Juni 2011, 13:13:04 schrieb Reinhold Kainhofer:
> Am Mittwoch, 1. Juni 2011, 07:58:39 schrieb Paul Scott:
> > No.  I need for example:
> > 
> > 3/4 6/8 <3/4 bar> <barline> <6/8 bar> <barline> <3/4 bar> <barline> <6/8
> > bar> <barline> etc.
> > 
> > A classic example is "America" from "West Side Story"  The parts I was
> > reworking for a show were from "Man of La Mancha"
> 
> There were already some good suggestions on the list. To get the automatic
> beaming correct, you'll probably need to use another trick: You have to
> change the time signature for each measure, but you simply hide the time
> signature.
> 
> Attached is a (documented) example of a score with measures alternating
> irregularly between 2/4 and 3/4.

And here it is for real...
Cheers,
Reinhold

PS: Maybe such a snippet could be added to the documentation?

-- 
------------------------------------------------------------------
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
mySig = {
  % don't print any subsequent time signatures
  % Note: User Score.TimeSignature, so it affects also all other staves
  \override Score.TimeSignature #'stencil = ##f

  % Format the alternating time sigs as two fractions
  #(define (compound-time one two three four)
   (markup #:override '(baseline-skip . 0) #:number 
    (#:line ((#:column (one three)) #:vcenter "" (#:column (two four))))))
 
  %% Force the display of the two fractions for just this one moment (you 
  %% need to use a \time command right after \mySig!), all further time 
  %% signature changes will not be printed (but the measure length and the 
  %% beaming WILL be adjusted accordingly)
  \once \override Score.TimeSignature #'stencil = #ly:text-interface::print
  \once \override Score.TimeSignature #'text = #(compound-time "2" "3" "4" "4" )
}

\score { <<
    \new Staff \relative c'' { \mySig \time 2/4 c2 \time 3/4 d2. \time 2/4 e2 f g \time 3/4 b2. c \time 2/4 c2~ c }
    \new Staff \relative c' { \mySig \time 2/4 c2 \time 3/4 d2. \time 2/4 e2 f g \time 3/4 b2. c \time 2/4 c2~ c }
    % It suffices to make the time signature changes in one voice, all others
    % will be affected (but of course, explicitly adding the changes makes
    % reading the lilypond code much easier, so I would still recommend it)
    \new Staff \relative c' { c2 d2. e2 f g b2. c c2~ c }
  >>
}

Attachment: alternating_timesig.pdf
Description: Adobe PDF document

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

Reply via email to