Jump to content

Changing ottava text: 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 3: Line 3:
Short text is especially useful when a brief ottava is used.
Short text is especially useful when a brief ottava is used.


<lilypond version="2.24.0">
<lilypond version="2.24">
{
{
   c'2
   c'2

Revision as of 18:47, 16 November 2025

Internally, \ottava sets the properties ottavation (for example, to 8va or 8vb) and middleCPosition. To override the text of the bracket, set ottavation after invoking \ottava.

Short text is especially useful when a brief ottava is used.

\version "2.24"

{
  c'2
  \ottava 1
  \set Staff.ottavation = "8"
  c''2
  \ottava 0
  c'1
  \ottava 1
  \set Staff.ottavation = "Text"
  c''1
}