Score examples: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Testing == | |||
[[Raw score output]] | |||
=== T289399 inline usage === | |||
[https://phabricator.wikimedia.org/T289399 T289399] allows for inline use, by rendering music in a <code><nowiki><span></nowiki></code> element instead of the usual <code><nowiki><div></nowiki></code>. So for example, this example from the [https://en.wikisource.org/wiki/Page:A_Dictionary_of_Music_and_Musicians_vol_2.djvu/695 cited page] on WikiSource <score inline> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4 \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score> should now form part of the text flow. | |||
Without specifying the <code>inline</code> parameter, Score displays in a div, as usual: <score> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4 \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score> | |||
With sound requested, inline <score sound="1" inline="1"> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4 \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score> does not display audio controls, otherwise: <score sound="1"> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4 \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score> | |||
=== T60688 staff instrument name bug === | |||
Task [https://phabricator.wikimedia.org/T60688 T60688] staff with name "Clarinet" displays as "inet" instead of "Clarinet": | |||
<score> | |||
\new PianoStaff << | |||
\set PianoStaff.instrumentName = #"Clarinet" | |||
\context Staff = "up" { c'1 } | |||
\context Staff = "down" { \clef bass c1 } | |||
>> | |||
</score> | |||
Conclusion: cannot reproduce with Lilypond 2.23.82 and Score from recent master using SVG output (see [[Special:Version]]). | |||
== Example Scores for SVG output == | |||
From [https://en.wikipedia.org/wiki/Cadence Cadence]: | From [https://en.wikipedia.org/wiki/Cadence Cadence]: | ||
<score lang="lilypond"> | <score lang="lilypond"> | ||
\new PianoStaff << | \new PianoStaff << | ||
\new Staff << | \new Staff << | ||
\new Voice \relative c'' { | \new Voice \relative c'' { | ||
\stemUp \clef treble \key e \minor \time 4/4 | \stemUp \clef treble \key e \minor \time 4/4 | ||
| Line 14: | Line 42: | ||
\partial2 e4 e8 dis e fis g e e4 dis b1 | \partial2 e4 e8 dis e fis g e e4 dis b1 | ||
} | } | ||
>> | >> | ||
\new Staff << | \new Staff << | ||
\new Voice \relative c' { | \new Voice \relative c' { | ||
\stemUp \clef bass \key e \minor \time 4/4 | \stemUp \clef bass \key e \minor \time 4/4 | ||
\partial2 g8 a b4 c b cis b8 a! gis1 | \partial2 g8 a b4 c b cis b8 a! gis1 | ||
| Line 37: | Line 65: | ||
\key c \minor | \key c \minor | ||
\clef "treble_(8)" | \clef "treble_(8)" | ||
\time 4/4 | \time 4/4 | ||
c'1 as2 bes2 c2 c2 es2 d2 c1 es1 f2 es2 | c'1 as2 bes2 c2 c2 es2 d2 c1 es1 f2 es2 | ||
d2 c2 c2 bes2 c1 c1 f2 d2 es2 g2 f2 es2 f1 | d2 c2 c2 bes2 c1 c1 f2 d2 es2 g2 f2 es2 f1 | ||
f1 bes,2 c2 d2 es2 f2 d2 c1 c1 bes2 as2 bes2 g2 | f1 bes,2 c2 d2 es2 f2 d2 c1 c1 bes2 as2 bes2 g2 | ||
as2 bes2 g1 f1 as2 bes2 c2 as2 bes2 g2 f1 | as2 bes2 g1 f1 as2 bes2 c2 as2 bes2 g2 f1 | ||
} | } | ||
| Line 50: | Line 78: | ||
} | } | ||
}</score> | }</score> | ||
== Note == | == Note == | ||
* For scores on Wikipedia, see [https://en.wikipedia.org/wiki/Special:PagesWithProp?propname=score Special:PagesWithProp] | * For scores on Wikipedia, see [https://en.wikipedia.org/wiki/Special:PagesWithProp?propname=score Special:PagesWithProp] | ||
Latest revision as of 21:54, 3 December 2026
Testing
T289399 inline usage
T289399 allows for inline use, by rendering music in a <span> element instead of the usual <div>. So for example, this example from the cited page on WikiSource should now form part of the text flow.
Without specifying the inline parameter, Score displays in a div, as usual:
With sound requested, inline does not display audio controls, otherwise:
T60688 staff instrument name bug
Task T60688 staff with name "Clarinet" displays as "inet" instead of "Clarinet":
Conclusion: cannot reproduce with Lilypond 2.23.82 and Score from recent master using SVG output (see Special:Version).
Example Scores for SVG output
From Cadence:
Multi-system input
From String Quartet No. 1 (Górecki)
Note
- For scores on Wikipedia, see Special:PagesWithProp