Jump to content

Rotating a text object: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
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.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=284
%% http://lsr.di.unimi.it/LSR/Item?id=284


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 } }
}