On Tue 07 Nov 2017 at 18:02:09 (+0100), Malte Meyn wrote:
> 
> 
> Am 07.11.2017 um 16:45 schrieb David Wright:
> >Thanks for the replies. I did try specifying a chord, but the
> >"pitch" parameter won't take it.
> 
> That’s because I didn’t know that you wanted chords … Of course it’s
> possible to specify a chord, see the following code. There’s only
> one reason I first only allowed pitches: You then wouldn’t have to
> input the duration.
> 
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> \version "2.19.80"
> 
> enharmonicGuide =
> #(define-music-function (music guide) (ly:music? ly:music?)
>    #{
>      \afterGrace #music {
>        \once \omit Stem
>        \override ParenthesesItem.font-size = -1
>        \override ParenthesesItem.padding = 0.1
>        \parenthesize
>        #guide
>      }
>    #})
> 
> afterGraceFraction = 15/16
> 
> \relative {
>   <d'' fis>2 \enharmonicGuide <dis fisis> <es g>4
>   <c es>2 <a c>
> }
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%

That works well, thanks. The only difference from my published
example is that each note is individually parenthesised. But
that's perfectly fine for my sort of use: performance copies,
not publication.

Cheers,
David.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to