lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Réf. : Re: Réf. : Re: transparent stems


From: Mats Bengtsson
Subject: Re: Réf. : Re: Réf. : Re: transparent stems
Date: Thu, 07 Oct 2004 17:36:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

OK! If you want to save some typing, then you could use

basseI =    \notes
  \context Staff <<
    \new Voice \relative c {
      \voiceOne
      \time 4/4
      \clef bass
      f2 f
      \bar "||"
    }
    \new Voice \relative c {
      \voiceTwo
      f,2 f
    }

    \new Voice \relative c' {
      \voiceOne
      \override Stem #'transparent = ##t
      <a, c>2 <a c>
    }
>>


Note that I intentionally use the \voiceOne macro for two of the voices.
Actually, the only difference between \voiceOne and \voiceThree is that
the latter one moves note heads to the right to avoid collisions (which
you don't want, as far as I can understand).

   /Mats

Jean-marc LEGRAND wrote:



<<{\override Stem #'transparent = ##t a,2}\\{\override Stem #'transparent = ##t 
c}>> is OK. Thanks !
I use this type of notation for baroc viol music, in which intermediate notes 
in a chord are
stemless.


Mats Bengtsson <address@hidden Pour : Jean-marc LEGRAND <address@hidden> 3.kth.se> cc : address@hidden Objet : Re: Réf. : Re: transparent stems 07/10/2004 15:32



A setting such as
\override Stem #'transparent =##t
will apply to the current Voice context and does certainly work.
However, in your example, you use the construct
<< {...} \\ {...} >>
which implicitly puts the two lines of music into separate
Voice contexts named "1" and "2", respectively.

The easiest is probably to just keep all the notes in the same
Voice context:
<<{a,2}{c}>> <<{a}{c}>>
Or even write these chords as chords instead of simultanous
voices:
\new Voice \relative c' {\voiceThree
   <a, c>2 <a c>
}


Then, you probably shouldn't even make the stem transparent, since
LilyPond automatically will move the notes to the right in \voiceThree
to make it clear what notes belong where.


If you really want transparent stems and separate voices,
try:
<<{\override Stem #'transparent = ##t a,2}\\{\override Stem
#'transparent = ##t c}>> <<{a}\\{c}>>
Even though I would find it very difficult as a musician to
interprete that notation.

    /Mats

Jean-marc LEGRAND wrote:



Yes, I've read the News, and translated  : \property Staff.Stem \set 
#'transparent = ##t into
\override Staff.Stem #'transparent = ##t. But the whole notes have transparent 
stems, whereas I'd
like just the middle voice (voicethree) like this. And when I replace Staff by 
Voice, it doesn't

do

anything.

Any trick ?





                     Mats Bengtsson


                     <address@hidden        Pour :    Jean-marc LEGRAND

<address@hidden>

                     3.kth.se>                cc :      address@hidden


                                              Objet :   Re: transparent stems


                     07/10/2004 13:18







Did you try convert-ly to update the syntax?
Also, did you read the NEWS file for version 2.2?

   /Mats

Jean-marc LEGRAND wrote:



Hi list !

Working on Lily2.2 and XP, I cannont find how to translate the "\property 
Staff.Stem \set
#'transparent = ##t" I used on Lily2.0. I have a staff with 3 voices, and I 
want to make the stems
of the middle voice transparent.
I've tried  \override Staff.Stem #'transparent = ##t and it makes the wholes 
stems transparent (in
the 3 voices).
So I've tried \override Voice.Stem #'transparent = ##t, and nothing happens.
I've also tried the Lilybook trick : \override Stem #'transparent = ##t : idem.

What can I do, please ?

Here's my script :

basseI =    \notes
                \context Staff <<
          \new Voice {\voiceOne
          \time 4/4
          \clef bass
                \relative c {
f2 f
\bar "||"
}
}
          \new Voice  {\voiceTwo
          \relative c {
\stemDown
f,2 f
          }
          }

          \new Voice  {\voiceThree
          \relative c' {
\override Stem #'transparent = ##t
<<{a,2}\\{c}>> <<{a}\\{c}>>
          }
          }




_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


--
=============================================
            Mats Bengtsson
            Signal Processing
            Signals, Sensors and Systems
            Royal Institute of Technology
            SE-100 44  STOCKHOLM
            Sweden
            Phone: (+46) 8 790 8463
        Fax:   (+46) 8 790 7260
            Email: address@hidden
            WWW: http://www.s3.kth.se/~mabe
=============================================





_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


--
=============================================
             Mats Bengtsson
             Signal Processing
             Signals, Sensors and Systems
             Royal Institute of Technology
             SE-100 44  STOCKHOLM
             Sweden
             Phone: (+46) 8 790 8463
         Fax:   (+46) 8 790 7260
             Email: address@hidden
             WWW: http://www.s3.kth.se/~mabe
=============================================




--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]