Re: substitution function variable name

2023-01-28 Thread Jean Abou Samra
On 22/01/2023 18:31, Jean Abou Samra wrote: > Le 22/01/2023 à 18:22, Darren Ng a écrit : >> Thanks. The following works: >> >>    accOne = >>    #(define-music-function >>    (x    ) >>    (ly:pitch?) >> #{ >>    $x 8 $x 8 >> #}) >> >> My ultimate goal is a function which

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
Le 22/01/2023 à 18:22, Darren Ng a écrit : Thanks. The following works: accOne = #(define-music-function (x) (ly:pitch?) #{ $x 8 $x 8 #}) My ultimate goal is a function which does the following accTwo = #(define-music-function (x

Re: substitution function variable name

2023-01-22 Thread Darren Ng
Thanks. The following works: accOne = #(define-music-function (x) (ly:pitch?) #{ $x 8 $x 8 #}) My ultimate goal is a function which does the following accTwo = #(define-music-function (x) (ly:pitch?) #{ $x 8 r8

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
Le 22/01/2023 à 17:33, Jean Abou Samra a écrit : Le 22/01/2023 à 17:20, Darren Ng a écrit : Define substitution function accOne() as: accOne = #(define-music-function (x    ) (ly:music?)    #{ $x8 $x8 $x8 $x8 $x8    #}) Call accOne() with:

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
Le 22/01/2023 à 17:20, Darren Ng a écrit : Define substitution function accOne() as: accOne = #(define-music-function (x) (ly:music?) #{ $x8 $x8 $x8 $x8 $x8 #}) Call accOne() with: \accOne f Expected output is: f8 f8 f8 f

substitution function variable name

2023-01-22 Thread Darren Ng
Define substitution function accOne() as: accOne = #(define-music-function (x) (ly:music?) #{ $x8 $x8 $x8 $x8 $x8 #}) Call accOne() with: \accOne f Expected output is: f8 f8 f8 f8 f8 However, lilypond reports error as follows: G