lilypond-user
[Top][All Lists]
Advanced

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

Re: changing rhythmic representation to align 8ths with 4ths


From: Lukas-Fabian Moser
Subject: Re: changing rhythmic representation to align 8ths with 4ths
Date: Tue, 23 Mar 2021 10:47:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Hi Bart,

But this results in a situation where the 8ths are not lined up as 4ths, which is what I need.

Anyone here who knows how it might be done?

Maybe something like this?

\version "2.23.0"

music = \relative c' {c'4 c c c }
musicTwo = \relative c' {c'8 c c c }

\score {
  <<
    \new Staff {
      \time 4/4
      \set Timing.measureLength = #(ly:make-moment 4/8)
      \scaleDurations 1/2 \music
    }
    \new Staff {\time 4/8 \musicTwo}

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

But in fact, I think one does not need to shift the Timing_translator to the staff context at all: It should suffice to use \scaleDurations and a manual tweak of the displayed time signature for one staff.

Lukas




reply via email to

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