lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Triplets


From: Thomas Morley
Subject: Re: Triplets
Date: Sun, 15 Jan 2017 00:21:15 +0100

2017-01-14 23:41 GMT+01:00 J Martin Rushton <address@hidden>:
>
>
> On 14/01/17 22:34, Hans Aikema wrote:
>>
>>> On 14 Jan 2017, at 23:32, Hans Aikema <address@hidden> wrote:
>>>
>>>
>>>> On 14 Jan 2017, at 23:14, J Martin Rushton <address@hidden> wrote:
>>>>
>>>>
>>>>>
>>>> Progress.  That seems to have sorted out the syntax errors but there's
>>>> an issue with one variable:
>>>> -------------------%<----------------------
>>>> Processing `.../file.ly'
>>>> Parsing...
>>>> Interpreting music...
>>>> Preprocessing graphical objects...
>>>> Finding the ideal number of pages...
>>>> Fitting music on 1 page...
>>>> Drawing systems....../file.ly:51:36: While evaluating arguments to eq?
>>>> in expression (eq? UP (ly:tuplet-bracket::calc-direction x)):
>>>> .../file.ly:51:36: Unbound variable: UP
>>>>
>>>> exited with status: 1
>>>> -------------------%<--------------------
>>>>
>>> Can you try replacing
>>> UP in that line by 1
>>> and DOWN in that line by -1
>>> apparently the version of Lilypond in use does not yet have these 
>>> constatnts defined (values taken from internalsreference: 
>>> http://lilypond.org/doc/v2.19/Documentation/internals/tupletbracket)
>>>
>>>
>>>
>>> _______________________________________________
>>> lilypond-user mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> Better yet… as you mentioned 2.14
>>
>>
>> try #UP and #DOWN instead
>> (http://lilypond.org/doc/v2.14/Documentation/internals/tupletbracket)
>>
> #UP and #DOWN changed one error to dozens :-(
> 1 and -1 looks more hopeful though :-)
>   #(define (invert-direction x) (if (eq? 1
> (ly:tuplet-bracket::calc-direction x)) -1 1))
>
> =>
>
> Drawing systems....../file.ly:51:43: In expression
> (ly:tuplet-bracket::calc-direction x):
> .../file.ly:51:43: Unbound variable: ly:tuplet-bracket::calc-direction

Strange, no idea what happens there.
At least all that is already defined in 2.14.2

With my lily-2.14.2 I can do in terminal:

~$ lilypond-2-14-2 -e '(scm-style-repl)'
GNU LilyPond 2.14.2
guile> UP
1
guile> DOWN
-1
guile> ly:tuplet-bracket::calc-direction
#<primitive-procedure ly:tuplet-bracket::calc-direction>
guile>

All there and available...

Cheers,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]