lilypond-user
[Top][All Lists]
Advanced

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

Re: duration and pitch in a function


From: David Kastrup
Subject: Re: duration and pitch in a function
Date: Thu, 08 Dec 2011 07:59:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Paolo Prete <address@hidden> writes:

> I need to create a function that
>
> accepts some_pitch and some_duration as arguments and prints the
> following three notes:
>
> 1) some_pitch with some_duration
> 2) some_pitch with some_duration*2
> 3) some_pitch with some_duration*3
>
>
> Should I use ly:duration as type of the argument two?

ly:duration? would be the predicate.  And yes, definitely.

> I can't find documentation for that.
>
> I use LilyPond 2.12.3 but I can upgrade it if necessary...

If you upgrade, you will find both the functionality itself as well as
the documentation.

I don't quite remember the version; it might be necessary to take one of
the 2.15.x releases.

-- 
David Kastrup




reply via email to

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