Jump to content

Scordatura: 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:
Special tunings (scordatura) for string instruments can be printed at the beginning of the staff, by tweaking the instrumentName property.
Special tunings (scordatura) for string instruments can be printed at the beginning of the staff, by tweaking the instrumentName property.


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



Revision as of 18:55, 16 November 2025

Special tunings (scordatura) for string instruments can be printed at the beginning of the staff, by tweaking the instrumentName property.

\version "2.24"

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

scordatura =  \markup {
  \raise #5.5 
  \score {
    \new Staff \with {
      \remove "Time_signature_engraver"
      fontSize = #-3
      \override StaffSymbol.staff-space = #(magstep -3)
    } {
      \set Staff.instrumentName= \markup \huge "Viol "
      \clef bass \cadenzaOn
      \override Stem.transparent = ##t
      <d' a f c f, c,>4 s \bar "||"
    }
    \layout {
      ragged-right = ##t
      indent = 1\cm
    }
  }
  \hspace #.5
}

notes = \relative c' {
  \clef alto
  \time 4/4
  c4 bes a g <f a>1 \bar "|."
}


\score {
  \new Staff <<
  \set Staff.instrumentName = \scordatura
  \new Voice  \notes
  >>
  \layout {
    ragged-right = ##t
    indent = 4\cm
  }
}