My apologies!
My definition below needs:
#(define (scoop-stencil grob)
(ly:stencil-combine-at-edge
(ly:note-head::print grob) 0 -1
(grob-interpret-markup grob
(markup #:with-dimensions '(0 . 0) '(0 . 0)
#:translate '( -2 . -2) #:musicglyph "brackettips.up" )) 0 )
)
Paul
On 5/31/20 12:10 PM, Paul Scott wrote:
On 5/31/20 9:44 AM, Wim van Dommelen wrote:
Hi Pierre,
Marvellous, I looked at it this morning and thought one couldn't do
that so fast! Now I can also finish that code :-)
Or I have this definition in my main include file:
scoop = \once \override NoteHead #'stencil = #scoop-stencil
Then I just do \scoop a4 for example.
Paul
You're the fast, one and single winner, mail me you IBAN and
Swift-code (by seperate email) and I'll send you the reward a.s.a.p.
Promis is promis!
Regards,
Wim.
On 31 May 2020, at 16:46 , Pierre Perol-Schneider
<pierre.schneider.pa...@gmail.com
<mailto:pierre.schneider.pa...@gmail.com>> wrote:
Hi Wim,
For a one shot score, you can do:
\version "2.20.0"
{
\clef F
\key g\major
bes
\once\hideNotes
\grace e-\tweak extra-offset #'(-1.3 . .8)( a) g fis
\repeat unfold 4 {
r8 \once\hideNotes
\grace e'-\tweak extra-offset #'(-1.3 . .8)( g')
}
\repeat unfold 3 {
\once\hideNotes
\grace e'-\tweak extra-offset #'(-1.3 . .8)( g'4)
}
\once\hideNotes
\grace e'8-\tweak extra-offset #'(-1.3 . .8)( g') fis'!
}
HTH.
Cheers,
Pierre
Le dim. 31 mai 2020 à 16:24, Wim van Dommelen <m...@wimvd.nl
<mailto:m...@wimvd.nl>> a écrit :
Showing LilyPond to a friend is sometimes tricky. The question:
"Oh, can it do this or that?" easily pops up.
I "survived" the BendAfter question, but had to let go for a
BendBefore (or 'doit'?) example.
Diving in at home later that day I found some interesting things
done with a new(?) BendSpanner-grob for a guitar, and several
people having put a bounty for further work on this. This goes
back to 2013, 2016, 2019, apparantly not an easy question. The
BendSpanner-grob example goes way behind what I probably ever
will need, in fact I would probably have enough with the coding
for (some of) my examples.
I've extracted 3 examples in 3 .PNG-files, attached. If you want
I can also put a bounty out for this ($25 for each example via
PayPal?, first come, first serve). My bending is aimed at a bass
clarinet, but that is probably irrelevant for you.....
The 3 examples:
1:
<BendBefore-1.png>
(the bar-number "12" is irrelevant, btw.)
2:
<BendBefore-2.png>
3:
<BendBefore-3.png>
Can someone help me?
Regards,
Wim.