mirror of
https://github.com/kastdeur/lilydrum.git
synced 2024-12-22 09:13:33 +01:00
Tutti autotagging with #'tutti
Close !14 Tutti is automatically tagged with #'tutti, so it can be removed using ```removeWithTag #'tutti```
This commit is contained in:
parent
9e5f02b828
commit
2f474e8b9b
1 changed files with 13 additions and 5 deletions
|
@ -101,9 +101,17 @@ ofr = #(define-event-function (parser location) () #{ \stopGroup #})
|
|||
% TODO: check whether on one note
|
||||
tutti = #(define-music-function (music) (ly:music?)
|
||||
#{
|
||||
\once \override HorizontalBracket.connect-to-neighbor = #'(#t #t)
|
||||
<>\startGroup
|
||||
#(allbutlastnote music)
|
||||
<>\stopGroup
|
||||
#(lastnote music)
|
||||
<<
|
||||
\tag #'tutti {
|
||||
\override HorizontalBracket.connect-to-neighbor = #'(#t #t)
|
||||
<>\startGroup
|
||||
#(skip-of-length (allbutlastnote music))
|
||||
<>\stopGroup
|
||||
#(skip-of-length (lastnote music))
|
||||
\revert HorizontalBracket.connect-to-neighbor
|
||||
}
|
||||
{
|
||||
#music
|
||||
}
|
||||
>>
|
||||
#})
|
||||
|
|
Loading…
Reference in a new issue