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 <j...@diljun.com> 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 > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user