-\version "2.16.0"
+\version "2.19.19"
\header {
texidoc = "Ambitus for pieces beginning with @code{\\cueDuringWithClef}.
@code{\\cueDuringWithClef} command is handy. Using this command at
the beginning of a piece should leave the ambitus displayed based
on the main clef.
+
+An @code{Ambitus_engraver} should ignore notes in @code{CueVoice}
+contexts.
"
}
\layout {
\context {
- \Voice
+ \Staff
\consists "Ambitus_engraver"
}
}
Ambitus_engraver::acknowledge_note_head (Grob_info info)
{
Stream_event *nr = info.event_cause ();
- if (nr && nr->in_event_class ("note-event"))
+ if (nr && nr->in_event_class ("note-event")
+ && !to_boolean (info.grob ()->get_property ("ignore-ambitus")))
{
SCM p = nr->get_property ("pitch");
/*
%%%% You should have received a copy of the GNU General Public License
%%%% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-\version "2.19.16"
+\version "2.19.19"
\context {
\name "Global"
\name "CueVoice"
\alias "Voice"
fontSize = #-4
+ \override NoteHead.ignore-ambitus = ##t
\override Stem.length-fraction = #(magstep -4)
\override Beam.length-fraction = #(magstep -4)
\override Beam.beam-thickness = #0.35
dash structure. Each @code{dash-element} has a starting t value,
an ending t-value, a @code{dash-fraction}, and a @code{dash-period}.")
(dash-fraction ,number? "Size of the dashes, relative to
-@code{dash-period}. Should be between @code{0.1} and @code{1.0}
-(continuous line). If set to @code{0.0}, a dotted line is produced")
+@code{dash-period}. Should be between @code{0.1} and
+@code{1.0} (continuous line). If set to @code{0.0}, a dotted line is
+produced")
(dash-period ,number? "The length of one dash together with
whitespace. If negative, no line is drawn at all.")
(default-direction ,ly:dir? "Direction determined by note head
that encloses the stencils that comprise the grob. In the Postscript
backend, as there is no way to group items, the setting of the id property
will have no effect.")
+ (ignore-ambitus ,boolean? "If set, don't consider this notehead
+for ambitus calculation.")
(ignore-collision ,boolean? "If set, don't do note collision
resolution on this @code{NoteColumn}.")
(implicit ,boolean? "Is this an implicit bass figure?")
. (
(duration-log . 2)
(glyph-name . ,note-head::calc-glyph-name)
+ (ignore-ambitus . #t)
(stencil . ,ly:note-head::print)
(Y-offset . ,staff-symbol-referencer::callback)
(Y-extent . ,grob::always-Y-extent-from-stencil)