Re: Re-aligning instrument names
Thanks for this response. I am ashamed to say that I spent several hours trying to figure this out, but somehow I never got the syntax quite right. Perhaps I'm getting too old for this... David On Fri, 2018-04-06 at 16:09 +0200, David Kastrup wrote: > David Sumbler writes: > > > > > I have spent a long time trying to find the answer to this, but > > without > > success. > > > > I have a piece with strings divided often into several parts; > > sometimes > > these may not be even divisions, for instance where a four-part > > section > > has instruments 3 and 4 playing the same music. I therefore need > > to > > show which individual instruments are to play each line. > > > > \version "2.19.81" > > > > \new StaffGroup \with { > > instrumentName = "Violins I" } > > << > > \new Staff \with { > > instrumentName = "1."} > > { c' } > > \new Staff \with { > > instrumentName = "2."} > > { c' } > > > > > > > > > > > > > In above minimal example, how do I get the Staff.instrumentName-s > > to be > > right-aligned to the system bracket, rather than centre-aligned as > > the > > StaffGroup name is? > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Re-aligning instrument names
David Sumbler writes: > I have spent a long time trying to find the answer to this, but without > success. > > I have a piece with strings divided often into several parts; sometimes > these may not be even divisions, for instance where a four-part section > has instruments 3 and 4 playing the same music. I therefore need to > show which individual instruments are to play each line. > > \version "2.19.81" > > \new StaffGroup \with { > instrumentName = "Violins I" } > << > \new Staff \with { > instrumentName = "1."} > { c' } > \new Staff \with { > instrumentName = "2."} > { c' } >>> > > In above minimal example, how do I get the Staff.instrumentName-s to be > right-aligned to the system bracket, rather than centre-aligned as the > StaffGroup name is? \version "2.19.81" \new StaffGroup \with { instrumentName = "Violins I" } << \new Staff \with { \override InstrumentName.self-alignment-X = #RIGHT instrumentName = "1."} { c' } \new Staff \with { \override InstrumentName.self-alignment-X = #RIGHT instrumentName = "2."} { c' } >> -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re-aligning instrument names
I have spent a long time trying to find the answer to this, but without success. I have a piece with strings divided often into several parts; sometimes these may not be even divisions, for instance where a four-part section has instruments 3 and 4 playing the same music. I therefore need to show which individual instruments are to play each line. \version "2.19.81" \new StaffGroup \with { instrumentName = "Violins I" } << \new Staff \with { instrumentName = "1."} { c' } \new Staff \with { instrumentName = "2."} { c' } >> In above minimal example, how do I get the Staff.instrumentName-s to be right-aligned to the system bracket, rather than centre-aligned as the StaffGroup name is? David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names - another try
2007/8/21, Michael Käppler <[EMAIL PROTECTED]>: > Maybe you could enhance your example by something like this: > % To avoid inequal spacing if some systems start with a brace and others > don't, > % make all systems have braces and then optically remove the unwanted ones. That is a good idea, but it doesn't always work, since in orchestral scores, brackets are often comnibed with curly braces (besides, a curly brace on three staves doesn't have the same thickness than a curly brace on two staves, etc.)... so I just focused on the instrument names when rewriting this snippet. http://lsr.dsi.unimi.it/LSR/Item?u=1&id=269 IMHO, the point is: it would be great if instrument names (or ShortInstrumentNames) could be aligned to the left of the page, regardless of what's coming on the right. I don't know if this is possible (I somehow doubt it). But the discussion isn't over... Regards, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names - another try
Hi Valentin, Yes it does: you just have to give enough amount of hspace so the instrument names can fit in. Look at the following snippet (maybe I'll add it to the LSR, unless you have some improvements to propose). Many thanks first. It really works. Michael Maybe you could enhance your example by something like this: \version "2.11.30" % To avoid inequal spacing if some systems start with a brace and others don't, % make all systems have braces and then optically remove the unwanted ones. Key = { \key bes \major } violine = { \set Staff.instrumentName = \markup {\combine \hspace #15.0 \large "Violino I, II" } \clef treble << \Key \time 4/4 \relative c'' { c4 d b c d2 c } >> } sopran = { \set Staff.instrumentName = \markup {\combine \hspace #15.0 "Soprano" } \clef soprano << \Key \relative c'' { d2 g a4 f fis g } >> } bc = { \set Staff.instrumentName = \markup {\combine \hspace #15.0 "Organo" } \clef bass << \Key \override StaffGroup.SystemStartBracket #'transparent = ##t % Brace becomes invisible \relative c { c2 d e1 } >> } \score { << \new StaffGroup << \new Staff \violine \new Staff \sopran >> \new StaffGroup << \new Staff \bc >> >> \layout { indent = 2.5\cm \context { \StaffGroup \override SystemStartBracket #'collapse-height = #0.1 % Make braces appear even on a single staff } } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names - another try
2007/8/21, Michael Käppler <[EMAIL PROTECTED]>: > It seems that Thies' workaround which he posted in Oct 2006 > doesn't work anymore. Yes it does: you just have to give enough amount of hspace so the instrument names can fit in. Look at the following snippet (maybe I'll add it to the LSR, unless you have some improvements to propose). Regards, Valentin Key = { \key b \major } violine = { \set Staff.instrumentName = \markup {\combine \hspace #20.0 "This is a long name" } \clef treble << \Key \time 4/4 \relative c'' { c4 d b c d2 c } >> } sopran = { \set Staff.instrumentName = \markup {\combine \hspace #20.0 "Shortname" } \clef soprano << \Key \relative c'' { d2 g a4 f fis g } >> } bc = { \set Staff.instrumentName = \markup {\combine \hspace #20.0 "Name" } \clef bass << \Key \relative c { c2 d e1 } >> } \score { << \new StaffGroup << \new Staff = "Violine" \violine >> \new Voice = "Sopran" \sopran \new Staff = "b.c." \bc >> \layout { indent = 5 \cm} } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Aligning instrument names - another try
Hi all, I'll give it another try - I searched a lot on how to left align several instrument names(different staves), but didn't find even a workaround on the list. It seems that Thies' workaround which he posted in Oct 2006 doesn't work anymore. Regards, Michael His post: Here's what I do (I hope I'll remember correctly as I can't find a file containing it right now): \set Staff.instrument = \markup { \combine \hspace #5.0 "My Instrument" } My example: \version "2.11.30" \header { piece = \markup {\fontsize #3 {"1. Test"} } } Key = { \key b \major } violine = { \set Staff.instrumentName = \markup {\combine \hspace #5.0 "Violino I, II" } \clef treble << \Key \time 4/4 \relative c'' { c4 d b c d2 c } >> } sopran = { \set Staff.instrumentName = \markup {\combine \hspace #5.0 "Soprano" } \clef soprano << \Key \relative c'' { d2 g a4 f fis g } >> } bc = { \set Staff.instrumentName = \markup {\combine \hspace #5.0 "Organo" } \clef bass << \Key \relative c { c2 d e1 } >> } \score { << \new StaffGroup << \new Staff = "Violine" \violine >> \new Voice = "Sopran" \sopran \new Staff = "b.c." \bc >> \layout { indent = 2.5\cm } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names
Trevor Daniels wrote: Incidentally there are some inconsistencies in this section of the 2.9 manual - the text uses the old form (Staff.instrument) and the examples the new (Staff.instrumentName). Thanks for the report, but in the future, please send these reports as separate emails. It was only pure luck that I noticed this sentence in the middle of your email. - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Aligning instrument names
Many thanks, Thies Your suggestion works perfectly for left-aligning instrument names, and it is certainly simpler than my best effort! With hspace 1 or 2 larger than the longest name and 1 larger again for staves which are outside any bracket or brace the left alignment (for the default font at least) is almost perfect. Trevor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:lilypond-user-bounces+t.daniels=treda.co.u > [EMAIL PROTECTED] Behalf Of > Thies Albrecht > Sent: 24 October 2006 22:34 > To: lilypond-user@gnu.org > Subject: Re: Aligning instrument names > > > Hi Trevor! > > > This is somewhat arcane - anyone found a better way? > > > > \set Staff.instrument=\markup { > > \override #'(baseline-skip . 0) > > \left-align { \column { \transparent > A Solo } } > > } > Here's what I do (I hope I'll remember correctly > as I can't find a file containing it right now): > >\set Staff.instrument = \markup { > \combine > \hspace #5.0 > "My Instrument" >} > > You can easily adjust the space by changing 5.0. > > Kind regards, > Thies Albrecht > -- > Der GMX SmartSurfer hilft bis zu 70% Ihrer > Onlinekosten zu sparen! > Ideal für Modem und ISDN: > http://www.gmx.net/de/go/smartsurfer > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names
Hi Trevor! > This is somewhat arcane - anyone found a better way? > > \set Staff.instrument=\markup { > \override #'(baseline-skip . 0) > \left-align { \column { \transparent A Solo } } > } Here's what I do (I hope I'll remember correctly as I can't find a file containing it right now): \set Staff.instrument = \markup { \combine \hspace #5.0 "My Instrument" } You can easily adjust the space by changing 5.0. Kind regards, Thies Albrecht -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Aligning instrument names
Hi Mats Yes, I've read the 2.9 manual, but as I prefer to stick with the stable releases I shall wait for 2.10 before I try any of the new features. Incidentally there are some inconsistencies in this section of the 2.9 manual - the text uses the old form (Staff.instrument) and the examples the new (Staff.instrumentName). But as far as I can see the 2.9 manual does not suggest any method of left-aligning the instrument names, which is common in orchestral scores. Is there a better way in 2.9 to do this? The way of achieving centre-aligning, which is perhaps the most popular alignment, seems to be unchanged in 2.9, although I see the width of the brace still causes a need for some manual adjustment. Trevor > -Original Message- > From: Mats Bengtsson [mailto:[EMAIL PROTECTED] > Sent: 24 October 2006 13:01 > To: Trevor Daniels > Cc: lilypond-user@gnu.org > Subject: Re: Repositioning \tempo, and one other question > > > I hope you have read the section on Instrument Names in the manual for > version 2.9. > >/Mats > > Trevor Daniels wrote: > > However, you may find the alignment of instrument names across > a range of > > staves is not what you would like. As I understand it this is > because the > > instrument name is positioned during individual staff processing and is > > right-aligned to the start of the staff. It is not possible to > take other > > staves into account. (Perhaps someone more knowledgeable could > correct me if > > any of this is wrong). This is OK if all the staves are within > a group or > > all without one but if you use several staff groups or have > staves outside a > > group the names of instruments within the group appear to be > right-aligned > > to the group bracket and so are slightly offset from the names > attached to > > single staves. There are various work-arounds for this, and also for > > centre-aligning names or left-aligning names. The ones I have used are: > > > > Centre-aligning instrument names: > > > > \set Staff.instrument = \markup { \hcenter-in #5.0 Solo } > > > > This will centre "Solo" in a box of length 5.0 which is itself > offset from > > the staff end (in this case not the brace, it seems). All the > instrument > > names can then be centre-aligned by specifying the same box > length for all > > of them. However, it seems necessary for the specified box > length to be up > > to twice as long as the longest name for the alignment to be > correct. You > > may need to move the first system over to the right to make enough room. > > Set indent=3.0\cm or whatever in layout to do this. > > > > Left-aligning instrument names: > > > > This is somewhat arcane - anyone found a better way? > > > > \set Staff.instrument=\markup { > > \override #'(baseline-skip . 0) > > \left-align { \column { \transparent A Solo } } > > } > > This works by using a fixed length string ("" in the > example above) > > to establish a left-hand edge at a fixed distance from the aligned > > right-hand edge. The real string is then left-aligned with > this by using > > \left-align and \column. The fixed-length string is made > transparent, and > > the vertical distance between the two elements of the column is > set to zero > > with the override. The length of the fixed length string is chosen to be > > slightly longer than the longest instrument name. > > Because the left-aligned points of a single staff, a choirstaff > and a piano > > staff are at slightly different distances from the left margin > the 'fixed' > > string needs to be slightly longer by about a "a" character (using the > > default font) for any single staves. > > > > HTH > > > > Trevor > > > > > >> -Original Message- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] > Behalf Of > >> OnionRingOfDoom > >> Sent: 24 October 2006 03:36 > >> To: lilypond-user@gnu.org > >> Subject: Repositioning \tempo, and one other question > >> > >> > >> > >> Like the subject says, is there any way to reposition the > \tempo mark? I'd > >> love to be able to move it a bit to the left. > >> > >> Also, my instrument names seem to not be displayed propperly > in my score. > >> The names are declared as follows: > >> > >> Soprano = \relative c'' { > >>\set Staff.instrumentName = #"Soprano Sax " > >>\set Staff.sh