Jump to content

Using the \tweak command to tweak individual grobs: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
With the <code>\tweak</code> command, every grob can be tuned directly. Here are some examples of available tweaks.
With the <code>\tweak</code> command, every grob can be tuned directly. Here are some examples of available tweaks.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative c' {
\relative c' {
   \time 2/4
   \time 2/4
Line 14: Line 14:
</lilypond>
</lilypond>


[[Category:Really simple]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Really simple]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 08:19, 28 December 2025

With the \tweak command, every grob can be tuned directly. Here are some examples of available tweaks.

\version "2.24"

\relative c' {
  \time 2/4
  \set fingeringOrientations = #'(right)
  <
    \tweak font-size #3 c
    \tweak color #red d-\tweak font-size #8 -4
    \tweak style #'cross g
    \tweak duration-log #2 a
  >2
}