lilypond-user
[Top][All Lists]
Advanced

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

Re: trnasparent stem function


From: Jean-marc LEGRAND
Subject: Re: trnasparent stem function
Date: Mon, 16 Oct 2006 12:13:30 +0200




Thanks, Mats !
That does work and I've achieved what I wanted to do :

\version "2.9"
stemLess = \override Voice.Stem #'transparent = ##t
stemFull = \override Voice.Stem #'transparent = ##f
\score {
      \relative c'' {
            \override Staff.NoteCollision  #'merge-differently-headed = ##f
            <<{\stemDown a2 a4 a} \\ {\stemLess c2 c4 c \stemFull} \\ {\stemUp 
e2 e4 e}>>

            }
      }

Best regards !

JMarc


                                                                                
                    
             Mats Bengtsson                                                     
                    
             <address@hidden>                                                   
          
                                                                                
                  A 
             13/10/2006 20:40                    Jean-marc LEGRAND 
<address@hidden>    
                                                                                
                 cc 
                                                 address@hidden                 
             
                                                                                
              Objet 
                                                 Re: trnasparent stem function  
                    
                                                                                
                    
                                                                                
                    
                                                                                
                    
                                                                                
                    
                                                                                
                    
                                                                                
                    




There's no need for a music function here, why not simply do

stemLess = \once \override Voice.Stem #'transparent = ##t

Also, since you use \once in the previous definition, there's no need
to do a revert later.

   /Mats

Quoting Jean-marc LEGRAND <address@hidden>:

>
>
>
>
> Hi list !
>
> Using 2.9 on XP.
>
> I'm beginning to engrave Marais' Viol suites (since I've understood
> eps files inclusion...).
>
> I'm stuck with this : in the fac simile, inside notes of a chord are
> stemless. So I have to get
> something like
> <<{a4} \\ {<c e> % without stem} \\ {a}>>
>
> So I've decided to get in function construction, and I've tried this
> for a simple piece of music :
>
> \version "2.9"
> stemLess = #(define-music-function (parser location note) (ly:music?)
>       #{\once \override Voice.Stem #'transparent = ##t       #})
>
> stemFull = #(define-music-function (parser location note) (ly:music?)
>       #{\revert  Voice.Stem #'transparent  #})
>
> \score {
>      \relative c'' {
>            c4 \stemLess c c \stemFull c
>            }
>      }
>
> I get
> -  the first c with a stem (ok)
> - the second one ithout stem (ok)
> - no more music after that : not OK at all.
>
> I think I'm making a mistake with my function, since it's the first
> aof my entire life !
>
> Does anyone know where it is ?
>
> Best regards !
>
> JMarc
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>









reply via email to

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