lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chords with "optional" notes


From: Simon Albrecht
Subject: Re: Chords with "optional" notes
Date: Tue, 10 Nov 2015 21:57:10 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 10.11.2015 20:31, Alberto Simões wrote:
Hello

There are musics where chords have a smaller note, that is optional.

I found some logs from this mailing list in 2007, suggesting things like:

           \tweak #'font-size #-4 g

Is there any easier way? (as in, less verbose).

The cheapest way would be (using a syntax introduced very recently)
%%%%%%
sm = \tweak #'font-size #-4 \etc
{ <c e \sm g> }
%%%%%%

To comply with Lily versions older than ca. 2.19.25, use
%%%%%%%
sm = #(define-music-function (parser location m) (ly:music?)
        #{ \tweak #'font-size #-4 $m #})
%%%%%%%
instead.

HTH, Simon


In fact, I have a bunch of octave chords, where the upper note is smaller. If someone knowing a little of scheme would help me writing a macro/function for that, I would be much appreciated.

Best,
Alberto

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]