Re: Expert question on named contexts

2008-08-13 Thread Trevor Daniels
Mats Bengtsson wrote Saturday, August 09, 2008 11:37 AM Han-Wen Nienhuys wrote: Perhaps we should have a nice scheme hack that will print out the context hierarchy at any point. That would be great! Does this get close to helping? A little more scheming to check for the top context

Re: Expert question on named contexts

2008-08-12 Thread Neil Puttock
2008/8/10 Trevor Daniels [EMAIL PROTECTED]: There may be better ways, but this works, and is adequate for experimentation: Thanks for this, Trevor; it's easier to see what's going on than using \displayMusic. I noticed something strange going on when using \addlyrics; perhaps it should be

Re: Expert question on named contexts

2008-08-10 Thread Mats Bengtsson
Trevor Daniels wrote: My understanding is that the name given to a context is stored internally as the context's id. You can display this with the ly:context-id function. In the example above both contexts have id set to myvoice, as least that's what this function returns. I take the

Re: Expert question on named contexts

2008-08-10 Thread Mats Bengtsson
Mats Bengtsson wrote: Trevor Daniels wrote: My understanding is that the name given to a context is stored internally as the context's id. You can display this with the ly:context-id function. In the example above both contexts have id set to myvoice, as least that's what this function

Re: Expert question on named contexts

2008-08-10 Thread Trevor Daniels
Mats Bengtsson asked Trevor Daniels wrote: My understanding is that the name given to a context is stored internally as the context's id. You can display this with the ly:context-id function. In the example above both contexts have id set to myvoice, as least that's what this function

Re: Expert question on named contexts

2008-08-09 Thread Mats Bengtsson
Han-Wen Nienhuys wrote: On Wed, Aug 6, 2008 at 9:11 AM, Mats Bengtsson [EMAIL PROTECTED] wrote: \relative c' \new Staff \new Voice = myvoice { c d e f } \new Staff \context Voice = myvoice { g f e d } both contexts get the same name. If you want to refer to either of them, you

Re: Expert question on named contexts

2008-08-09 Thread Patrick Horgan
Han-Wen Nienhuys wrote: Perhaps we should have a nice scheme hack that will print out the context hierarchy at any point. Speaking of nice scheme hacks. I had come across a way to have the output pdf show all the measurements and where they came from. I guess I'm just not creative enough

Re: Expert question on named contexts

2008-08-09 Thread Neil Puttock
Hi Patrick, 2008/8/9 Patrick Horgan [EMAIL PROTECTED]: Speaking of nice scheme hacks. I had come across a way to have the output pdf show all the measurements and where they came from. I guess I'm just not creative enough in my guess about what words to search for, but I can't find it in

Re: Expert question on named contexts

2008-08-08 Thread Trevor Daniels
Valentin Villenave wrote Mats Bengtsson wrote Can anybody tell me exactly what happens with the context names in the following example. \relative c' \new Staff \new Voice = myvoice { c d e f } \new Staff \context Voice = myvoice { g f e d } Is the Voice context in the lower stave given

Re: Expert question on named contexts

2008-08-08 Thread Han-Wen Nienhuys
On Wed, Aug 6, 2008 at 9:11 AM, Mats Bengtsson [EMAIL PROTECTED] wrote: \relative c' \new Staff \new Voice = myvoice { c d e f } \new Staff \context Voice = myvoice { g f e d } both contexts get the same name. If you want to refer to either of them, you need to name the staves too,

Re: Expert question on named contexts

2008-08-07 Thread Valentin Villenave
2008/8/6 Mats Bengtsson [EMAIL PROTECTED]: Since I have only used LilyPond for 11 years, I have some remaining questions on how it works. Greetings Mats, Hehehe... As soon as I can find a couple minutes to work on the LilyPond Report again, I guess this will make the Quote of the Week :-)

Expert question on named contexts

2008-08-06 Thread Mats Bengtsson
Since I have only used LilyPond for 11 years, I have some remaining questions on how it works. Can anybody tell me exactly what happens with the context names in the following example. \relative c' \new Staff \new Voice = myvoice { c d e f } \new Staff \context Voice = myvoice { g f e d }