David Kastrup wrote:
> James <pkx1...@gmail.com> writes:
> 
> > On 12/04/14 14:22, Felix Janda wrote:
> >> Hi,
> >>
> >> say I have a violin part with bowing instructions in a variable. Now I want
> >> to use the same variable in the full orchestral score but the bowing marks
> >> should be suppressed.
> >>
> >> \upbow is treated by lilypond as an articulation, but the other
> >> articulations should be unaffected by the suppressing of \upbow.
> >>
> >> upbow={}
> >>
> >> doesn't work because it breaks things like
> >>
> >> a\upbow ~ a
> >>
> >> Playing a bit with the definition of \upbow gave me a segfault.
> >> Minimal example:
> >>
> >>
> >> \version "2.18.0"
> >>
> >> upbow = #(make-music 'ArticulationEvent
> >>                      'articulation-type "upbow" 'types #f)
> >> downbow = \upbow
> >>
> >>
> >> Anyway, how do I make a command which has no effect at all?
> 
> No effect at all in general is not feasible I think, but in this case
> you already know that it is used in post event position.  In 2.18, you
> can probably do
> 
> upbow = #(make-music 'PostEvents)
> 
> I'm not entirely sure that this will work forever as it is sort of a
> hack, but it's probably going to stick around for a while.
> 
> -- 
> David Kastrup

Thanks. That's the same thing I ended up using. (I have the faint
memory of writing a reply with this solution, but maybe I only
replied to myself...)

Felix

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to