lilypond-user
[Top][All Lists]
Advanced

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

Re: New, more powerful version of \shape!


From: Urs Liska
Subject: Re: New, more powerful version of \shape!
Date: Fri, 18 Oct 2013 09:19:17 +0200
User-agent: K-9 Mail for Android




David Kastrup <address@hidden> schrieb:
>Urs Liska <address@hidden> writes:
>
>> Urs Liska <address@hidden> schrieb:
>>>
>>>
>>>
>>>
>>>David Kastrup <address@hidden> schrieb:
>>>>Janek Warchoł <address@hidden> writes:
>>>>
>>>>> Hi all,
>>>>>
>>>>> \shape is an awesome function, indispensable for creating
>>>>> publication-quality slurs. However, after using it 1107 times in a
>>>>> recent project (this number is not a joke!),
>>>>
>>>>Well, it should be.  It means that our slur shaping and quanting is
>>>>apparently not doing its job.
>>>>
>>>>-- 
>>>>David Kastrup
>>>>
>>>>
>>>
>>>Janek, can you come up with a reliable way of determining the total
>>>number of slurs, ties etc in the project?
>>
>> Maybe with assistance from Frescobaldi's parser?
>
>Probably easier to do with assistance from LilyPond's parser.
>
>#(define slur-count 0)
>
>oldSlur = (
>
>"(" =
>#(define-event-function (parser location) ()
>  (set! slur-count (1+ slur-count))
>  oldSlur)
>
>...
>#(format #t "\nSlur count: ~S\n" slur-count)
>
>Now that's just the number of input slurs.  If you want the number of
>output slurs, you probably would make an engraver.
>
>-- 
>David Kastrup

Cool.


But with Frescobaldi it's basically all there too. I forgot about the 
'accounting' branch of my fork. I'll look into that later today.




reply via email to

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