lilypond-user
[Top][All Lists]
Advanced

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

Re: Limit the scope of baseMoment and beatStructure to a single Staff wi


From: Volodymyr Prokopyuk
Subject: Re: Limit the scope of baseMoment and beatStructure to a single Staff within a PianoStaff
Date: Tue, 25 Oct 2022 10:24:50 +0200

Hello Jean, Mark and Leo,

Thank you very much for your valuable feedback!

You are absolutely right! I was using Timing instead of Staff for the beamExceptions, baseMoment and BeatStructure. After changing Timing to Staff everything works as expected.

Thank you very much! You helped me a lot! Have a nice day,
Vlad

On Mon, Oct 24, 2022 at 11:09 PM Leo Correia de Verdier <leo.correia.de.verdier@gmail.com> wrote:
Hi Vlad!

You can specify what context baseMoment and beatStructure should apply to, the syntax is like

\set Staff.beatStructure = 1,1

The default is Voice, so the reason your beatStructure is not working is more likely that you have some beamExceptions rule in effect (they take priority over beatStructure and baseMoment). Try to
\set beamExceptions = #’()
before the music and see if it works. ( beamExceptions can also be set for specific contexts)

For next time providing a minimal code is helpful:

\version "2.23.11"
\new PianoStaff
<<
  \new Staff 
  \relative c'' { 
    \time 2/4
    \set Timing.beamExceptions = #'()
    \set baseMoment = #(ly:make-moment 1/4)
    \set beatStructure = 1,1
    b8 d c b
  }
  \new Staff {
    \clef bass
    \set baseMoment = #(ly:make-moment 1/2)
    \set beatStructure = #'(1)
    e8 <gis d' e'> q q
  }
>>

HTH
/Leo

24 okt. 2022 kl. 22:11 skrev Volodymyr Prokopyuk <volodymyrprokopyuk@gmail.com>:

Hello,

I'd like to ask a question about the scope of the baseMoment and beatStructure configuration to set automatic beam behavior in two-staves PianoStaff.

Problem

When baseMoment = 1/4 and beatStructure = 1,1 the output is
image.png
When baseMoment = 1/2 and beatStructure = #'(1) the output is
image.png
Question

Is it possible to limit the scope of the baseMoment and beatStructure to a single Staff within the PianoStaff to get the below output without using the manual beaming with [...]?
image.png
Thank you,
Vlad




reply via email to

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