Initial clef change: Difference between revisions

Import snippet from LSR
 
Demonstrate basic usage
Line 181: Line 181:
     \clef bass
     \clef bass
     c'1
     c'1
  }
}
% Basic usage:
\score {
  <<
    % Just the treble clef
    \new Staff {
      \key bes \major
      c''1
    }
     
    % Just the bass clef
    \new Staff \with { \clef bass  } {
      \key bes \major
      c1
    }
   
    % Initial treble clef, then bass clef
    \new Staff {
      \key bes \major
      \clef bass
      c1
    }
   
    % Initial bass clef, then treble clef
    \new Staff \with { \clef bass  } {
      \key bes \major
      \clef treble
      c''1
    }
  >>
  \layout {
    \context {
      \Staff
      \consists #initial-clef-change-engraver
    }
   }
   }
}
}
</lilypond>
</lilypond>