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
lilypond-devel@gnu.org
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: [EMAIL PROTECTED]
        WWW: http://www.s3.kth.se/~mabe
=============================================



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

Reply via email to