Re: How to pass a fraction as a parameter for a Scheme function

2020-06-12 Thread Paolo Prete
On Fri, Jun 12, 2020 at 1:15 PM Aaron Hill wrote: > . If all that was needed was > to specify a duration, then it might not matter since four quarters is > the same as two halves. However then, David's suggestion of using > ly:duration? would make much more sense. > > > I agree, but my last obs

Re: How to pass a fraction as a parameter for a Scheme function

2020-06-12 Thread Aaron Hill
On 2020-06-10 10:28 am, Paolo Prete wrote: ... I have been misled by the term "rational". In fact, in the italian language the term "rational" (---> razionale) means an irreducible fraction of two coprime integers, while in the english language it means a number that can be expressed as the qu

Re: How to pass a fraction as a parameter for a Scheme function

2020-06-12 Thread Valentin Villenave
On 6/10/20, Paolo Prete wrote: > When I looked at the list of predicates...; > > https://lilypond.org/doc/v2.19/Documentation/notation/predefined-type-predicates.it.html > > ... I have been misled by the term "rational". In fact, in the italian > language the term "rational" (---> razionale) mean

Re: How to pass a fraction as a parameter for a Scheme function

2020-06-10 Thread Paolo Prete
> Alternately, you can use the rational? type predicate so the value is > numeric. However, you will then need to use Scheme syntax for the > input: #1/16 instead of 1/16. > > Thank you and thanks to David. When I looked at the list of predicates...; https://lilypond.org/doc/v2.19/Documentation/n

Re: How to pass a fraction as a parameter for a Scheme function

2020-06-09 Thread Aaron Hill
On 2020-06-09 12:43 pm, Paolo Prete wrote: Hello, I don't understand how to use a fraction as a parameter for a scheme function. More specifically, this gives me an error: proportionalNotationDur = #(define-music-function (parser location frac) (scheme?)

Re: How to pass a fraction as a parameter for a Scheme function

2020-06-09 Thread David Kastrup
Paolo Prete writes: > Hello, > > I don't understand how to use a fraction as a parameter for a scheme > function. More specifically, this gives me an error: > > > > proportionalNotationDur = #(define-music-function (parser location frac) > (scheme?) #{ \set >

Re: How to pass a fraction as a parameter for a Scheme function

2020-06-09 Thread Ralf Mattes
Am Dienstag, 09. Juni 2020 21:43 CEST, Paolo Prete schrieb: > Hello, > > I don't understand how to use a fraction as a parameter for a scheme > function. More specifically, this gives me an error: > > > > proportionalNotationDur = #(define-music-function (parser location frac) > (s

How to pass a fraction as a parameter for a Scheme function

2020-06-09 Thread Paolo Prete
Hello, I don't understand how to use a fraction as a parameter for a scheme function. More specifically, this gives me an error: proportionalNotationDur = #(define-music-function (parser location frac) (scheme?) #{ \set Score.proportionalNotationDuration = #