Hi,
while playing with the Measure_grouping_engraver
see:
http://lilypond.1069038.n5.nabble.com/changing-symbols-used-by-Measure-grouping-engraver-td215283.html
I noticed ....
I tried to get MeasureGrouping in default 4/4-time, but nothing happened.
One has to set beatStructure and baseMoment accordingly. The current
docs make it sound it should work out of the box, though.
\version "2.19.82" \new Staff \with { \consists "Measure_grouping_engraver" } { %% to get MeasureGrouping, next two lines need to be uncommented %\set Timing.beatStructure = 4,4 %\set Score.baseMoment = #(ly:make-moment 1/8) \repeat unfold 8 a'8 }
Is this just a documentation issue though?
should it work out of the box (to use your phrase) and so documentation is correct and the bug is in the code?
We don't document bugs after all.
James
From Harm:
Hi James,
this is not a bug in the code, afaik.
But the functionality of MeasureGrouping relies on appropriate
settings for beatStructure and baseMoment.
This should be documented, that's all.
In my example the default settings for 4/4-time prevent any output
from Measure_grouping_engraver.
The user should be told about the need to adjust those settings in
certain cases.
The IR states Measure_grouping_engraver is reading following context-properties:
baseMoment (moment)
beatStructure (list)
currentMusicalColumn (graphical (layout) object)
measurePosition (moment)
Imho, we should explain in the NR how to use them for MeasureGrouping.
Cheers,
Harm
From Harm:
If I understand correctly:
In general the time-signature says about a measure:
how many beats are present and how long are those beats.
P.e. in 3/8 there are 3 beats, each a 8th note long
In LilyPond we add a structure (
beatStructure
) to those beats (baseMoment
),reflecting the most common accents and determine the auto-beaming.
p.e. 9/8 is structered as three groups of three 8th-notes.
For beamings not according to
beatStructure
we setbeamExceptions
,p.e. for 3/8
Now, MeasureGrouping may annotate groups of beats, if groups are defined by
beatStructure
, see 9/8. Single beats will not cause any MeasureGrouping,see 3/8.
Here some test-code:
So, MeasureGrouping does not happen for time-signatures where the
beatStructure
is a list of single beats, like 3/8 or 7/8 or 3/4 etc.At least not per default. One can try playing with
beatStructure
and probablybaseMoment
to get MeasureGrouping, though.See:
Changing
beatStructure
and probablybaseMoment
ofcourse affectsauto-beaming.
We explain this already elsewhere, but probably we'll should mention
it in the section for
MeasureGrouping as well.
HTH,
Harm
2018-08-07 12:23 GMT+02:00 James Lowe pkx166h@runbox.com:
Indeed, in 4/8 the beat (baseMoment) is 1/8 not 1/4
True as well, beatStructure in 4/8 is '(2 2)
So below works as expected:
Though, there is another not yet mentioned point.
MeasureGrouping also relies on the actual music rhythmically matching
the beatStructure.
Will print only one bracket.
To get two brackets a second voice could be inserted, easily:
No bug I'd say, but likely worth explaining.
Though, why is the a first bracket printed, even if no music
rhythmically matches the beatStructure?
See 3rd measure of:
That I can't explain.
Others?
Cheers,
Harm
On 07/08/18 13:32, Simon Albrecht wrote: