Thanks, that works for what I need. And helps me understand how this
works in general a bit more.
On 10/13/2024 1:22 PM, David Kastrup wrote:
Walt North writes:
ah =
#(define-music-function (sfrt note hfrt ) (number? ly:music? string? )
#{
% \harmonicByFret #sfrt g4\3 ^\markup { \ce
Walt North writes:
> ah =
> #(define-music-function (sfrt note hfrt ) (number? ly:music? string? )
>#{
> % \harmonicByFret #sfrt g4\3 ^\markup { \center-align \teeny \concat {<
> #hfrt > }}
> \harmonicByFret #sfrt #note ^\markup { \center-align \teeny \concat {<
> #hfrt > }}
>#
I am attempting write a small function to add a bit of text above an
artificial harmonic in tablature.
But I am getting an error. See script and log output below. If I had
hard code the value for the note it works ok but not when I try to use a
parameter variable.
The desired result example
Date: Thu, 14 May 2015 16:01:34 +0100
From: Mark Knoop
To: Lilypond User List
Subject: Re: Music function problem
Message-ID: <20150514160134.292179f6@brahms.leipzig>
Content-Type: text/plain; charset=US-ASCII
At 14:57 on 14 May 2015, Peter Gentry wrote:
> I have seen the error o
ber? ly:music?)
(anotherfunction m n))
>>-Original Message-
>>From: Thomas Morley [mailto:thomasmorle...@gmail.com]
>>Sent: Thursday, May 14, 2015 1:07 PM
>>To: Peter Gentry
>>Cc: lilypond-user
>>Subject: Re: Music function problem
>>
>>201
er
>Subject: Re: Music function problem
>
>2015-05-14 13:44 GMT+02:00 Peter Gentry :
>> I am trying to write an include file that will modify a music object
>> dependent on the specified instrument.
>>
>>
>music-functions _do_ accept strings or numbers, some
2015-05-14 13:44 GMT+02:00 Peter Gentry :
> I am trying to write an include file that will modify a music object
> dependent on the specified instrument.
>
> I am trying to write a function that will call the current music object and
> a user supplied argument string/number with the object of modif
I am trying to write an include file that will modify a music object dependent
on the specified instrument.
I am trying to write a function that will call the current music object and a
user supplied argument string/number with the object
of modifying the music object depending on the supplied