lilypond-user
[Top][All Lists]
Advanced

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

Help with music function


From: Mark Probert
Subject: Help with music function
Date: Mon, 18 Dec 2023 16:33:53 +1100

Hi.

I'm struggling some with writing a music function for rests.  Basically I want to be able to write something like

 \rel-rest( b', 1)

which would place a dotted quarter rest on the indicated pitch (the equivalent of

  b'1\rest

I'm starting with

rel-rest =
#(define-music-function (pit dur) (ly:pitch? ly:duration?)
  #{
    #pit#dur\rest
  #})

but that gives me an error.

Any suggestions?

--

--
-mark.

reply via email to

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