Re: \tweak Accidental stencil within chord

2019-05-01 Thread David Kastrup
dtsmarin writes: > I thought my code didn't work but it looks like it does. Sorry for the > unnecessary replies. > Use case: > Chromatic enharmonic tied notes where normally Lilypond wouldn't work > correctly. (Ties don't show up if you don't use this hack). They don't? \version "2.19.16" {

Re: \tweak Accidental stencil within chord

2019-05-01 Thread dtsmarin
I thought my code didn't work but it looks like it does. Sorry for the unnecessary replies. Use case: Chromatic enharmonic tied notes where normally Lilypond wouldn't work correctly. (Ties don't show up if you don't use this hack). The problem is that my half-solution ruins the spacing. #(define

Re: \tweak Accidental stencil within chord

2019-05-01 Thread Aaron Hill
On 2019-05-01 11:17 am, dtsmarin wrote: This was an example to show what I'm after. I need to *change* the stencil (e.g. flat to be sharp ) not the colour etc. I know how to change stencil for a single accidental with \override but \tweak Accidental.stencil doesn't work. Hmm... \tweaking a

Re: \tweak Accidental stencil within chord

2019-05-01 Thread David Kastrup
David Kastrup writes: > dtsmarin writes: > >> Oops! Wrong minimal example! >> >> >> #(define enh-acc >> (lambda (grob) >> (let* ((stencil (ly:accidental-interface::print grob)) >>(new-stil >> (grob-interpret-markup grob >>(markup >>

Re: \tweak Accidental stencil within chord

2019-05-01 Thread David Kastrup
dtsmarin writes: > Oops! Wrong minimal example! > > > #(define enh-acc > (lambda (grob) > (let* ((stencil (ly:accidental-interface::print grob)) >(new-stil > (grob-interpret-markup grob >(markup > #:hspace 1 >

Re: \tweak Accidental stencil within chord

2019-05-01 Thread dtsmarin
Oops! Wrong minimal example! #(define enh-acc (lambda (grob) (let* ((stencil (ly:accidental-interface::print grob)) (new-stil (grob-interpret-markup grob (markup #:hspace 1 #:musicglyph "accidentals.flat"

Re: \tweak Accidental stencil within chord

2019-05-01 Thread David Kastrup
dtsmarin writes: > This was an example to show what I'm after. > I need to *change* the stencil (e.g. flat to be sharp ) not the colour etc. > I know how to change stencil for a single accidental with \override but > \tweak Accidental.stencil doesn't work. Minimal example exhibiting the

Re: \tweak Accidental stencil within chord

2019-05-01 Thread dtsmarin
This was an example to show what I'm after. I need to *change* the stencil (e.g. flat to be sharp ) not the colour etc. I know how to change stencil for a single accidental with \override but \tweak Accidental.stencil doesn't work. The closest I've got is this: #(define rhomb-acc (lambda

Re: \tweak Accidental stencil within chord

2019-05-01 Thread David Kastrup
dtsmarin writes: > Is it possible to tweak the stencil for an accidental within a chord? > > Something similar in functionality with: > \tweak Stem.color #red > \tweak Beam.color #green c8 e > 4 Uh, what is wrong with exactly that? -- David Kastrup

\tweak Accidental stencil within chord

2019-05-01 Thread dtsmarin
Is it possible to tweak the stencil for an accidental within a chord? Something similar in functionality with: \tweak Stem.color #red \tweak Beam.color #green c8 e 4 -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___