Richard Shann <rich...@rshann.plus.com> writes: > On Tue, 2017-04-18 at 10:04 -0500, David Nalesnik wrote: >> On Tue, Apr 18, 2017 at 9:25 AM, Richard Shann <rich...@rshann.plus.com> >> 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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user