lilypond-user
[Top][All Lists]
Advanced

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

Re: Resetting where a barline starts


From: Michael Lauer
Subject: Re: Resetting where a barline starts
Date: Wed, 4 Apr 2007 15:40:22 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Laura Conrad <lconrad <at> laymusic.org> writes:

> 
> 
> I'm transcribing a piece that was originally barless, but in lilypond
> terms it switches between 2/2 and 3/2 meters.  (Actually the 3/2 is
> really a 3/4, since there are a lot of quarter notes, but I want it to
> print in single-digit style as a 3, so I've entered it as "\time
> 3/2".)
> 

You can reset the position in the measure with
\set Score.measurePosition = #(ly:make-moment 0 2)

But (if I understand what you really want) it might be better to separate the
measure length from the printed time signature (which you really intend to be
more of a mensuration?).  You can do that by setting measureLength and
timeSignatureFraction separately, or by overriding the time signature's stencil.
 All three possibilities below.  Hope this helps--

Michael


\version "2.10.20"
\include "english.ly"

#(define (makeTimesigFn s)
  (lambda (grob) 
      (interpret-markup
       (ly:grob-layout grob)
       '()
       (markup #:lower 1 s )) ))
     
\score
{
    \relative c' {
        %\set Score.defaultBarType = "empty"
        \override Staff.TimeSignature #'style = #'single-digit
        \override Staff.TimeSignature #'stencil = #(makeTimesigFn "2")
        \time 3/2
        a2 b 
        c
        \override Staff.TimeSignature #'stencil = #(makeTimesigFn "3")
        \time 3/2
        a4 b c  d
         e f 
         g a b
    }
}

\score
{
    \relative c' {
        %\set Score.defaultBarType = "empty"
        \override Staff.TimeSignature #'style = #'single-digit
        \set Score.measureLength = #(ly:make-moment 3 2)
        \set Score.timeSignatureFraction = #(cons 2 2)
        a2 b 
        c
        \set Score.measureLength = #(ly:make-moment 3 2)
        \set Score.timeSignatureFraction = #(cons 3 4)
        a4 b c  d
         e f 
         g a b
    }
}
 
\score
{
    \relative c' {
        %\set Score.defaultBarType = "empty"
        \override Staff.TimeSignature #'style = #'single-digit
        \time 2/2
        a2 b 
        c
        \set Score.measurePosition = #(ly:make-moment 0 2)
        \time 3/2
        a4 b c  d
         e f 
         g a b
    }
}





reply via email to

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