Jump to content

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

From LilyPond wiki
Import snippet from LSR
 
m New category
 
(2 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 17: Line 17:
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 23:34, 21 November 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
}