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
clef bass c4 d e f >\change Staff = "3" g' a h c >\change Staff = "2" g a h c >\change Staff = "1" g, a h c > \change Staff = "3" g a h c >\change Staff = "4" g a

Re: Refer to a staff relatively, not by name

2013-04-01 Thread Eluze
aff = "4" \relative f { \clef bass c4 d e f \change Staff = "3" g' a h c \change Staff = "2" g a h c \change Staff = "1" g, a h c \change Staff = "3" g a h c \change Staff = "4" g a h c } >> Eluze --

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
e. current, previous and next staff context) I'll give it a try. If it isn't I'll post a feature request on bug-lilypond. 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 chec

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
le to detect that! are you proposing to build such a command or would you like to add a feature request?! Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Refer-to-a-staff-relatively-not-by-name-tp143705p143717.html Sent from the User mailing list archive at Nabble.

Refer to a staff relatively, not by name

2013-03-31 Thread Urs Liska
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? I'd be interested in creating a generic