Score mit Layout Block als scheme function
Zur Navigation springen
Zur Suche springen
Diese Scheme-Funktion erzeugt einen Score mit einem Midi-Block, der Layout-Block wird in diesem Fall weggelassen.
Lilypond-Code
\version "2.20.0"
\language "deutsch"
\include "articulate.ly"
aeolisch = \relative c'
{
d4\ppp\< e f g a h c d c h a g f e d2\ffff ~ d1
< c e g > < d f a > < e g h >
< f a c > < g h d > < a c e > < h d f >
d,4( e f g a h c d c h a g f e d2 ~ d1)
d4-. e-. f-. g-. a-. h-. c-. d-. c-. h-. a-. g-. f-. e-. d2 ~ d1 %% abgesetzt
d4-- e-- f-- g-- a-- h-- c-- d-- c-- h-- a-- g-- f-- e-- d2 ~ d1 %% kein Unterschied
d4-! e-! f-! g-! a-! h-! c-! d-! c-! h-! a-! g-! f-! e-! d2 ~ d1 ~ d1 %% abgesetzt, nicht gebunden
}
make-score =
#(define-scheme-function (instrument)(string?)
#{
\score {
\new Staff
{
\set Staff.midiInstrument = $instrument
\aeolisch
}
\midi {
\tempo 4=180
\context {
\Score
midiMinimumVolume = #0.1
midiMaximumVolume = #0.99
}
}
}
#})
\make-score #"harpsichord"
\aeolisch
Ausgabe
Eigentlich gehört ein Midi-File hierher, weil der Score nur mit einem Midi-Block keine Ausgabe erzeugt.