• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

trillSpan-Linie

Begonnen von DocTaxon, Dienstag, 5. November 2013, 19:37

Vorheriges Thema - Nächstes Thema

DocTaxon

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
  }
}

DocTaxon

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 ...

fugenkomponist

Du suchst wahrscheinlich [\once] \override TrillSpanner #'to-barline = ##t. Geht ähnlich auch für andere Spanner, z. B. Pedallinien, Hairpins etc.

eluze

Zitat von: fugenkomponist am Dienstag,  5. November 2013, 21:02
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

fugenkomponist

#4
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).

DocTaxon

Perfekt, dat funzt!   :D

Danke sehr,
DocTaxon ...