Automatic fixing of note between measures

2014-09-18 Thread Jay Vara
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


Re: Automatic fixing of note between measures

2014-09-18 Thread Malte Meyn
Yes, there is the Completion_heads_engraver. I don’t remember exactly 
how to use it, but you’ll find it in the manuals.


Am 18.09.2014 um 17:06 schrieb Jay Vara:

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


Re: Automatic fixing of note between measures

2014-09-18 Thread Malte Meyn

I found it in one of my own scores:

  \layout {
\context {
  \Voice
  \remove Note_heads_engraver
  \remove Rest_engraver
  \consists Completion_heads_engraver
  \consists Completion_rest_engraver
}
  }

Am 18.09.2014 um 18:25 schrieb Malte Meyn:

Yes, there is the Completion_heads_engraver. I don’t remember exactly
how to use it, but you’ll find it in the manuals.

Am 18.09.2014 um 17:06 schrieb Jay Vara:

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


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic fixing of note between measures

2014-09-18 Thread David Bellows
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


Re: Automatic fixing of note between measures

2014-09-18 Thread Jay Vara
Nice, that works.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic fixing of note between measures

2014-09-18 Thread Jay Vara
David,

That works. Malte also suggested something similar. 

Is there a reason not to use Completion_heads_engraver all the time or 
atleast as a default?

I am also using a compound metre. Hopefully this will work with that.

In one case I have repeating measures of 5/4 + 3/4 + 2/4. I have succeeded 
in getting the bar lines printed after 5th and 8th quarter notes in a 10/4 
time scale by adding a voice with bar lines at those places. May be there 
is a different method of achieving this effect.

Jay
   


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic fixing of note between measures

2014-09-18 Thread David Bellows
Is there a reason not to use Completion_heads_engraver all the time or
atleast as a default?

I think the expectation is that most composers most of the time do not want
notes split up automatically as it probably means a mistake was made when
entering the notes. Basically they'll split when they want to. It's just
you and I working with generated scores where this other behavior is
preferred.

I am also using a compound metre. Hopefully this will work with that.

I have no idea about that! For me I'm just using the bar lines and
automatic breaking more for aesthetic reasons or as a help to the performer
to see where they are than I am for any musical reasons. So for me 4/4 is
all I'm using. Naively I would assume that it should work for more complex
time signatures.

In one case I have repeating measures of 5/4 + 3/4 + 2/4. I have succeeded
in getting the bar lines printed after 5th and 8th quarter notes in a 10/4
time scale by adding a voice with bar lines at those places. May be there
is a different method of achieving this effect.

I'm not quite getting what you're trying to do, do have a picture or some
code?

On Thu, Sep 18, 2014 at 10:49 AM, Jay Vara j...@diljun.com wrote:

 David,

 That works. Malte also suggested something similar.

 Is there a reason not to use Completion_heads_engraver all the time or
 atleast as a default?

 I am also using a compound metre. Hopefully this will work with that.

 In one case I have repeating measures of 5/4 + 3/4 + 2/4. I have succeeded
 in getting the bar lines printed after 5th and 8th quarter notes in a 10/4
 time scale by adding a voice with bar lines at those places. May be there
 is a different method of achieving this effect.

 Jay



 ___
 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