Re: Refer to a staff relatively, not by name

2013-04-07 Thread Urs Liska
Hi Harm, thanks for that suggestion. Unfortunately it doesn't quite do what I need, and I don't really understand it. But fortunately it gives quite a good clue how to ask more concretely. It seems that functions/properties like ly:context-id ly:context-name provide information on the current co

Re: Refer to a staff relatively, not by name

2013-04-02 Thread Urs Liska
Hi harm, Thank you for this. I'll try to understand it as soon as I have access to a non-deficient* computer again. Best Urs * i.e. lilypond-equipped ;-) Thomas Morley schrieb: >2013/4/1 Urs Liska >> >> OK, thanks for the information. >> >> And does anybody know how/if one can retrieve

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Thomas Morley
2013/4/1 Urs Liska > > OK, thanks for the information. > > And does anybody know how/if one can retrieve information about the existing > (staff) context? Some property accible by Scheme? Hi Urs, below a possibility, though, not sure if it is really helpful. I'm using Eluze's example and http:

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Urs Liska
OK, thanks for the information. And does anybody know how/if one can retrieve information about the existing (staff) context? Some property accible by Scheme? Eluze schrieb: >Urs Liska-4 wrote >> Of course I'm also talking about PianoStaves with more than two >staves in >> it. >> BTW does \c

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Eluze
Urs Liska-4 wrote > Of course I'm also talking about PianoStaves with more than two staves in > it. > BTW does \change Staff work only in the context of a PianoStaff (can't > check that ATM)? it should work with any staff-grouper here is an example where the "melody" jumps from one staff to the o

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Urs Liska
Thanks for the idea, but I'm looking for a generic solution tha doesn't rely on given staff names. Best Urs Vaughan McAlley schrieb: >On 31 March 2013 22:36, Urs Liska wrote: >> >> Is it possible to refer to a staff relative to the current staff and >not by its name? >> >> So, is it possibl

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Urs Liska
Eluze schrieb: >Urs Liska-4 wrote >> Is it possible to refer to a staff relative to the current staff and >not >> by its name? >> >> So, is it possible to write something like >> >> \change Staff = "previous/next or "higher/lower" >> >> instead of >> >> \change Staff = "Explicit-name-of-

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Vaughan McAlley
On 31 March 2013 22:36, Urs Liska wrote: > > Is it possible to refer to a staff relative to the current staff and not by > its name? > > So, is it possible to write something like > > \change Staff = "previous/next or "higher/lower" > > instead of > > \change Staff = "Explicit-name-of-staff" > >

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Eluze
Urs Liska-4 wrote > Is it possible to refer to a staff relative to the current staff and not > by its name? > > So, is it possible to write something like > > \change Staff = "previous/next or "higher/lower" > > instead of > > \change Staff = "Explicit-name-of-staff" > > inside a PianoStaff?