Timing.baseMoment behaviour

2011-02-26 Thread Jean-Charles Malahieude

Hi,

While translating the commit "Doc -- Clarify instructions on autobeam
settings" I wanted to understand what was illustrated, but



texidoc = { Timing.baseMoment does not always work }

\score {
  \new Staff {
\time 2/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2)
a'16^"works" \repeat unfold 7 { a'16 }
  }
}
\score {
  \new Staff {
\time 6/8
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
a'16^"works" \repeat unfold 11 { a'16 }
  }
}
\score {
  \new Staff {
\time 3/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
a'16^"does not work" \repeat unfold 11 { a'16 }
  }
}
===

Cheers,
Jean-Charles

___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Timing.baseMoment behaviour

2011-02-26 Thread Phil Holmes
"Jean-Charles Malahieude"  wrote in message 
news:4d6961e8.5050...@orange.fr...

Hi,

While translating the commit "Doc -- Clarify instructions on autobeam
settings" I wanted to understand what was illustrated, but



texidoc = { Timing.baseMoment does not always work }

\score {
  \new Staff {
\time 2/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2)
a'16^"works" \repeat unfold 7 { a'16 }
  }
}
\score {
  \new Staff {
\time 6/8
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
a'16^"works" \repeat unfold 11 { a'16 }
  }
}
\score {
  \new Staff {
\time 3/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
a'16^"does not work" \repeat unfold 11 { a'16 }
  }
}
===

Cheers,
Jean-Charles


You also need to clear beamExceptions:

\score {
  \new Staff {
\time 3/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
\set Timing.beamExceptions = #'()
a'16^"works" \repeat unfold 11 { a'16 }
  }
}



--
Phil Holmes
Bug Squad




___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Timing.baseMoment behaviour

2011-02-27 Thread Jean-Charles Malahieude

Le 27/02/2011 19:23, Phil Holmes disait :

"Jean-Charles Malahieude" wrote:

Hi,


While translating the commit "Doc -- Clarify instructions on autobeam
settings" I wanted to understand what was illustrated, but




texidoc = { Timing.baseMoment does not always work }


\score {
  \new Staff {
\time 2/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2)
a'16^"works" \repeat unfold 7 { a'16 }
  }
}
\score {
  \new Staff {
\time 6/8
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
a'16^"works" \repeat unfold 11 { a'16 }
  }
}
\score {
  \new Staff {
\time 3/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
a'16^"does not work" \repeat unfold 11 { a'16 }
  }
}
===


Cheers,
Jean-Charles


You also need to clear beamExceptions:


\score {
  \new Staff {
\time 3/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
\set Timing.beamExceptions = #'()
a'16^"works" \repeat unfold 11 { a'16 }
  }
}




I find it strange that this clearing is mandatory only with 3/4, and had 
preferred the snippet to contain it, since whatever you try to 
understand and explain this "known issue" it wont work. Nevertheless, 
I'll add it to the French version.


Cheers,
Jean-Charles

___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Timing.baseMoment behaviour

2011-02-27 Thread Phil Holmes
- Original Message - 
From: "Jean-Charles Malahieude" 

To: 
Cc: "Lily Bugs" 
Sent: Sunday, February 27, 2011 7:20 PM
Subject: Re: Timing.baseMoment behaviour



Le 27/02/2011 19:23, Phil Holmes disait :

\score {
  \new Staff {
\time 3/4
\set Timing.baseMoment = #(ly:make-moment 1 16)
\set Timing.beatStructure = #'(3 3 2 3 1)
\set Timing.beamExceptions = #'()
a'16^"works" \repeat unfold 11 { a'16 }
  }
}




I find it strange that this clearing is mandatory only with 3/4, and had 
preferred the snippet to contain it, since whatever you try to understand 
and explain this "known issue" it wont work. Nevertheless, I'll add it to 
the French version.


Cheers,
Jean-Charles



I think it's generally recommended to clear beamExceptions when you are 
changing the beaming.  However, it's not always a problem if you don't.


--
Phil Holmes



___
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond