Jump to content

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

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
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

Revision as of 18:54, 16 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
}