lilypond-user
[Top][All Lists]
Advanced

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

Re: Automatic fixing of note between measures


From: David Bellows
Subject: Re: Automatic fixing of note between measures
Date: Thu, 18 Sep 2014 09:30:46 -0700

The project I'm working on right now also automatically generates music and I ran into the same problem. Here's what my software automatically generates now to deal with it:

\score { 
  \new PianoStaff << 
\new Staff = "upper" << 
\new Voice = "first" \with {\remove "Note_heads_engraver" \consists "Completion_heads_engraver" \remove "Rest_engraver" \consists "Completion_rest_engraver"} 
\voice_one  >> 
\new Staff = "lower" << 
\new Voice = "second" \with {\remove "Note_heads_engraver" \consists "Completion_heads_engraver" \remove "Rest_engraver" \consists "Completion_rest_engraver"} 
\voice_five  >> 
>> 
  \layout{ragged-bottom = ##t ragged-right = ##t } 
}

What you're looking for is the stuff starting at "\with {\remove ...\consists "Completion_rest_engraver"}

This is a lifesaver. 

On Thu, Sep 18, 2014 at 8:06 AM, Jay Vara <address@hidden> wrote:
Sometimes a note in my (generated) music falls on the bar lines. Is there
a way to auto fix it by splitting the note as per the measure and joining
the two parts with a tie?

In the following, the first line shows that there are five quarter notes
in the first measure rather than 4.

The second line is how I would like it to be auto-resolved.

\version "2.18.2"

\relative c' {c4 d e f2 g h}

\relative c' {c4 d e f~f g h}




_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

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