[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TimeSignature with note in denominator
From: |
David Kastrup |
Subject: |
Re: TimeSignature with note in denominator |
Date: |
Mon, 08 Nov 2021 22:07:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Kieren MacMillan <kieren_macmillan@sympatico.ca> writes:
> Hi Aaron,
>
>> Technically, you could create string->duration:
>>
>> %%%%
>> #(define (string->duration str)
>> (let* ((parser (ly:parser-clone '()))
>> (music (ly:parse-string-expression parser str)))
>> (if (ly:duration? music) music (ly:error "Expecting duration"))))
>>
>> { b' $(string->duration "4.") c'' $(string->duration "8") }
>> %%%%
>
> Thanks.Just wanted to make sure I wasn’t reinventing a wheel!
>
>> But it would seem better to let the parser do the work by having the
>> function accept a ly:duration? directly. Certainly, it would be
>> easier to use:
>>
>> %%%%
>> \timeII 3 4. % logically \time 9/8
>> %%%%
>
> I considered a separate function, but rejected the idea for several
> reasons (backwards compatibility,
Why would there be any issue with backwards compatibility?
> incompatibility with “stylesheet” mentality,
I have no idea what that is supposed to mean.
> etc.). That being said, if \time can be re-coded so that it will
> accept a duration for the “denom” *without breaking existing code or
> requiring a convert-ly rule*, then that would be home run!
I have no idea what you are even imagining here because the denominator
for \time is not written as a separate number in the first place.
--
David Kastrup
- Re: Manipulating instrument names and staff group names, (continued)
- Re: Manipulating instrument names and staff group names, Kieren MacMillan, 2021/11/07
- TimeSignature with note in denominator, Kieren MacMillan, 2021/11/08
- Re: TimeSignature with note in denominator, David Kastrup, 2021/11/08
- Re: TimeSignature with note in denominator, Werner LEMBERG, 2021/11/08
- Re: TimeSignature with note in denominator, Kieren MacMillan, 2021/11/08
- Re: TimeSignature with note in denominator, Thomas Morley, 2021/11/09
- Re: TimeSignature with note in denominator, address@hidden, 2021/11/08
- Re: TimeSignature with note in denominator, Kieren MacMillan, 2021/11/08
- Re: TimeSignature with note in denominator, Aaron Hill, 2021/11/08
- Re: TimeSignature with note in denominator, Kieren MacMillan, 2021/11/08
- Re: TimeSignature with note in denominator,
David Kastrup <=
- Re: TimeSignature with note in denominator, Kieren MacMillan, 2021/11/08
- Re: TimeSignature with note in denominator, Dan Eble, 2021/11/08
- Re: TimeSignature with note in denominator, Kieren MacMillan, 2021/11/08
- Re: TimeSignature with note in denominator, Werner LEMBERG, 2021/11/09
- Re: TimeSignature with note in denominator, Lukas-Fabian Moser, 2021/11/09
- Re: TimeSignature with note in denominator, Werner LEMBERG, 2021/11/11
- Re: TimeSignature with note in denominator, Kieren MacMillan, 2021/11/12
- Re: TimeSignature with note in denominator, David Kastrup, 2021/11/12
- Re: TimeSignature with note in denominator, Jean Abou Samra, 2021/11/12
- Re: TimeSignature with note in denominator, Kieren MacMillan, 2021/11/12