lilypond-user
[Top][All Lists]
Advanced

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

Proportional notation not working as expected.


From: Stefano Antonelli
Subject: Proportional notation not working as expected.
Date: Fri, 30 Aug 2019 22:51:00 -0700

Dear list,

I'm trying to control measure width using proportional spacing.  And
it's not working as expected.

I created a kind of "into/out of" proportional notation wrapper:

ePUT  =
#(define-music-function
 (parser location num music)
 (number? ly:music?)
#{
\set Score.proportionalNotationDuration = #(ly:make-moment 1 num)
\override Score.SpacingSpanner.uniform-stretching = ##t
#music
\set Score.proportionalNotationDuration = #(ly:make-moment 1/4)
\override Score.SpacingSpanner.uniform-stretching = ##f
#})

Based on a previous email exchange and used it around phrases I want to
have a fixed width, no matter where they are used (easily recognised).
 However, I discovered that depending on where they are located, a
different moment was needed.

I've attached a part of the score I'm working on (actually a drum
transcription), stripped down a bit.  Maybe there's an obvious problem
to more experienced eyes.

Briefly, the first 4 lines contain phrases that are used more than
once.  The very last measure on the last line (\fill1) is the only
measure not seen elsewhere.

To give an example of the problem, in one location I need:

\ePUT #14 { \chorusI }  % ie. make-moment 1/14

but in another location I need:

\ePUT #3 { \chorusI }   % ie. make-moment 1/3

for what are the same notes.  This behaviour makes no sense to me.   
Am I doing something fundamentally wrong?

Basically the only widths I want flexible are the percent repeats and
\fill1.  If there's another way, I'd appreciate suggestions.

The file as attached works with 2.19.83 (I use 2.18.2) and has the same
behaviour.  So I don't think this is a bug.  Likely a problem between
the chair and the keyboard...

Thanks,
Stef




Attachment: horizontal-spacing-7.ly
Description: Text Data

Attachment: horizontal-spacing-7.pdf
Description: Adobe PDF document


reply via email to

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