From cf4323bf84b6880082f8e8bafcac87a282a0da7e Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sat, 3 Oct 2015 07:58:57 +0200 Subject: [PATCH] Issue 4626/1: Create \= command for setting spanner-id --- ly/spanners-init.ly | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ly/spanners-init.ly b/ly/spanners-init.ly index 50cf12dbb2..756a55579e 100644 --- a/ly/spanners-init.ly +++ b/ly/spanners-init.ly @@ -1,4 +1,19 @@ -\version "2.16.0" +\version "2.19.29" + +"\\=" = +#(define-event-function (id event) (number-or-string? ly:event?) + (_i "This sets the @code{spanner-id} property of the following +@var{event} to the given @var{id} (numbers will be converted to a +string). This can be used to tell LilyPond how to connect overlapping +or parallel slurs or phrasing slurs within a single @code{Voice}. +@lilypond[quote,verbatim] +\\fixed c' { c\\=1( d\\=2( e\\=1) f\\=2) } +@end lilypond\n") + (set! (ly:music-property event 'spanner-id) + (if (number? id) + (number->string id) + id)) + event) startGroup = #(make-span-event 'NoteGroupingEvent START) stopGroup = #(make-span-event 'NoteGroupingEvent STOP) -- 2.39.2