Deutsches Lilypond Forum (Archiv)
Allgemein => Fragen zu Funktionen => Thema gestartet von: DocTaxon am Dienstag, 5. November 2013, 19:37
-
Hallo!
Die trillSpan-Linie soll über beide ganzen Noten gehen, und zwar bis kurz vor den zweiten Taktstrich. Irgendwie muss ich also trillSpan overriden. Wie stell ich das an?
Danke sehr,
DocTaxon ...
\version "2.16.0"
dashPlus = "trill"
\include "articulate.ly"
\header {
}
\layout {
}
\paper {
}
musicI = {
\clef treble
\key e \major
\time 4/4
\once\override Script #'extra-offset = #'(0 . -5) cis1~\startTrillSpan^\markup { \halign #.0075 { \small { "canoro incanto:" } } } cis\stopTrillSpan cis16( dis) cis( dis) \tieDashed cis4~ cis16( dis) cis( dis) cis4 \break
R1 R R
}
music = { <<
\new StaffGroup <<
\new Staff = "violin0" \with { instrumentName = "Violino" shortInstrumentName = "Vl. pr." midiInstrument = #"violin" }
<<
\tag #'midi { \articulate \relative c'' \musicI }
\tag #'print { \relative c'' \musicI }
>>
>>
>> }
\score {
\keepWithTag #'print
\music
\layout { }
}
\score {
\unfoldRepeats
<<
\keepWithTag #'midi
\music
>>
\midi {
\context {
\Staff
\remove "Staff_performer"
}
\context {
\Voice
\consists "Staff_performer"
}
\tempo 4 = 100
}
}
-
Ach ja, der Code ist falsch. \stopTrillSpan hätte ich bis zur ersten 16tel setzen müssen, also:
\version "2.16.0"
dashPlus = "trill"
\include "articulate.ly"
\header {
}
\layout {
}
\paper {
}
musicI = {
\clef treble
\key e \major
\time 4/4
\once\override Script #'extra-offset = #'(0 . -5) cis1~\startTrillSpan^\markup { \halign #.0075 { \small { "canoro incanto:" } } } cis cis16(\stopTrillSpan dis) cis( dis) \tieDashed cis4~ cis16( dis) cis( dis) cis4 \break
R1 R R
}
music = { <<
\new StaffGroup <<
\new Staff = "violin0" \with { instrumentName = "Violino" shortInstrumentName = "Vl. pr." midiInstrument = #"violin" }
<<
\tag #'midi { \articulate \relative c'' \musicI }
\tag #'print { \relative c'' \musicI }
>>
>>
>> }
\score {
\keepWithTag #'print
\music
\layout { }
}
\score {
\unfoldRepeats
<<
\keepWithTag #'midi
\music
>>
\midi {
\context {
\Staff
\remove "Staff_performer"
}
\context {
\Voice
\consists "Staff_performer"
}
\tempo 4 = 100
}
}
Allerdings reicht jetzt die TrillSpan-Linie auch bis zur ersten 16tel-Note. Ich hätte jedoch immer noch gern, dass die vor dem 2. Taktstrich endet.
Nochmals danke,
DocTaxon ...
-
Du suchst wahrscheinlich [\once] \override TrillSpanner #'to-barline = ##t. Geht ähnlich auch für andere Spanner, z. B. Pedallinien, Hairpins etc.
-
Du suchst wahrscheinlich [\once] \override TrillSpanner #'to-barline = ##t. Geht ähnlich auch für andere Spanner, z. B. Pedallinien, Hairpins etc.
wirklich? das endet doch bei der 1. bar line...
ein anderer ansatz:
{
cis1~
\startTrillSpan
cis
<>
\stopTrillSpan
cis
}Eluze
-
Nein, #'to-barline macht, dass der Spanner, falls er auf der Eins im nächsten Takt beendet wird, nur bis zum Taktstrich geht. Ob er dabei schon über mehrere Takte ging, spielt keine Rolle. (Ja, ich habs ausprobiert, bevor ich es gestern gepostet hab ;))
Dein Ansatz führt halt wieder dazu, dass der Triller bis zur eins geht (zumindest unter 2.17.29).
-
Perfekt, dat funzt! :D
Danke sehr,
DocTaxon ...