Re: Determining location of the staff lines

2010-02-18 Thread David Kastrup
Han-Wen Nienhuys writes: > On Thu, Feb 18, 2010 at 8:54 AM, David Kastrup wrote: > >>> I think it's not yet possible to do this in a Scheme engraver. >>> >>> Han-Wen indicated that it could be done here: >>> >>> http://lists.gnu.org/archive/html/lilypond-devel/2010-01/msg00594.html >>> >>> But I

Re: Determining location of the staff lines

2010-02-18 Thread Han-Wen Nienhuys
On Thu, Feb 18, 2010 at 8:54 AM, David Kastrup wrote: >> I think it's not yet possible to do this in a Scheme engraver. >> >> Han-Wen indicated that it could be done here: >> >> http://lists.gnu.org/archive/html/lilypond-devel/2010-01/msg00594.html >> >> But I don't think it's been implemented ye

Re: Determining location of the staff lines

2010-02-18 Thread David Kastrup
Carl Sorensen writes: > On 2/14/10 9:38 AM, "Eric Knapp" wrote: > >> On Wed, Feb 10, 2010 at 8:58 PM, Carl Sorensen wrote: >> >>> You're making great sense. =A0This is *really* easy, once you understand = >> how >>> LilyPond engravers work. >>> >> >> I think I'm still missing a few pieces. >

Re: Determining location of the staff lines

2010-02-17 Thread Neil Puttock
On 17 February 2010 16:36, Carl Sorensen wrote: > Yes, arbitrary properties can be added to the context.  Context properties > are stored as scheme alists.  So that is a potential workaround that you > could use now -- store the private data in a context property (which makes > it not private, bu

Re: Determining location of the staff lines

2010-02-17 Thread Carl Sorensen
On 2/17/10 10:18 AM, "David Kastrup" wrote: > Carl Sorensen writes: > >> Yes, arbitrary properties can be added to the context. Context >> properties are stored as scheme alists. So that is a potential >> workaround that you could use now -- store the private data in a >> context property

Re: Determining location of the staff lines

2010-02-17 Thread David Kastrup
Carl Sorensen writes: > Yes, arbitrary properties can be added to the context. Context > properties are stored as scheme alists. So that is a potential > workaround that you could use now -- store the private data in a > context property (which makes it not private, but nobody else is using > i

Re: Determining location of the staff lines

2010-02-17 Thread Carl Sorensen
On 2/17/10 9:08 AM, "Eric Knapp" wrote: > On Mon, Feb 15, 2010 at 11:54 AM, Carl Sorensen wrote: >> >> >> I think it's not yet possible to do this in a Scheme engraver. >> >> Han-Wen indicated that it could be done here: >> >> http://lists.gnu.org/archive/html/lilypond-devel/2010-01/msg00

Re: Determining location of the staff lines

2010-02-17 Thread Eric Knapp
On Mon, Feb 15, 2010 at 11:54 AM, Carl Sorensen wrote: > > > I think it's not yet possible to do this in a Scheme engraver. > > Han-Wen indicated that it could be done here: > > http://lists.gnu.org/archive/html/lilypond-devel/2010-01/msg00594.html > > But I don't think it's been implemented yet.

Re: Determining location of the staff lines

2010-02-15 Thread Carl Sorensen
On 2/14/10 9:38 AM, "Eric Knapp" wrote: > On Wed, Feb 10, 2010 at 8:58 PM, Carl Sorensen wrote: > >> You're making great sense. =A0This is *really* easy, once you understand = > how >> LilyPond engravers work. >> > > I think I'm still missing a few pieces. > >> As an example, look at lily

Re: Determining location of the staff lines

2010-02-14 Thread Eric Knapp
On Wed, Feb 10, 2010 at 8:58 PM, Carl Sorensen wrote: > You're making great sense. =A0This is *really* easy, once you understand = how > LilyPond engravers work. > I think I'm still missing a few pieces. > As an example, look at lily/fretboard-engraver.cc. My C++ is really rusty and while I se

Re: Determining location of the staff lines

2010-02-10 Thread Carl Sorensen
On 2/10/10 6:42 PM, "Eric Knapp" wrote: > > With this in mind, my string marker function needs to have all the > pitches and strings for a chord to determine where to draw the > markers. I'm envisioning a function that receives two lists and can > work out all the combinations. What I can't fig

Re: Determining location of the staff lines

2010-02-10 Thread Eric Knapp
On Wed, Feb 3, 2010 at 10:19 PM, Carl Sorensen wrote: > On 2/3/10 8:38 PM, "Carl Sorensen" wrote: > Just a little more detail on this.  Stencils are always placed in relative > mode, i.e. they are placed relative to other stencils.  They have an > X-parent and a Y-parent.  So it's only necessary

Re: Determining location of the staff lines

2010-02-03 Thread Carl Sorensen
On 2/3/10 8:38 PM, "Carl Sorensen" wrote: > On 2/3/10 8:32 PM, "Eric Knapp" wrote: > >> Hi, everyone. >> >> I'm working on developing StaffTab notation for the Chapman Stick. I >> have attached an image that shows something I need to do. In a Scheme >> engraver, I can get the string number that

Re: Determining location of the staff lines

2010-02-03 Thread Carl Sorensen
On 2/3/10 8:32 PM, "Eric Knapp" wrote: > Hi, everyone. > > I'm working on developing StaffTab notation for the Chapman Stick. I > have attached an image that shows something I need to do. In a Scheme > engraver, I can get the string number that was notated. Then I need to > be able to draw th

Determining location of the staff lines

2010-02-03 Thread Eric Knapp
Hi, everyone. I'm working on developing StaffTab notation for the Chapman Stick. I have attached an image that shows something I need to do. In a Scheme engraver, I can get the string number that was notated. Then I need to be able to draw the little rectangle on the staff to indicate which string