Hello Ken, look here for a demonstration how easily you can get problems using the approach in the documentation simply be doing things like avoid-slur inside or by adding another text (although that one could be solved by fine-tuning the script-priority). On the other hand the method that directly annotated the stencil has absolutely no such issues.
Cheers, Valentin Am Dienstag, 28. Juni 2022, 18:28:16 CEST schrieb Kenneth Wolcott: > Hello Valentin; > > Thank you for your code which modifies the stencil. > > I'll save this in my snippet folder and experiment using it shortly. > > Thanks, > Ken > > On Tue, Jun 28, 2022 at 9:13 AM Valentin Petzel <valen...@petzel.at> wrote: > > Hello Ken, hello William, > > > > instead of doing the thing in the documentation, which is quite unstable, > > I’d suggest to directly modify the stencil as in the appended file. > > > > Actually I’m planning to implement this properly at some point (i.e. > > transposable), but I haven’t found the time yet. > > > > Cheers, > > Valentin > > > > Am Dienstag, 28. Juni 2022, 06:39:48 CEST schrieb Kenneth Wolcott: > > > Hi William; > > > > > > Looks like I need to read more slowly :-) I see now that my > > > > > > question was indeed precisely covered in the documentation. > > > > > > Thank *you*. :-) > > > Ken > > > > > > On Mon, Jun 27, 2022 at 9:29 PM William Rehwinkel > > > > > > <will...@williamrehwinkel.net> wrote: > > > > No problem Ken. Sorry about that, I made the following example: (note > > > > that this would not play in midi playback) > > > > > > > > \version "2.22.2" > > > > > > > > shMordentUp = \markup { \center-column {\musicglyph "scripts.mordent" > > > > \musicglyph "accidentals.sharp" }} > > > > shMordentDo = \markup { \center-column {\musicglyph > > > > "accidentals.sharp" > > > > \musicglyph "scripts.mordent" }} > > > > > > > > \score { > > > > > > > > \relative c'' { > > > > > > > > c4^\shMordentUp > > > > c4_\shMordentDo > > > > > > > > } > > > > > > > > } > > > > > > > > Also note this example from > > > > https://lilypond.org/doc/v2.22/Documentation/notation/expressive-marks > > > > -att > > > > ached-to-notes > > > > > > > > \relative c''' { > > > > > > > > \once \override TextScript.script-priority = #-100 > > > > a2^\prall^\markup { \sharp } > > > > > > > > \once \override Script.script-priority = #-100 > > > > a2^\prall^\markup { \sharp } > > > > > > > > } > > > > > > > > Thank you, > > > > > > > > -William > > > > > > > > On 6/28/22 00:23, Kenneth Wolcott wrote: > > > > > Hi William; > > > > > > > > > > Thank you, now I have a meaning. > > > > > > > > > > What remains (that I did not specify) is how to engrave this? > > > > > > > > > > Thanks, > > > > > Ken > > > > > > > > > > On Mon, Jun 27, 2022 at 8:51 PM William Rehwinkel > > > > > > > > > > <will...@williamrehwinkel.net> wrote: > > > > >> That symbol means that the lower note is sharped. So it would be > > > > >> g-f#-g > > > > >> instead of g-fnatural-g. See > > > > >> https://music.stackexchange.com/questions/86043/would-an-accidental > > > > >> -in-> > >> a-mordant-still-be-effective-for-the-whole-measure> >>> > > >> > > > > >> On 6/27/22 23:13, Kenneth Wolcott wrote: > > > > >>> Hi; > > > > >>> > > > > >>> I'm trying to engrave a Piano arrangement of JS Bach, Six > > > > >>> Little > > > > >>> > > > > >>> Preludes, Nr 1, where the left hand notes have a strange thing > > > > >>> I've > > > > >>> never seen before, a mordent on top of a sharp sign. > > > > >>> > > > > >>> I've never seen these symbols together in this manner. > > > > >>> > > > > >>> I have a screenshot attached. > > > > >>> > > > > >>> Thanks, > > > > >>> Ken Wolcott > > > > >> > > > > >> -- > > > > >> William Rehwinkel > > > > >> > > > > >> will...@williamrehwinkel.net > > > > >> https://williamrehwinkel.net > > > > > > > > -- > > > > William Rehwinkel > > > > > > > > will...@williamrehwinkel.net > > > > https://williamrehwinkel.net
\version "2.22.2" #(define (integer-or-false? x) (or (not x) (integer? x))) alt = #(define-music-function (alt_up alt_down mus) (integer-or-false? (integer-or-false? #f) ly:music?) #{ \tweak stencil #(grob-transformer 'stencil (lambda (grob orig) (if alt_up (let* ((mu (markup #:fontsize -4 #:center-align (alteration->text-accidental-markup (/ alt_up 2)))) (altstc (grob-interpret-markup grob mu)) (arttype (ly:event-property (ly:grob-property grob 'cause) 'articulation-type))) (if (equal? arttype "trill") (set! altstc (ly:stencil-translate altstc '(0.7 . 0)))) (set! orig (ly:stencil-combine-at-edge orig Y UP altstc (if (equal? arttype "trill") -0.3 0.2))))) (if alt_down (let* ((mu (markup #:fontsize -4 #:center-align (alteration->text-accidental-markup (/ alt_down 2)))) (altstc (grob-interpret-markup grob mu)) (arttype (ly:event-property (ly:grob-property grob 'cause) 'articulation-type))) (set! orig (ly:stencil-combine-at-edge orig Y DOWN altstc 0.2)))) orig)) #mus #}) \score { \relative c'' { \key c\minor c4-\alt ##f #0 ^\mordent c4-\alt #-1 ^\trill c4-\alt #0 #-1 ^\turn } } << \new Staff \with { instrumentName = "Doc" } \relative c''' { a2( \once \override TextScript.script-priority = #-100 a2-\tweak avoid-slur #'inside ^\prall^\markup { \sharp } \once \override Script.script-priority = #-100 a2)-\tweak avoid-slur #'inside ^\prall^\markup { \sharp } } \new Staff \with { instrumentName = \markup\center-column { "My" "method" } } \relative c''' { a2( a2-\tweak avoid-slur #'inside -\alt ##f #1 ^\prall a2)-\tweak avoid-slur #'inside \alt #1 ^\prall } >> << \new Staff \with { instrumentName = "Doc" } \relative c''' { \once \override TextScript.script-priority = #-100 a2^\prall^\markup { \sharp }^\markup\italic"dolce" \once \override Script.script-priority = #-100 a2^\prall^\markup { \sharp } } \new Staff \with { instrumentName = \markup\center-column { "My" "method" } } \relative c''' { a2-\tweak avoid-slur #'inside -\alt ##f #1 ^\prall ^\markup\italic"dolce" a2-\tweak avoid-slur #'inside \alt #1 ^\prall } >>
signature.asc
Description: This is a digitally signed message part.