Hi all,

I'm trying to get the frameEngraver3.ly code from this aleatoric notation
thread going on Lilypond 2.16.0-1, and I get the following errors:

GNU LilyPond 2.16.0
Processing `frameEngraver.ly'
Parsing...
frameEngraver.ly:27:1: error: GUILE signaled an error for the expression
beginning here
#
 (define-event-class 'frame-event
Unbound variable: define-event-class
Interpreting music...
frameEngraver.ly:209:48: warning: Event class should be a list
  \once \override Frame #'right-extra-padding =
                                                #0
frameEngraver.ly:210:23: warning: Event class should be a list
  \frameStart dis'8[ e
                       f \frameEnd ges] s2
frameEngraver.ly:212:44: warning: Event class should be a list
  \once \override Frame #'extender-length =
                                            #12
frameEngraver.ly:213:22: warning: Event class should be a list
  \frameStart d,,8[ e
                      f \frameEnd g] s2
frameEngraver.ly:215:44: warning: Event class should be a list
  \once \override Frame #'extender-length =
                                            #3.5
frameEngraver.ly:216:23: warning: Event class should be a list
  \frameStart f'8[ aes
                       g \frameEnd bes] s4
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `frameEngraver.ps'...
Converting to `./frameEngraver.pdf'...
fatal error: failed files: "frameEngraver.ly"

I can't code in Scheme, and I've yet to find any tutorial in the Lilypond
docs that would get me to this level of Scheme integration with Lilypond.
But it seems to be the case that it throws an error once for a scheme
function and again because of expected typing. Since a subsequent (relative
to the message to which frameEngraver3.ly was attached) message in the
thread recommended revision to frameEngraver3.ly, specifically the addition
of "\frameStart" command marks after the frame's first pitch, I've attached
my copy of the file to make it clear which code exactly has generated these
errors.

This might be a good scheme lesson for me, right here, come to think of it.
I've got LISP, so maybe I'm not as far as I think.

best,
Jeff


On Tue, Mar 13, 2012 at 9:33 AM, David Nalesnik <david.nales...@gmail.com>wrote:

> Hi Mike,
>
> Excellent work!
>
>
> I'm glad you think so!
>
>
>>
>> I've attached a new file that addresses some of the issues you identify
>> above:
>>
>> --) It uses axis-group::width to box accidentals
>>
>
> Beautiful!  Now there's really no need for the extra padding properties.
>  (I've kept them in the attached file, but combined them into a single
> property which takes a pair = 'extra-padding.)
>
>
>> --) It creates a FrameStub grob to occupy the horizontal space that a
>> frame line takes up (note that I don't know if this actually works - I'm
>> not sure how to test it - but at least it doesn't crash!).  Whenever you
>> have a spanner that somehow occupies horizontal space at its bounds, you
>> can create stub grobs that approximate this space.  This technique also
>> works for items that, for whatever reason, have heights that are difficult
>> to approximate (see SpanBarStub and StemStub, for example).
>>
>
> This works great for spacing on the left side.  It wasn't working on the
> right, so I added 'extender-length in (plus a slight correction accounting
> for arrow-length, etc., which should be fairly easy to calculate). Now it
> will push everything forward nicely.
>
> One thing I've noticed, though, is that the line will not cross a bar
> line.  If I increase the length of the extender, the bar line is simply
> pushed to the right.  I figured out one way around this--namely, setting
> the X-extent of the bar line to (+inf.0 . -inf.0), which is what I do in
> the attached file. Of course this has other consequences.  Is there any
> other way?
>
> --) It gets rid of some dead or unused code.
>>
>
> Thank you very much for your improvements and explanations--I think I've
> learned quite a bit!
>
> Best,
> David
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>


-- 
《〠》】〶【〖〠〗〶〛〷〚
Jeff Treviño
PhD Candidate in Music Composition
@ the University of California, San Diego
〖〠〗〶〛〷〚《〠》】〶
Skype: jeffreytrevino
E-mail: jeffrey.trev...@gmail.com
〚《〠》】〶【〖〠〗〶〛〷
9310H Redwood Dr.
La Jolla, CA 92037
USA
〖〠〗〶〛〷〚《〠》】〶【
<http://www.jeffreytrevino.com/>

Attachment: jeffsCopyOfFrameEngraver3.ly
Description: Binary data

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to