mirror of
https://github.com/kastdeur/lilydrum.git
synced 2024-12-22 09:13:33 +01:00
Closes #14
Removable tutti's can be pulled off using the tag in the \dr and \fr variables
This commit is contained in:
parent
44c4d3ae99
commit
ee97c53178
1 changed files with 13 additions and 20 deletions
|
@ -83,10 +83,10 @@ dynLine = #(define-music-function
|
|||
%fr = { <>\="unison"\stopTextSpan }
|
||||
%odr = { \unisonbracket <>\="unison"\startTextSpan }
|
||||
%ofr = { <>\="unison"\stopTextSpan }
|
||||
dr = #(define-event-function (parser location) () #{ \startGroup #})
|
||||
fr = #(define-event-function (parser location) () #{ \stopGroup #})
|
||||
odr = #(define-event-function (parser location) () #{ \startGroup #})
|
||||
ofr = #(define-event-function (parser location) () #{ \stopGroup #})
|
||||
dr = #(define-event-function (parser location) () #{ -\tag #'tutti \startGroup #})
|
||||
fr = #(define-event-function (parser location) () #{ -\tag #'tutti \stopGroup #})
|
||||
odr = #(define-event-function (parser location) () #{ -\tag #'tutti \startGroup #})
|
||||
ofr = #(define-event-function (parser location) () #{ -\tag #'tutti \stopGroup #})
|
||||
|
||||
#(define (allbutlastnote mus)
|
||||
(let ((elts (ly:music-property mus 'elements)))
|
||||
|
@ -101,17 +101,10 @@ ofr = #(define-event-function (parser location) () #{ \stopGroup #})
|
|||
% TODO: check whether on one note
|
||||
tutti = #(define-music-function (music) (ly:music?)
|
||||
#{
|
||||
<<
|
||||
\tag #'tutti {
|
||||
\override HorizontalBracket.connect-to-neighbor = #'(#t #t)
|
||||
<>\dr
|
||||
#(skip-of-length (allbutlastnote music))
|
||||
<>\fr
|
||||
#(skip-of-length (lastnote music))
|
||||
\revert HorizontalBracket.connect-to-neighbor
|
||||
}
|
||||
{
|
||||
$music
|
||||
}
|
||||
>>
|
||||
\override HorizontalBracket.connect-to-neighbor = #'(#t #t)
|
||||
<>\dr
|
||||
#(allbutlastnote music)
|
||||
<>\fr
|
||||
#(lastnote music)
|
||||
\revert HorizontalBracket.connect-to-neighbor
|
||||
#})
|
||||
|
|
Loading…
Reference in a new issue