[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Defining custom noteHead scaling problem
From: |
Jiri Zurek (Prague) |
Subject: |
Defining custom noteHead scaling problem |
Date: |
Thu, 12 Nov 2009 02:38:45 -0800 (PST) |
Cheating from
http://old.nabble.com/defining-custom-note-heads-td17430564.html#a17626150
the older post I was able to define my own special noteHead, combining
three glyphs together, calling it a tripleNote. It works perfectly in the
default score size. However, when I resize the score to smaller one, the
tripleNote is not scaled well - the third noteHead appears too far from the
other noteHeads. I suspect this is because the offset values are hard coded
into the tripleNote definition. Is there a way how to code these values
proportionally to the score size instead?
% Lilypond begin
\version "2.12.1"
tripleNote = { \once \override NoteHead #'stencil =
#ly:text-interface::print
\once \override NoteHead #'text = #(markup #:combine
#:musicglyph "noteheads.s2" #:halign 1 #:musicglyph "noteheads.s2" #:halign
-0.1 #:musicglyph "noteheads.s2") }
{
\clef "G_8"
\override Staff.Stem #'transparent = ##t
\tripleNote g
}
\score {
{
\clef "G_8"
\override Staff.Stem #'transparent = ##t
\tripleNote g
}
\layout {
#(layout-set-staff-size 15)
\context {
\Staff
fontSize = #-4.7
\override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
\override StaffSymbol #'staff-space = #(magstep -8)
\override StaffSymbol #'thickness = #(magstep -4.5)
}
}
}
% Lilypond end
--
View this message in context:
http://old.nabble.com/Defining-custom-noteHead-scaling-problem-tp26315301p26315301.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
- Defining custom noteHead scaling problem,
Jiri Zurek (Prague) <=