Re: New "make-path-stencil" function

2013-10-31 Thread Paul Morris
Carl Sorensen-3 wrote > (map (lambda (x) (cdr x)) (delete (list 'closepath) commandlist)) > > should be able to be replaced by > > (map cdr (delete (list 'closepath) commandlist)) Yes indeed, good point! Thanks, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Ne

Re: New "make-path-stencil" function

2013-10-31 Thread Carl Sorensen
On 10/31/13 8:36 PM, "Paul Morris" wrote: >On Oct 28, 2013, at 11:51 PM, Carl Sorensen wrote: > >> I haven't tried to rewrite your code, but when I first learned Scheme I >> was told that anytime you saw lots of set! expressions in the code, you >> were trying to write procedural code (I.e. c)

Re: New "make-path-stencil" function

2013-10-31 Thread Paul Morris
On Oct 28, 2013, at 11:51 PM, Carl Sorensen wrote: > I haven't tried to rewrite your code, but when I first learned Scheme I > was told that anytime you saw lots of set! expressions in the code, you > were trying to write procedural code (I.e. c) instead of functional code > (Scheme). Your code

Re: New "make-path-stencil" function

2013-10-29 Thread Paul Morris
Carl Sorensen-3 wrote > Cool idea! Thanks! >>- allow "unconnected" paths with multiple segments. (i.e. allow (r)moveto >>in the middle of the path expression) > > Seems to allow simplification of complex stencils. Indeed, it lets you put things where you want them in the first place, both in r

Re: New "make-path-stencil" function

2013-10-29 Thread Paul Morris
Hi David N, David Nalesnik-2 wrote > Thank you for posting this! > > In the process of working on adding niente circles to Ferneyhough hairpins > (Issue 3357), I noticed that these hairpins don't work with line breaks. > (They are simply duplicated.) The routine which draws them uses > make-co

Re: New "make-path-stencil" function

2013-10-29 Thread David Nalesnik
On Tue, Oct 29, 2013 at 1:48 AM, David Kastrup wrote: > > In the process of working on adding niente circles to Ferneyhough > hairpins > > (Issue 3357), I noticed that these hairpins don't work with line breaks. > > (They are simply duplicated.) The routine which draws them uses > > make-conne

Re: New "make-path-stencil" function

2013-10-28 Thread David Kastrup
David Nalesnik writes: > Hi Paul, > > > On Mon, Oct 28, 2013 at 8:26 PM, Paul Morris wrote: > > [...] > > >> >> Eventually I could see a version of this making its way into LilyPond >> (either alongside or as a replacement of "make-connected-path-stencil"). >> > > Thank you for posting this! > >

Re: New "make-path-stencil" function

2013-10-28 Thread Carl Sorensen
On 10/28/13 7:26 PM, "Paul Morris" wrote: >Hi all, > >While working on a snippet for the "make-connected-path-stencil" >function[1] I got to thinking about whether it would be possible to write >a function that would have all of its benefits but none of its >limitations. A function that woul

Re: New "make-path-stencil" function

2013-10-28 Thread David Nalesnik
Hi Paul, On Mon, Oct 28, 2013 at 8:26 PM, Paul Morris wrote: [...] > > Eventually I could see a version of this making its way into LilyPond > (either alongside or as a replacement of "make-connected-path-stencil"). > Thank you for posting this! In the process of working on adding niente ci