lilypond-user
[Top][All Lists]
Advanced

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

Re: Easy Note Heads and colors


From: David Kastrup
Subject: Re: Easy Note Heads and colors
Date: Sat, 28 Jul 2018 13:25:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Torsten Hämmerle <address@hidden> writes:

> rodrigo wrote
>> Since I am not a programmer ,  there is certainly a better way to do that,
>> but at least it works for me. Kept here for reference and eventually
>> helping
>> others.
>
>
> Hi Rodrigo,
>
> There is a much easier way to do it:
> The note names used by the standard engraver (just switching \easyHeadsOn,
> nothing else) are taken from the note-names property of NoteHead.
>
> If you need other note names, all you need to do is to override the
> note-names vector, no need at all for any additional programming:
>
> %%%%%%%%%%%
> \version "2.18.2"
>
> \relative c' {
>   \easyHeadsOn
>   \override NoteHead.note-names = #(vector '"dó" '"ré" '"mi" '"fá" '"sol"
> '"lá" '"si")
>   c4 d e f g a b c
> }
> %%%%%%%%%%%
>
> The only remaining problem is that the long Portuguese names won't fit into
> the noteheads, but this can be corrected by setting the font-size:
>
>   \override NoteHead.font-size = #-11

You could just put that in the vector if you want, like

%%%%%%%%%%%
\version "2.18.2"

\relative c' {
  \easyHeadsOn
  \override NoteHead.note-names =
  #(list->vector #{ \markuplist \fontsize #-3
    {dó ré mi fá sol lá si} #})
  c4 d e f g a b c
}
%%%%%%%%%%%

-- 
David Kastrup



reply via email to

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