Jump to content

Rotating a text object: Difference between revisions

From LilyPond wiki
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
Tags: Mobile edit Mobile web edit
m New category
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Snippet]]

Latest revision as of 23:21, 21 November 2025

LilyPond gives you the ability to rotate any object you want, particularly markups as showed here. Alternatively, you can use the \column function to display your text vertically without rotating the letters.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=284

\relative c' {
  \textLengthOn
  c4^\markup { \rotate #45.0 hello }
  c4^\markup { \rotate #90.0 hello }
  r4
  c4^\markup { \column { h e l l o } }
}