On Fri, Mar 3, 2017 at 10:14 AM, David Kastrup <d...@gnu.org> wrote: > Jinsong Zhao <jsz...@yeah.net> writes: > >> On 2017/3/3 17:02, David Kastrup wrote: >>> Jeffery Shivers <jefferyshiv...@gmail.com> writes: >>> >>>> On Thu, Mar 2, 2017 at 9:48 PM, Jinsong Zhao <jsz...@yeah.net> wrote: >>>>> On 2017/3/3 10:35, Jeffery Shivers wrote: >>>>>> >>>>>> On Thu, Mar 2, 2017 at 9:24 PM, Jinsong Zhao <jsz...@yeah.net> wrote: >>>>>>> >>>>>>> Hi there, >>>>>>> >>>>>>> In a violin score, I saw something similar to the following code, but >>>>>>> the >>>>>>> second voice b4 was displayed as a triangle. >>>>>>> >>>>>> >>>>>> Do you have a screenshot or small image you could attach which shows >>>>>> the notehead you want? Was it definitely a triangle, by the way? Not a >>>>>> diamond? >>>>> >>>>> >>>>> I don't know that I could post image into a mailing list. Please find the >>>>> attached small screenshot. >>>>> >>>> >>>> Hm. I studied violin for twelve years and have no idea what that >>>> means. It could mean some harmonic technique; maybe it is that >>>> composer's (confusing) shorthand to playing a fifth artificial with b >>>> pressed, f# touched, sounding an octave up from that. But it makes no >>>> sense to write it that way, so must mean something else.. >>> >>> I guess that this is a beginner's book and this indicates fingering the >>> B3 in advance simultaneously with the F4♯ by pressing down on both with >>> your middle finger. >>> >> >> Yes, it's a score from a beginner's book. Thanks you very much for the >> explanation. Now, the question. How to typeset it in lilypond to get >> the same output? > > This particular instance can be fudged using > > > > > This uses a visual whole note (to have the Stem omitted) with a duration > scaled to zero and in palmMute NoteHead style. Ugly (and the Midi will > likely be unusable), but it should get the ledger line printed and the > position indicated correctly. >
Alternatively, something like: == snip specialNote = { \once \omit Stem \once \omit Flag \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = \markup \concat { % adjust these as needed \with-dimensions #'(0 . 0) #'(0 . 0) \translate-scaled #'(-0.5 . 0) \hspace #-.25 % replace `noteheads.s1sol` with whatever you need[1] \musicglyph #"noteheads.s1sol" } } mus = { << { dis'16[ fis' b ais] } \\ { s16 \specialNote b16 s16 s16 } >> } \score { \mus } == snip [1] find a full list of available glyphs in "ps/encodingdefs.ps". Idk if there is a test that engraves all of those or not, so you may be on your own in terms of actually finding what you need in there. > A smoother replacement would likely be a pitched rest (also gets the > ledger line and position as needed) with the stencil replaced by the > triangle. That would be fine for Midi and also a better semantic match. > But more work. Takers? > > -- > David Kastrup > -- Jeffery Shivers jefferyshivers.com soundcloud.com/jefferyshivers _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user