[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Colored box behind a single note
From: |
Aaron Hill |
Subject: |
Re: Colored box behind a single note |
Date: |
Thu, 25 Jul 2019 08:53:53 -0700 |
User-agent: |
Roundcube Webmail/1.3.8 |
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
span.cropped.png
Description: PNG image
- Re: Colored box behind a single note, (continued)
- Re: Colored box behind a single note, Werner LEMBERG, 2019/07/25
- Re: Colored box behind a single note, David Kastrup, 2019/07/25
- Re: Colored box behind a single note, Werner LEMBERG, 2019/07/25
- Re: Colored box behind a single note, David Kastrup, 2019/07/25
- Re: Colored box behind a single note, Werner LEMBERG, 2019/07/25
- Re: Colored box behind a single note, David Kastrup, 2019/07/25
- Re: Colored box behind a single note, Malte Meyn, 2019/07/25
- Re: Colored box behind a single note, Werner LEMBERG, 2019/07/25
- Re: Colored box behind a single note, Werner LEMBERG, 2019/07/25
- Re: Colored box behind a single note, Werner LEMBERG, 2019/07/25
Re: Colored box behind a single note,
Aaron Hill <=