[Top][All Lists]

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

Re: Artificial harmonics with sounding pitch in parenthesis

From: Carl D. Sorensen
Subject: Re: Artificial harmonics with sounding pitch in parenthesis
Date: Mon, 12 Jan 2009 17:08:24 -0700

On 1/12/09 3:21 PM, "Tom Hall" <address@hidden> wrote:

> Carl D. Sorensen <c_sorensen <at>> writes:
>> Yes, this is a job for scheme, because parenthesize is a music function, and
>> it needs to have music following it.  That's why you can't move it into an
>> identifier.
>> The custosNote example in Section 6.1.2 of the Notation Reference should
>> give you the pattern you need to use to define a music function
>> harmonicParenthesize (or hP for short, if you desire).
> thanks Carl, with some prodding I've now written my first lily scheme function
> as below, seems to work fine, was surprised that I could just plonk in
> \parenthesize as below.
> harmonicPitch = #(define-music-function (parser location note)
>                                      (ly:music?)
>   #{
>     \once \override Voice.Stem #'stencil = ##f
>         \once \override Voice.NoteHead #'font-size = #-4
>         \parenthesize
>         $note
>   #})

Perfect!  Simple substitution functions are trivial, and will handle lots of
common problems like you had.

>> HTH,
> Yes indeed!

Now that wasn't so bad, was it?  Welcome to the world of music functions!


reply via email to

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