Jump to content

Scordatura: 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:
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


Line 48: Line 48:
[[Category:Fretted strings]]
[[Category:Fretted strings]]
[[Category:Specific notation]]
[[Category:Specific notation]]
[[Category:Snippet]]

Latest revision as of 23:20, 21 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
  }
}