[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Axis_group_engraver + Scheme engraver for staff combining (issue 576
From: |
Saul Tobin |
Subject: |
Re: Axis_group_engraver + Scheme engraver for staff combining (issue 576540043 by address@hidden) |
Date: |
Sat, 16 Mar 2019 19:45:37 -0600 |
Thanks, Thomas.
As you can probably tell, the Scheme code as currently submitted is more
like a proof of concept. I will go through and properly integrate it into
the Lilypond code organization.
Re cdr is not a predicate — the list being processed here is composed of
pairs, the cdr of which is ##t or ##f.
One question — is there a preferred way to get child contexts in Scheme?
Can't seem to find such a thing in the documentation but maybe I'm missing
something.
Saul
On Wed, Mar 13, 2019, 3:22 PM <address@hidden> wrote:
> Can't review C++-code.
> Some concerns in the ly-file:
>
>
>
> https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly
> File ly/divisi_engraver.ly (right):
>
>
> https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode3
> ly/divisi_engraver.ly:3
> <https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode3ly/divisi_engraver.ly:3>:
> % From define-context-properties.scm
> Here two new context-properties are defined: sharingParts and
> combineWithNext
> This shouldn't be done in a ly-file, but in
> define-context-properties.scm
>
>
> https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode26
> ly/divisi_engraver.ly:26
> <https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode26ly/divisi_engraver.ly:26>:
> except the last element of each sublist."
> I don't understand the description.
> The commented example below (which should likely be part of the
> doc-string) uses cdr. But cdr is not a perdicate.
> Am I missing something?
> Anyway, such a thing should probably inserted in lily-library.scm
>
>
> https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode39
> ly/divisi_engraver.ly:39
> <https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode39ly/divisi_engraver.ly:39>:
> (and (every
> Isn't it the same as
> (lset<= equal? y x)
> ?
> The whole thingy is used once (in the engraver definition below)
> I'd delete 'proper-subset?' and do (lset<= equal? y x) there.
>
>
> https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode45
> ly/divisi_engraver.ly:45
> <https://codereview.appspot.com/576540043/diff/578520043/ly/divisi_engraver.ly#newcode45ly/divisi_engraver.ly:45>
> :
> Here I stopped for now.
> Waiting for the next iteration of this patch. ;)
>
> https://codereview.appspot.com/576540043/
>