Difference between revisions of "Score testing"

From Jon's Wiki
(Created page with "Range of the contrabass trombone: <score lang="lilypond"> { \new Staff \with { \remove "Time_signature_engraver" } \clef bass \key c \major \cadenzaOn \ottava #-...")
 
Line 1: Line 1:
Range of the contrabass trombone:
+
[[File:Score_PNG_output_in_dark_theme.png|thumb|Unreadable Score extension output in dark mode]]
 +
Hopefully I can get the Score extension working to [https://phabricator.wikimedia.org/T49578 produce SVG output], instead of the transparent PNG image that needs a white background styling for dark mode otherwise it's unreadable.
 +
 
 +
== Examples ==
 +
Range of the contrabass trombone, as used on Wikipedia:
 
<score lang="lilypond">
 
<score lang="lilypond">
 
   {
 
   {
Line 10: Line 14:
 
</score>
 
</score>
  
Hopefully I can get the Score extension working to [https://phabricator.wikimedia.org/T49578 produce SVG output], instead of the transparent PNG image that needs a white background styling for dark mode otherwise it's unreadable.
+
The Spear motif from ''Das Rheingold'':
[[File:Score_PNG_output_in_dark_theme.png|thumb|Unreadable Score extension output in dark mode]]
+
 
 +
<score lang="lilypond">
 +
  \layout { ragged-right = ##t \context { \Score \omit BarNumber } }
 +
  \relative g {
 +
    \override DynamicTextSpanner.style = #'none
 +
    \override Hairpin.minimum-length = #5
 +
    \clef bass \key c \major
 +
    g2~ \ff g8 f8 e8. d16
 +
    c4 b a g  f e d c  \break
 +
    b a g f  e1~ \dim\!  << e1~ { s2 s4 s4 \> } >>  e4 \! \p r4 r2
 +
  }</score>

Revision as of 22:28, 19 September 2022

Unreadable Score extension output in dark mode

Hopefully I can get the Score extension working to produce SVG output, instead of the transparent PNG image that needs a white background styling for dark mode otherwise it's unreadable.

Examples

Range of the contrabass trombone, as used on Wikipedia:


  {
    \new Staff \with { \remove "Time_signature_engraver" }
    \clef bass \key c \major \cadenzaOn
    \ottava #-1 \tweak font-size #-2 fis,,,1 \finger \markup \text "poss."
    \ottava #0  c,,1 \glissando d'1
    \tweak font-size #-2 f'1
  }

The Spear motif from Das Rheingold:


  \layout { ragged-right = ##t \context { \Score \omit BarNumber } }
  \relative g {
    \override DynamicTextSpanner.style = #'none
    \override Hairpin.minimum-length = #5
    \clef bass \key c \major
    g2~ \ff g8 f8 e8. d16
    c4 b a g  f e d c  \break
    b a g f  e1~ \dim\!  << e1~ { s2 s4 s4 \> } >>  e4 \! \p r4 r2
  }