Re: prall with accidental

2013-01-21 Thread David Kastrup
Jérôme Plût writes: > Decimo tertio Kalendas Februarias MMXIII scripsit Werner LEMBERG : >> Yeah, this looks like a good syntax suggestion. Is a Scheme solution >> possible, or does this need a C++ extension? > > It seems that this requires a C++ extension. > Namely, \key only generates a KeyCha

Re: prall with accidental

2013-01-21 Thread Jérôme Plût
Decimo tertio Kalendas Februarias MMXIII scripsit Werner LEMBERG : > Yeah, this looks like a good syntax suggestion. Is a Scheme solution > possible, or does this need a C++ extension? It seems that this requires a C++ extension. Namely, \key only generates a KeyChangeEvent, so Scheme macros cann

Re: prall with accidental

2013-01-20 Thread Werner LEMBERG
> How about something like > > c-\pitched cis \prall > > which modifies the stencil of \prall when it finds that cis does not > fit the current key signature? It would slap a 'pitch field on the > prall event (so that \transpose has something to mangle) and check > its state when typesetting.

Re: prall with accidental

2013-01-20 Thread Werner LEMBERG
> There was a thread in the german forum which might be of interest: > http://www.lilypondforum.de/index.php?topic=721.msg5798#msg5798 > > To get the atachments you need an account there, though. Sehr nett! Please add a link (or the code) to the issue. Werner

Re: prall with accidental

2013-01-20 Thread David Kastrup
Thomas Morley writes: > 2013/1/19 Werner LEMBERG : >> >>> Of course, you can easily write the tweak version instead: >>> >>> prallSharp = >>> -\tweak Script.text \markup { >>> \override #'(baseline-skip . 1.2) \center-column { >>> \fontsize #-4 \sharp >>> \musicglyph #"scripts.prall" >>

Re: prall with accidental

2013-01-20 Thread Thomas Morley
2013/1/19 Werner LEMBERG : > >> Of course, you can easily write the tweak version instead: >> >> prallSharp = >> -\tweak Script.text \markup { >> \override #'(baseline-skip . 1.2) \center-column { >> \fontsize #-4 \sharp >> \musicglyph #"scripts.prall" >> } } >> -\tweak Script.stencil #

Re: prall with accidental

2013-01-19 Thread Jay Anderson
On Sat, Jan 19, 2013 at 8:21 AM, Werner LEMBERG wrote: > I plead for adding this and related macros to LilyPond. I have a bunch of turns defined like this: turnXS = #(make-music 'TextScriptEvent 'tweaks '((avoid-slur . inside) (outside-staff-priority . #f)) 'direction 1 'text #{ \mar

Re: prall with accidental

2013-01-19 Thread Werner LEMBERG
> Of course, you can easily write the tweak version instead: > > prallSharp = > -\tweak Script.text \markup { > \override #'(baseline-skip . 1.2) \center-column { > \fontsize #-4 \sharp > \musicglyph #"scripts.prall" > } } > -\tweak Script.stencil #ly:text-interface::print \prall I p

Re: prall with accidental

2013-01-18 Thread David Kastrup
Kieren MacMillan writes: > Hi all, > >> Here is my solution. > > In general, I prefer to avoid using a markup, and override the stencil of the > grob instead, i.e., > > prallSharp = { > \once \override Script #'stencil = #ly:text-interface::print > \once \override Script #'text = \markup { >

Re: prall with accidental

2013-01-18 Thread Kieren MacMillan
Hi all, > Here is my solution. In general, I prefer to avoid using a markup, and override the stencil of the grob instead, i.e., prallSharp = { \once \override Script #'stencil = #ly:text-interface::print \once \override Script #'text = \markup { \override #'(baseline-skip . 1.2) \cente

Re: prall with accidental

2013-01-18 Thread Werner LEMBERG
>>> The naïve approach >>> >>> prallSharp = -\tweak Script.script-priority #-100 >>>^\prall >>>-\tweak X-offset #0.4 >>>^\markup { \fontsize #-5 \sharp } >>> >>> doesn't work, and I wonder whether there exists a solution without

Re: prall with accidental

2013-01-18 Thread Werner LEMBERG
>> The naïve approach >> >> prallSharp = -\tweak Script.script-priority #-100 >>^\prall >>-\tweak X-offset #0.4 >>^\markup { \fontsize #-5 \sharp } >> >> doesn't work, and I wonder whether there exists a solution without >> a lo

Re: prall with accidental

2013-01-18 Thread David Kastrup
Werner LEMBERG writes: > Folks, > > > I want this > > c4-\tweak Script.script-priority #-100 > ^\prall > -\tweak X-offset #0.4 > ^\markup { \fontsize #-5 \sharp } > > converted to a macro so that I can say > > c4\prallSharp > > (actually, I think that this com

prall with accidental

2013-01-18 Thread Werner LEMBERG
Folks, I want this c4-\tweak Script.script-priority #-100 ^\prall -\tweak X-offset #0.4 ^\markup { \fontsize #-5 \sharp } converted to a macro so that I can say c4\prallSharp (actually, I think that this command and its siblings \prallFlat, \pralldownSha