\vel
which enables you to set MIDI velocity value directly on any note event. This is accomplished by overriding dynamicAbsoluteVolumeFunction
.
What's this? Searching the LSR Browse by date Contributing Snippet database | Browsing items 10−19 out of 893 |
To add an extra staff after the start of a piece, you can choose between having brackets or braces when you go over a new line:
=> Use PianoStaff instead of StaffGroup or ChoirStaff in the code.
You may wish to remove the clef and not only the key:
=> See both \overrides in the code.
You may wish to remove also the little part of staff at the beginning of the extra staff:
=> Use #'stencil = ##f instead of #'transparent = ##t for both \overrides.
If you want to keep the little beginning of staff, keep at least one #'transparent = ##t.
The function copyArticulations
here, automates the job by copying the articulations from a pattern into your music.
As the music is rarely always the same, a few extra functions can give you some flexibility.
The code of the image below is the following:
\copyArticulations
{ c( c) c-. c-. } %% the pattern
{ %% the music
c16 d e f g a b c b8 a g f
\notCA e1
\nSkipArti #2
r8 d16 e f g a b c8 g e g
\notCA c,1
}
Here, \notCA
allows you to keep the music untouched and \nSkipArti #2
skips 2 notes (so 2 articulations) in the pattern.
Download the code of this function here : copyArticulations.ly.