[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to enlarge the size of accidentals in a figured bass ?
From: |
David Kastrup |
Subject: |
Re: How to enlarge the size of accidentals in a figured bass ? |
Date: |
Wed, 19 Apr 2017 00:08:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Richard Shann <address@hidden> writes:
> On Tue, 2017-04-18 at 10:04 -0500, David Nalesnik wrote:
>> On Tue, Apr 18, 2017 at 9:25 AM, Richard Shann <address@hidden> wrote:
>> > On Tue, 2017-04-18 at 14:47 +0100, Richard Shann wrote:
>> >> ;; hmm, how to get figures centered between note, and
>> >> ;; lone accidentals too?
>> >>
>> >> ; (if (markup? fig-markup)
>> >> ; (set!
>> >> ; fig-markup (markup #:translate (cons 1.0 0)
>> >> ; #:center-align fig-markup)))
>> >
>> > This part of the code is commented out like this in
>> > translation-functions.scm, but I tried it out, and it improves the
>> > centering over whole-notes but makes it worse over other notes.
>> >
>> > I see that (ly:event-property event 'duration) gives the duration of
>> > the note that the bass figure is on as:
>> >
>> > #<Duration 1 >
>> >
>> > for a whole note.
>> >
>> > so if I could test that I could use that code for this case (and the 1.
>> > case). But here my understanding of Guile's display syntax runs out ...
>> > what sort of a type is ly:event-property returning, and how do I test
>> > for particular values?
>> >
>>
>>
>> It's a Duration object.
>
> Hmm, that's the LilyPond type, but I'm still curious as to what Scheme
> type it is that displays using #< ...>
> I've been combing the Guile manual and thought for a moment it was a
> vector, but no, no that.
None. It is a user-defined type, and a user-defined print form which
Guile cannot read back in (at least currently).
--
David Kastrup