Hello Evgeny,
sorry I forgot to cc the list in my first reply, actually
it’s always useful to do so.
Well, I experimented some more, and I can explain why it’s
so complicated: the overrides need to come before the first
note and the slur needs to be started after the first note
since this is a post-event (meaning that it comes after the
note to which it belongs).
But finding a solution is somewhat over my head. I made
another try at creating a music function:
sn
= #(define-music-function (parser location mus muss)
(ly:music? ly:music?)
#{ \newSpacingSection
\override Score.SpacingSpanner.spacing-increment = #0
$mus
#(make-span-event
'SlurEvent START)
$muss
#(make-span-event
'SlurEvent STOP)
\newSpacingSection
\revert Score.SpacingSpanner.spacing-increment
\once \override
Score.BarLine.transparent = ##t
\bar "" \noBreak \bar
"" \noBreak
#}
)
\relative {
c' d e f
\sn c { d e f }
}
But Lily won’t accept the post-events in the music
function like that.
So I pass the question on to the music-function-and-scheme
cracks on the list ;-)
Best regards, Simon
Am 05.05.2014 22:57, schrieb
shtangencirkul:
Hello, Simon, thank you for you answer.
But this redefining haven't Slur. I need function
with no_space only under Slur, but *with* slur.
I try use #(make-span-event 'SlurEvent START)
in your variant,
but this line get error: unexpected post-event
thank you,
Evgeny