lilypond-devel
[Top][All Lists]
Advanced

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

Re: NR 6.5.2., 6.7


From: Mats Bengtsson
Subject: Re: NR 6.5.2., 6.7
Date: Fri, 07 Nov 2008 17:38:09 +0100
User-agent: Thunderbird 2.0.0.5 (X11/20070716)



Carl D. Sorensen wrote:
I read NR 6.5.2 and couldn't understand the example.  It describes the usage
of applyOutput, and presents a function for its use, but never shows how it
is applied.  An actual example here would be wonderful.
The code included in this section now is plain wrong. The following version which includes an example of how to use it, seems to work. Another example is available
in input/lsr/changing-properties-for-individual-grobs.ly.

#(define (blanker grob grob-origin context)
(if (and (memq 'note-head-interface (ly:grob-interfaces grob))
         (eq? (ly:grob-property grob 'staff-position) 0))
    (ly:grob-set-property! grob 'transparent #t)))

\relative c'{
 < c e g b d f a>
 \applyOutput #'Voice #blanker
 < c e g b d f a>
 < c e g b d f a>
}

   /Mats
N.R 6.7 shows the use of Scheme code as an articulation.  The reason why
this works is unclear to me, but I can see there is some power here.  An
explanation would be really helpful.  The articulation that is added is not
a Scheme function, but rather the return part of a Scheme function.

Thanks,

Carl




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

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        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]