lilypond-user
[Top][All Lists]
Advanced

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

Proportional notation - Bar length


From: Yoshiaki Onishi
Subject: Proportional notation - Bar length
Date: Mon, 16 Sep 2024 15:23:04 -0400

Dear Michael,

I have v. 2.24.4 so I had to replace \musicLength 16 to #(ly:make-moment 1/16). But it appears that the proportionalNotationDuration computes as expected if a measure is complete. Combining concatenated scores in complete measure(s) against those in incomplete measures will cause the misalignment issue, even for whole notes (complete) and half notes (incomplete) when they are repeated enough times.

Surveying the LilyPond’s documentation page:

https://lilypond.org/doc/v2.24/Documentation/notation/proportional-notation#:~:text=LilyPond%20supports%20proportional%20notation%2C%20a,on%20top%20of%20graph%20paper.

Here is the tweaked version of your code, this one concatenating complete measures. This did not present the misalignment problem. Apologies for the longish code…

Yoshi


\version "2.24.4"

\layout {
  indent = 0
  \context {
    \Score
    proportionalNotationDuration = #(ly:make-moment 1/12)
    %{ 
    NB: if the denominator is small (e.g. 8), it starts 
    to misalign when there are small note durations involved 
    %}
    \override SpacingSpanner.uniform-stretching = ##t
  }
  \context {
    \RhythmicStaff
    \remove "Time_signature_engraver"
    \omit BarLine
  }
}

\markup {
  \column {
    \concat{
      \score {
        \new RhythmicStaff { c1 }
      }
      \score {
        \new RhythmicStaff { c1 }
      }
      \score {
        \new RhythmicStaff { c1 }
      }
    }
    \concat {
      \score {
        \new RhythmicStaff { c2 c }
      }
      \score {
        \new RhythmicStaff { c2 c }
      }
      \score {
        \new RhythmicStaff { c2 c }
      }
    }
    \concat {
      \score {
        \new RhythmicStaff { c4 \tuplet 3/2 {c c c} c  }
      }
      \score {
        \new RhythmicStaff { c4 c c16 c c c c4 }
      }
      \score {
        \new RhythmicStaff { c4 c c c }
      }
    }
  }
}

i

Hi all,
I want to align several small scores in a grid for processing with a laser cutter, while maintaining proportional spacing. This works well for whole notes and half notes, for quarter notes, however, the staff symbols seem to be a bit longer
(while occupying the same duration).

Please see the attached screenshot.
Does anybody have a clue how to fix this?

The MWE:
\version "2.25.19"

\layout {
  indent = 0
  \context {
    \Score
    proportionalNotationDuration = \musicLength 16

  }
  \context {
    \RhythmicStaff
    \remove "Time_signature_engraver"
    \omit BarLine
  }
}

\markup {
  \column {
    \score {
      \new RhythmicStaff { c1 }
    }
    \concat {
      \score {
        \new RhythmicStaff { c2 }
      }
      \score {
        \new RhythmicStaff { c2 }
      }
    }
    \concat {
      \score {
        \new RhythmicStaff { c4 }
      }
      \score {
        \new RhythmicStaff { c4 }
      }
      \score {
        \new RhythmicStaff { c4 }
      }
      \score {
        \new RhythmicStaff { c4 }
      }
    }
  }
}

Michael

reply via email to

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