kastdeur / lilydrum

Set up a lilydrum file in the same way as there is a bagpipe.ly. Main focus is on pipeband (snare) drumming.
https://deboone.nl/lilydrum
MIT License
9 stars 3 forks source link

turn off tutti when using an expression with removeWithTag #14

Closed kastdeur closed 6 years ago

kastdeur commented 6 years ago

When repeats are unfolded tutti's show up in the second time through. Most of the time the second time through all bars are played in unison. Having a tag in \tutti, we can reuse an expression while turning off a unison.

It could work by using simultaneous music. Right now I can do the following to attain something like this:

<<
    \tag #'tutti { \tutti { s4 s4 s4 } }
    { d8 g d8 g d4 }
>>

then use \removeWithTag #'tutti to remove the unison bracket.

For this to work, a function is needed to get enough spacer notes. Either by calculating the total length or replacing all notes with spacer notes

kastdeur commented 6 years ago

Found #(skip-of-length MyCadenza) in the docs at Special rhythmic concerns

kastdeur commented 6 years ago

See commit 2f474e8b9b996a85edff8a8518fe255124a4ecf6

kastdeur commented 6 years ago

When the last expression in the tutti tag is a variable, the tutti bracket is not printed over this expression. See referencing commit for an example.