lilypond-user
[Top][All Lists]
Advanced

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

Re: Making two functions into one


From: David Kastrup
Subject: Re: Making two functions into one
Date: Mon, 16 Jan 2023 15:54:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Valentin Petzel <valentin@petzel.at> writes:

> Hello,
>
> not sure about that one, but this seems to work:
>
> \version "2.24.0"
>
> nd =  #(define-music-function (number) (integer?)
>          #{
>            #(time (cons number 8))
>            s8 * $number
>          #})

LilyPond syntax expressions, like in #{ ... #}, attach origin
information automatically.  If you want things to happen automatically,
Scheme is not the way to go...

-- 
David Kastrup



reply via email to

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