Thomas Morley <[email protected]> writes:

> 2014-05-31 10:40 GMT+02:00 Damian leGassick <[email protected]>:
>> Hi all
>>
>> could someone show me how I could write something like: \clef \currentclef
>>
>> many thanks
>>
>> Damian
>>
>> _______________________________________________
>> lilypond-user mailing list
>> [email protected]
>> 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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to