barNumberAlignSymbol.
add ADD_ACKNOWLEDGER() call for break_aligned. Fixes bar-number-breathe
2006-03-16 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/bar-number-engraver.cc: add support for
+ barNumberAlignSymbol.
+ add ADD_ACKNOWLEDGER() call for break_aligned. Fixes bar-number-breathe
+
* lily/pointer-group-interface.cc (set_ordered): new function.
(add_unordered_grob): new function.
Grob *s = inf.grob ();
if (text_
&& dynamic_cast<Item *> (s)
- && s->get_property ("break-align-symbol") == ly_symbol2scm ("left-edge"))
+ && s->get_property ("break-align-symbol") == get_property ("barNumberAlignSymbol"))
{
/*
By default this would land on the Paper_column -- so why
text_ = make_item ("BarNumber", SCM_EOL);
}
+
+ADD_ACKNOWLEDGER(Bar_number_engraver,break_aligned);
+
ADD_TRANSLATOR (Bar_number_engraver,
/* doc */ "A bar number is created whenever measurePosition "
"is zero and when there is a bar line (ie. when @code{whichBar} is set. "
/* create */ "BarNumber",
/* accept */ "",
/* read */
+ "barNumberAlignSymbol "
"currentBarNumber "
"whichBar "
"stavesFound "
- "barNumberVisibility",
+ "barNumberVisibility ",
/* write */ "");
/*
We look at the width of the note head, since smaller heads get less space
+
eg. a quarter rest gets almost 0.5 ss less horizontal space than a note.
What is sticking out of the note head (eg. a flag), doesn't get
markFormatter = #format-mark-letters
rehearsalMark = #1
rehearsalMarkAlignSymbol = #'staff-bar
+ barNumberAlignSymbol = #'staff-bar
subdivideBeams = ##f
allowBeamBreak = ##f
extraNatural = ##t
(barCheckSynchronize ,boolean? "If true then reset @code{measurePosition}
when finding a barcheck.")
+ (barNumberAlignSymbol ,symbol? "Which break-align-symbol to align the bar number with.")
(barNumberVisibility ,procedure? "Procedure that takes an int and
returns whether the corresponding bar number should be printed")
(bassStaffProperties ,list? "Alist of property settings to apply