Re: Harmonica tablature notation

2009-10-31 Thread Gilles THIBAULT
how to code a tail-recursive version of this. #(define (draw hole nbends) (define bend-glyphs "") (while (> nbends 0) (set! bend-glyphs (markup #:flat bend-glyphs)) (set! nbends (1- nbends))) (markup bend-glyphs #:circle hole)) Perhaps something like that ? : #(define (draw hole nb

Re: Harmonica tablature notation

2009-10-30 Thread Trevor Daniels
bradford powell wrote Sunday, October 25, 2009 2:32 AM I would appreciate any comments. One area in particular that I have questions about is cleaning up the case statement that converts pitch to markup-- specifically in that I am weirdly interspersing lilypond syntax (with the '(markup #:fl

Re: Harmonica tablature notation

2009-10-28 Thread Robin Bannister
bradford powell wrote: When I try that (with something like (draw "4" 1)), I still get: error [...] (#:flat) Sorry. This must be related to the restriction I referenced. It seems that instead of (make-list bends #:flat) you have to say (make-list bends (make-flat-marku

Re: Harmonica tablature notation

2009-10-27 Thread Carl Sorensen
bradford powell gmail.com> writes: > > My first thought was to write an engraver (since that is what guitar > tablature seems to do). Writing an engraver is not as difficult as it seems, as long as you have good models to follow. But it *is* an involved process, and isn't the easiest way for

Re: Harmonica tablature notation

2009-10-27 Thread Carl Sorensen
On 10/27/09 7:11 PM, "bradford powell" wrote: > On Mon, Oct 26, 2009 at 4:12 PM, Robin Bannister wrote: >> #(define* (draw hole #:optional (bends 0))  (markup (make-line-markup >> (make-list bends #:flat )) #:circle hole)) >> >>  The make-list result is not itself a markup; for that, it must

Re: Harmonica tablature notation

2009-10-27 Thread bradford powell
On Mon, Oct 26, 2009 at 4:12 PM, Robin Bannister wrote: > #(define* (draw hole #:optional (bends 0))  (markup (make-line-markup > (make-list bends #:flat )) #:circle hole)) > >  The make-list result is not itself a markup; for that, it must be passed to > something like #:line.    And then the res

Re: Harmonica tablature notation

2009-10-26 Thread Robin Bannister
bradford powell wrote: This doesn't work, any suggestions? #(define* (draw hole #:optional (bends 0)) (markup (make-line-markup (make-list bends #:flat )) #:circle hole)) The make-list result is not itself a markup; for that, it must be passed to something like #:line. And then t

Harmonica tablature notation

2009-10-24 Thread bradford powell
Hello-- I have been trying to write something to produce tablature-like notation for the harmonica. Googling revealed a post from several years ago which involved preprocessing a lilypond file. Not only out-of-date with regard to lilypond syntax, but I also prefer something that would act from wit