Jump to content

Template:Tscore/testcases

From Wikisource

Empty

[edit]
{{Tscore}}
{{Tscore}}

{{Tscore}}

Error: incorrect use of Tscore template: no score code

{{Tscore/sandbox}}

Error: incorrect use of Tscore template: no score code

Setting width

[edit]
{{Tscore}}
{{Tscore
|score = \new Staff { \time 4/4 \relative c { c4 d e f {{!}} g a b c {{!}} d e f g \bar "{{!}}." } }
|width = 60
}}

{{Tscore}}


\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #60
}
\new Staff { \time 4/4 \relative c { c4 d e f | g a b c | d e f g \bar "|." } } }

{{Tscore/sandbox}}


\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #60
}
\new Staff { \time 4/4 \relative c { c4 d e f | g a b c | d e f g \bar "|." } } }

No first line indentation

[edit]
{{Tscore}}
{{Tscore
|score = \new Staff { \time 4/4 \relative c { c4 d e f {{!}} g a b c {{!}} d e f g \bar "{{!}}." } }
|layout = indent = 0\cm
}}

{{Tscore}}


\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c { c4 d e f | g a b c | d e f g \bar "|." } } }

{{Tscore/sandbox}}


\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c { c4 d e f | g a b c | d e f g \bar "|." } } }

Using a variable

[edit]
{{Tscore}}
{{Tscore
|sThisIsMyVariable = c'4 d e f {{!}} g a b c {{!}} d e f g \bar "{{!}}."
|score = \new Staff { \time 4/4 \relative c \sThisIsMyVariable }
|layout = indent = 0\cm
}}

{{Tscore}}


sThisIsMyVariable = { c'4 d e f | g a b c | d e f g \bar "|." }

\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c \sThisIsMyVariable } }

{{Tscore/sandbox}}


sThisIsMyVariable = { c'4 d e f | g a b c | d e f g \bar "|." }

\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c \sThisIsMyVariable } }

More variables

[edit]
{{Tscore}}
{{Tscore
|sBeginning = c'4 d e f {{!}} g a b c {{!}}
|sVolta = d e f g
|sAltOne = a2 b
|sAltTwo = a,2 r
|sEnd = b4 c d r \bar "{{!}}."
|score = \new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } }
|layout = indent = 0\cm
}}

{{Tscore}}


sAltTwo = { a,2 r }

sBeginning = { c'4 d e f | g a b c | }

sEnd = { b4 c d r \bar "|." }

sVolta = { d e f g }

sAltOne = { a2 b }

\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } } }

{{Tscore/sandbox}}


sAltTwo = { a,2 r }

sBeginning = { c'4 d e f | g a b c | }

sEnd = { b4 c d r \bar "|." }

sVolta = { d e f g }

sAltOne = { a2 b }

\paper { #(set-paper-size "a4") }
\header { tagline = ##f }
\version "2.22.0"
\score {
\midi { }
\layout { line-width = #180
indent = 0\cm}
\new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } } }

Merging

[edit]
{{Tscore}}
{{Tscore
|start=SomeMergedMusic
|next=page #2
|sBeginning = c'4 d e f {{!}} g a b c {{!}}
|sVolta =
|sAltOne =
|sAltTwo =
|sEnd =
|score = \new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } }
|layout = indent = 0\cm
|debug=true
}}
{{Tscore
|cont=SomeMergedMusic
|sBeginning =
|sVolta = d e f g
|sAltOne = a2 b
|sAltTwo = a,2 r
|sEnd = b4 c d r \bar "{{!}}."
|score = \new Staff { \time 4/4 \override Staff.TimeSignature #'transparent = ##t \relative c'' { \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } }
|layout = indent = 0\cm
|debug=true
}}

{{Tscore}}

Error: incorrect use of Tscore template: no next page defined
sBeginning = { c'4 d e f | g a b c | } next = { page #2 } \paper { #(set-paper-size "a4") } \header { tagline = ##f } \version "2.22.0" \score { \midi { } \layout { line-width = #180 indent = 0\cm} \new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } } }

Unable to compile LilyPond input file:

line 4 - column 10:
not a note name: page
--------
line 6 - column 11:
GUILE signaled an error for the expression beginning here
--------
line 13 - column 66:
unknown escaped string: `\sVolta'
--------
line 13 - column 66:
string outside of text script or \lyricmode
--------
line 13 - column 89:
unknown escaped string: `\sAltOne'
--------
line 13 - column 89:
string outside of text script or \lyricmode
--------
line 13 - column 98:
unknown escaped string: `\sAltTwo'
--------
line 13 - column 98:
string outside of text script or \lyricmode
--------
line 13 - column 109:
unknown escaped string: `\sEnd'
--------
line 13 - column 109:
string outside of text script or \lyricmode


{{Tscore/sandbox}}

Error: incorrect use of Tscore template: no next page defined
sBeginning = { c'4 d e f | g a b c | } next = { page #2 } \paper { #(set-paper-size "a4") } \header { tagline = ##f } \version "2.22.0" \score { \midi { } \layout { line-width = #180 indent = 0\cm} \new Staff { \time 4/4 \relative c { \sBeginning \repeat volta 2 \sVolta \alternative { \sAltOne \sAltTwo } \sEnd } } }

Unable to compile LilyPond input file:

line 4 - column 10:
not a note name: page
--------
line 6 - column 11:
GUILE signaled an error for the expression beginning here
--------
line 13 - column 66:
unknown escaped string: `\sVolta'
--------
line 13 - column 66:
string outside of text script or \lyricmode
--------
line 13 - column 89:
unknown escaped string: `\sAltOne'
--------
line 13 - column 89:
string outside of text script or \lyricmode
--------
line 13 - column 98:
unknown escaped string: `\sAltTwo'
--------
line 13 - column 98:
string outside of text script or \lyricmode
--------
line 13 - column 109:
unknown escaped string: `\sEnd'
--------
line 13 - column 109:
string outside of text script or \lyricmode