On 2019-07-21 10:04 am, Werner LEMBERG wrote:
Using
http://lsr.di.unimi.it/LSR/Item?id=1000
I wonder how to get the effect for a single note. Ideally, I would
like to write
\genericSpan <...parameters ...>
e\startGroup\endGroup
but since `\genericSpan' uses a `HorizontalBracket' grob, this fails;
it needs at least two notes.
I wasn't able to find a suitable solution in the web; IMHO, it would
be a quite useful addition to this snippet.
It appears you could use an invisible grace note as a workaround:
%%%%
\version "2.19.83"
\include "ColorSpanDef.ily"
omitNotes = {
% Like hideNotes, but removes the stencils instead.
\override Dots.stencil = ##f
\override NoteHead.stencil = ##f
\override NoteHead.no-ledgers = ##t
\override Flag.stencil = ##f
\override Beam.stencil = ##f
\override Stem.stencil = ##f
\override Accidental.stencil = ##f
\override Rest.stencil = ##f
\override TabNoteHead.stencil = ##f
}
graceStartGroup = \grace { \once \omitNotes b'1\startGroup }
\new Staff {
g'4 a'8[
\genericSpan #-1 #1 #-1 #1 \colDarkBlue \colLightBlue #0 #0 ##f ##f
\graceStartGroup b'8]\stopGroup
c''8[
\genericSpan #-1 #1 #-1 #1 \colDarkGreen \colLightGreen #0 #0 ##f ##f
\graceStartGroup b'16\stopGroup
a'16]
\genericSpan #-1 #1 #-1 #1 \colDarkRed \colLightRed #0 #0 ##f ##f
\graceStartGroup b'4\stopGroup
}
%%%%
-- Aaron Hill_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user