[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined
From: |
Klaus Blum |
Subject: |
Re: undefined |
Date: |
Fri, 17 Apr 2015 06:32:41 -0700 (MST) |
Hi Calixte,
someone has made a cool snippet for that:
http://lsr.di.unimi.it/LSR/Item?id=968
He's simply re-defining the [ ] commands.
A little modification to fill your needs:
% -----------------------------------------------------
"[" =
- #(make-music
'SlurEvent
'span-direction
-1)
% Not needed for Calixte:
% - #(make-music
% 'BeamEvent
% 'span-direction
% -1)
"]" =
- #(make-music
'SlurEvent
'span-direction
1)
% Not needed for Calixte:
% - #(make-music
% 'BeamEvent
% 'span-direction
% 1)
\score {
\relative {
% \autoBeamOff
r8 c' a' g16[ f] g8 c, f16[ e f] d
e4( d\prall) c\fermata \bar "|." }
\addlyrics {
This on -- ly serves as an ex -- am -- ple. }
}
% This is just to revert the settings made above:
"[" =
- \tweak stencil ##f
- #(make-music
'SlurEvent
'span-direction
-1)
- #(make-music
'BeamEvent
'span-direction
-1)
"]" =
- #(make-music
'SlurEvent
'span-direction
1)
- #(make-music
'BeamEvent
'span-direction
1)
% Apart from the \autoBeamOff this is the same score as above:
\score {
\relative {
\autoBeamOff
r8 c' a' g16[ f] g8 c, f16[ e f] d
e4( d\prall) c\fermata \bar "|." }
\addlyrics {
This on -- ly serves as an ex -- am -- ple. }
}
% -----------------------------------------------------
Cheers,
Klaus
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/undefined-tp174666p174677.html
Sent from the User mailing list archive at Nabble.com.