[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "\\[" as music function – stack overflow
From: |
Thomas Morley |
Subject: |
Re: "\\[" as music function – stack overflow |
Date: |
Sun, 28 Dec 2014 17:02:45 +0100 |
2014-12-28 16:01 GMT+01:00 Simon Albrecht <address@hidden>:
> Hello,
>
> when I start to compile the attached file, lily takes a long time for
> parsing and then exits with Microsoft’s "stack overflow/stack exhaustion"
> error code. I tested this with lily 2.19.8 and .15 and on both Windows and
> Ubuntu platforms with similar results. How does this come? and how to
> circumvent it?
>
> Best regards,
> Simon
Not exactly sure about the reason why your code fails, though you can
workaround with:
"\\[" =
#(define-music-function (parser location note) (ly:music?)
#{
#(make-span-event 'LigatureEvent START)
$note
\melisma
#} )
"\\]" = { \] \melismaEnd }
\score {
\new Staff { \[ c1 d \] e }
\addlyrics { vi -- de }
}
HTH,
Harm