|
From: | PMA |
Subject: | Re: Display "r2" as r1? -- SOLVED! |
Date: | Sat, 17 Dec 2011 15:36:27 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Iceape/2.0.11 |
James wrote:
Hello, On 29 November 2011 15:59, PMA<address@hidden> wrote:Francisco Vila wrote:2011/11/29 PMA<address@hidden>:Xavier Scheuer wrote: ...REST = { s2 \once \override NoteHead #'stencil = #ly:text-interface::print \once \override NoteHead #'text = \markup { \musicglyph #"rests.0" } \once \override Stem #'transparent = ##t e'2 }I still do not understand why you need to use such dirty hack! If there is an issue with multibar rest that produces segmentation fault, it is better to try to find what the issue is exactly and correct it than use this tricky thing, at least it is my point of view. Cheers, XavierSegmentation fault aside: If there is in fact a way to change a rest's glyph directly without misrepresenting it to LilyPond as a notehead instead and then changing *that*, I'll acknowledge the "dirty"-ness (cluelessness, actually) of my hack.RESTR = { \once \override Rest #'stencil = #ly:text-interface::print \once \override Rest #'text = \markup { \musicglyph #"rests.2" } r2 }Aha! I sit corrected. Thanks, Francisco. FYI, "#'text" after "\override Rest" is what I could not find in either the Notation Reference or the Snippets List.I can create a snippet but we don't tend to 'document' \overrides and \tweaks in the Notation Reference directly and so add these as snippets if they are likely to be not only useful but 'more than likely' to be needed in 'a lot' of cases (at least that is my own take on when we add snippets in the NR directly) else we could easily fill the NR with snippet after snippet. Otherwise you yourself can perhaps go to the LilyPond Snippet Repository and create a log in and add your snippet there too. http://lsr.dsi.unimi.it/ Le me know.
I think I should not be the one to enter this, tho, as it is not mine but rather Francisco's (correcting my own scatterbrained hack). Yes, a corresponding snippet might help -- or even just a comment with an existing snippet that shows "#'stencil" & "#'text" overrides for NoteHead, that this sequence can be applied to Rest as well.
[Prev in Thread] | Current Thread | [Next in Thread] |