lilypond-user
[Top][All Lists]
Advanced

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

Re: trnasparent stem function


From: Mats Bengtsson
Subject: Re: trnasparent stem function
Date: Fri, 13 Oct 2006 20:40:20 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.0.5)

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]