On Thu, Feb 06, 2014 at 09:18:11PM -0800, Matthew wrote: > On 02/05/2014 09:36 PM, Paul Scott wrote: > > On Wed, Feb 05, 2014 at 09:17:53PM -0800, Matthew wrote: > >> Not wanting to type a long \override command in every staff I want a > >> caesura, I > >> tried defining a command to shorten things for me :) . This is what I've > >> tried > >> so far: > >> > >> caesura = { > >> \override BreathingSign.text = \markup { \musicglyph > >> #"scripts.caesura.straight" } > >> \breathe > >> \override BreathingSign.text = \markup { \musicglyph #"scripts.rcomma" } > >> } > >> > >> As you might guess, it doesn't work. Specifically, the breathe mark that > >> appears > >> is an rcomma, which also happens when I inline this. I guess this is > >> because I > >> need another note to appear before the next override. It works if I remove > >> the > >> rcomma override, though I'd like to "un-override" BreathingSign.text > >> within the > >> command. > >> > > > > Here's what I use: > > > > caesuraOn = \override BreathingSign #'text = > > #(make-musicglyph-markup "scripts.caesura.straight") > > > > caesuraOff = \revert BreathingSign #'text > > caesura = { \once \caesuraOn \revert BreathingSign #'Y-offset \breathe } > > breath = { \caesuraOff \override BreathingSign #'Y-offset = #5 \breathe } > > > > I then use \caesura or \breath where I need them. > > > > HTH > > > > Paul Scott > > Works great, thanks Paul. Funny enough though, I had a similar idea pop into > my head > at one point, except \breath was called \rcomma, and there wouldn't've been > \caesura* > commands.
Glad it helped! When I started with Lily there was no caesura at all. Paul _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user