\version "2.25.80"
mus = \relative {
c''4 c c c
}
meintext = "Hier ein beliebiger Text"
\paper {
tagline = ##f
}
meinscore =
%Musikfunktion für transponierbaren Score
#(define-music-function (m p)
(ly:music? ly:pitch?)
#{
<<
\new PianoStaff
<<
\new Staff="up"
<<
\new Voice
{
\voiceOne
\key $p \major
\transpose c $p $m
}
\new Voice
{
\voiceTwo
\transpose c' $p $m
}
>>
\new Staff="down"
<<
\new Voice
{
\clef bass
\voiceOne
\key $p \major
\transpose c' $p $m
}
\new Voice
{
\voiceTwo
\transpose c'' $p $m
}
>>
>>
>>
#}
)
\bookpart {
#(for-each
(lambda (p)
(add-score
(scorify-music (meinscore mus p)))
(when (and (defined? 'meintext) (markup? meintext))
(add-text meintext)))
(music-pitches #{ { c f e } #}))
}
\version "2.25.80"
mus = \relative {
c''4 c c c
}
meintext = "Hier ein beliebiger Text"
\paper {
tagline = ##f
}
meinscore =
%Musikfunktion für transponierbaren Score
#(define-music-function (m p)
(ly:music? ly:pitch?)
#{
<<
\new PianoStaff
<<
\new Staff="up"
<<
\new Voice
{
\voiceOne
\key $p \major
\transpose c $p $m
}
\new Voice
{
\voiceTwo
\transpose c' $p $m
}
>>
\new Staff="down"
<<
\new Voice
{
\clef bass
\voiceOne
\key $p \major
\transpose c' $p $m
}
\new Voice
{
\voiceTwo
\transpose c'' $p $m
}
>>
>>
>>
#}
)
\bookpart {
#(for-each
(lambda (p)
(add-score
(scorify-music #{
{
\meinscore \mus
$p
}
%\markup \meintext
#} )))
(music-pitches #{
{
c f e
} #}
))
}\version"2.24.2" \language"deutsch" global={}
sopr=\relative{a''b c d e f g h}
alto=\relative{a' b c d e f g h}
teno=\relative{a, b c d e f g h}
bass=\relative{a,,b c d e f g h}
\book{\paper{output-filename="elkeSopr"}\score{ % Midi Sopr
\unfoldRepeats{
<<
\new Voice= "Sopr" {\global\set Staff.midiPanPosition =# 1.00 \sopr}
\new Voice= "Alto" {\global\set Staff.midiPanPosition =#-1.00 \alto}
\new Voice= "Teno" {\global\set Staff.midiPanPosition =#-1.00 \teno}
\new Voice= "Bass" {\global\set Staff.midiPanPosition =#-1.00 \bass}
>>
}%\unfold
\midi{}
}%\score{ %Midi Sopr
} %book
\book{\paper{output-filename="elkeAlto"}\score{ % Midi Alto
\unfoldRepeats{
<<
\new Voice= "Sopr" {\global\set Staff.midiPanPosition =#-1.00 \sopr}
\new Voice= "Alto" {\global\set Staff.midiPanPosition =# 1.00 \alto}
\new Voice= "Teno" {\global\set Staff.midiPanPosition =#-1.00 \teno}
\new Voice= "Bass" {\global\set Staff.midiPanPosition =#-1.00 \bass}
>>
}%\unfold
\midi{}
}%\score{ %Midi Alto
} %book
\book{\paper{output-filename="elkeTeno"}\score{ % Midi Teno
\unfoldRepeats{
<<
\new Voice= "Sopr" {\global\set Staff.midiPanPosition =#-1.00 \sopr}
\new Voice= "Alto" {\global\set Staff.midiPanPosition =#-1.00 \alto}
\new Voice= "Teno" {\global\set Staff.midiPanPosition =# 1.00 \teno}
\new Voice= "Bass" {\global\set Staff.midiPanPosition =#-1.00 \bass}
>>
}%\unfold
\midi{}
}%\score{ %Midi Teno
} %book
\book{\paper{output-filename="elkeBass"}\score{ % Midi Bass
\unfoldRepeats{
<<
\new Voice= "Sopr" {\global\set Staff.midiPanPosition =#-1.00 \sopr}
\new Voice= "Alto" {\global\set Staff.midiPanPosition =#-1.00 \alto}
\new Voice= "Teno" {\global\set Staff.midiPanPosition =#-1.00 \teno}
\new Voice= "Bass" {\global\set Staff.midiPanPosition =# 1.00 \bass}
>>
}%\unfold
\midi{}
}%\score{ %Midi Bass
} %book
Erzeugt vier midi-Files, bei denen jeweils eine Stimme rechts und alle anderen Stimmen links erklingen.(_ "symbol ~S redefined")durch(G_ "symbol ~S redefined")
accidental->text-markup