Torsten Hämmerle <[email protected]> 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
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user