lilypond-user
[Top][All Lists]
Advanced

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

Re: get and print current clef


From: David Kastrup
Subject: Re: get and print current clef
Date: Sat, 31 May 2014 13:25:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2014-05-31 10:40 GMT+02:00 Damian leGassick <address@hidden>:
>> Hi all
>>
>> could someone show me how I could write something like: \clef \currentclef
>>
>> many thanks
>>
>> Damian
>>
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> \version "2.19.6"
>
> {
>   c''1
>   \once \override Staff.Clef #'full-size-change = ##t
>   \set Staff.forceClef = ##t
>   d''
>   e''
>   \once \override Staff.Clef #'full-size-change = ##t
>   \clef alto
>   f'
>   \once \override Staff.Clef #'full-size-change = ##t
>   \set Staff.forceClef = ##t
>   g'
> }

I am leaning towards redefining

clef =
#(define-music-function (parser location type) ((string?))
   (_i "Set the current clef to @var{type} if specified,
or force a repetition of the current clef when @code{\\default}
is given instead.")
   (if type
       (make-clef-set type)
       #{ \set Staff.forceClef = ##t #}))

which then would allow using \clef \default.  I think it would be more
consistent if this would _not_ imply a full-size-change as well.

-- 
David Kastrup



reply via email to

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