RE: once again with a header, tie into polyphony question
Ole Notes in different voices cannot be tied together. The notes in your first chord are in the default voice whereas the second d is in the voice called 1. As the d and fis in the second bar have different durations yet start at the same time they cannot be placed in the same voice. So you have to place the notes in the first chord in different voices too. If the polyphony is of short duration this is the easiest way: \new Staff \time 3/4 \relative c' { r4 { fis2~ } \\ { d2~ } | { fis8. d'16 } \\ { d,4 } r2 | } but if the polyphony is much longer it may be better to explicitly instantiate the voices: \new Staff \time 3/4 \new Voice = 1 { \voiceOne \relative c' { r4 fis2~ | fis8. d'16 r2 | } } \new Voice = 2 { \voiceTwo \relative c' { s4 d2~ | d4 s2 | } } (note the different octave specification on the d4 as the relative positions in the input are different in the two approaches) Both of these methods cause the stems on the first d2 to point down. This can be fixed if you really want them up. Trevor D -Original Message- From: [EMAIL PROTECTED] [mailto:lilypond-user-bounces+t.daniels=treda.co.u [EMAIL PROTECTED] Behalf Of Ole Schmidt Sent: 21 November 2007 00:59 To: lilypond-user@gnu.org Subject: once again with a header, tie into polyphony question Dear all, I want to have both of the first two notes tied -the d and the f- sharp. How do I achieve that? Thanks for a hint ole %%% \version 2.10.15 \new Staff { \time 3/4 \relative c' { r4 d~ fis~ 2| \voiceOne { fis8. d'16 } \new Voice = 1 { \voiceTwo d,4 } \oneVoice r2 | } } %% ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: once again with a header, tie into polyphony question
Ole Schmidt skrev: I want to have both of the first two notes tied -the d and the f-sharp. How do I achieve that? The problem is, that the Tie_engraver - that generates ties - lives at voice level. That means that the Tie_engraver can only see notes in the same voice - and therefore cannot tie notes from different voices together. The reason why the engraver does not live at Staff level is that this would make ties in polyphony impossible. If you for instance have e4 ~ e8 e8 // c8 c8 ~ c4 Then - if the Tie_engraver were living at Staff level - it would see e followed by c followed by e. Therefore the two e's that you try to tie together would not be seen as neighbours, and the engraver would be confused and produce bad results. If you really REALLY really need to tie different voice together then you can add the tie-engraver to BOTH staff and voice. And manually make the ties that you are not interested in invisible. It goes like this: %%% BEGIN %%% \version 2.10.25 \layout { \context { \Staff \consists Tie_engraver \override Tie #'transparent = ##t } \context { \Voice \override Tie #'transparent = ##f } } tiesToVoice = { \revert Staff.Tie #'transparent \override Staff.Tie #'transparent = ##t \revert Voice.Tie #'transparent \override Voice.Tie #'transparent = ##f } tiesToStaff = { \revert Staff.Tie #'transparent \override Staff.Tie #'transparent = ##f \revert Voice.Tie #'transparent \override Voice.Tie #'transparent = ##t } { \transpose c c' { \tiesToStaff e c 4 ~ e c 8 e c ~ { e e e e | \tiesToVoice e4 ~ e8 e } \\ { c8 c c c | \tiesToVoice c8 c ~ c4 } } } %%% END %%% I will add this to LSR as soon as I get the \revert \override -thing checked. I do not understand why it cannot be replaced with \set. -Rune ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: once again with a header, tie into polyphony question
On 21.11.2007 (13:58), Rune Zedeler wrote: Ole Schmidt skrev: I want to have both of the first two notes tied -the d and the f-sharp. How do I achieve that? Another possibility is to fake it by letting a stemless (i.e. transparent stem) in one voice be merged with that of another: the head is still there, and can therefore start a tie, but it appears as if the ties change from one voice to another. Below is the first measure of Fernando Sor's Fantasie elegiaque, which requires the notes of a grace-like arpeggio to be tied to three different voices. It may not be the prettiest code in the world, but at least it works (BTW, I thought there was supposed to be something like \override Staff.NoteCollision #'merge-differently-dotted = ##t \override Staff.NoteCollision #'merge-differently-headed = ##t in there, but apparently, it works) \relative c' { \key e\minor \time 4/4 { \set Staff.tieWaitForNote = ##t \partial 64*5 \voiceOne \slurDown a64\f fis' c' \tieDown dis64~ c' \stemUp dis, c'4.. \times 2/5 { b'32 a g fis e } dis8 } \\ { \voiceTwo s64 \once \override Stem #'transparent = ##t fis,64~ \noBeam \once \override Stem #'transparent = ##t c'64*3~ fis, c'4.. } \\ { \voiceFour \once \override Stem #'transparent = ##t \tieDown a,64*5 ~ \stemDown a2 } } Eyolf -- Non-sequiturs make me eat lampshades. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: once again with a header, tie into polyphony question
Ole Schmidt wrote: Dear all, I want to have both of the first two notes tied -the d and the f-sharp. How do I achieve that? Thanks for a hint ole %%% \version 2.10.15 \new Staff { \time 3/4 \relative c' { r4 d~ fis~ 2| \voiceOne { fis8. d'16 } \new Voice = 1 { \voiceTwo d,4 } \oneVoice r2 | } } %% It's not clear what you might have needed around this snippet but the following works in 2.11.34 \version 2.10.15 \new Staff { \time 3/4 \relative c' { r4 { fis2 ~ fis8. d'16 } \\ { d,2 ~ d4 } r2 | } } Paul Scott ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user