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.shortInstrumentName = #"s.Sax " \global \clef treble \key c \minor % notes } Then, the score is set up as so: \score { << \new StaffGroup = "horns" << \new Staff = "Soprano" \Soprano % more staves... >> >> } I saw this work in the Jazz Combo example, but it's not working for me for some reason. Any help is greatly appreciated, as always! -- View this message in context: http://www.nabble.com/Repositioning-%5Ctempo%2C-and-one-other-ques tion-tf2498893.html#a6966138 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ 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 -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Repositioning \tempo, and one other question
Hi Try using \set Staff.instrument = "Soprano Sax" \set Staff.instr = "s.Sax" This works in ver 2.8.6 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.shortInstrumentName = #"s.Sax " > \global > \clef treble > \key c \minor > % notes > } > > Then, the score is set up as so: > > \score { > << > \new StaffGroup = "horns" << > \new Staff = "Soprano" \Soprano > % more staves... > >> > >> > } > > I saw this work in the Jazz Combo example, but it's not working for me for > some reason. Any help is greatly appreciated, as always! > -- > View this message in context: > http://www.nabble.com/Repositioning-%5Ctempo%2C-and-one-other-ques tion-tf2498893.html#a6966138 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ 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: Repositioning \tempo, and one other question
Which version of LilyPond do you use? The property instrumentName has been renamed in version 2.9, so if you use version 2.8, you should read the documentation for that version. (In general, though, I recommend to read the manual for version 2.9 since it includes many new clarifications, but here you have hit upon one of the few aspects where the new manual isn't relevant if you have an older version). Please always tell what LilyPond version you use, to avoid the risk of getting irrelevant answers. /Mats OnionRingOfDoom wrote: 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.shortInstrumentName = #"s.Sax " \global \clef treble \key c \minor % notes } Then, the score is set up as so: \score { << \new StaffGroup = "horns" << \new Staff = "Soprano" \Soprano % more staves... >> >> } I saw this work in the Jazz Combo example, but it's not working for me for some reason. Any help is greatly appreciated, as always! -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repositioning \tempo, and one other question
OnionRingOfDoom wrote: 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. First, here's the fish: \once \override Score.MetronomeMark #'X-offset = #-2 right before your first tempo mark to move it 2 spaces to the left. To move all of them the same way, omit \once. Now, here's an example how to fish for this solution yourself: ;) Go to the Documentation page for your version of Lilypond; Click on "User manual"; Scroll down, click on "Appendix H LilyPond index" Find "\tempo", and follow the link to "Metronome marks" Notice the \override example at the bottom: \override Score.MetronomeMark #'padding = #2.5 To see what other settings (besides padding) are available, Click on "Program reference: MetronomeMark"; Notice the "Standard settings" listed; Click on this-interface and that-interface at the bottom to see more available settings; If you didn't know whether to use Score.MetronomeMark (rather than Staff.MetronomeMark or whatever), you could click on: "MetronomeMark objects are created by: Metronome_mark_engraver" and see at the bottom of that page: "Metronome_mark_engraver is part of contexts: Score" which would tell you what to use for Context in Context.MetronomeMark. If the context is Voice, then you can usually omit it, e.g.: \override TextScript ... instead of \override Voice.TextScript Hope that helps! Marcus P.S. I don't know about your second question, concerning instrument names. I would try removing '= "Soprano"' and see if that helps, but that's just a guess. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
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.shortInstrumentName = #"s.Sax " \global \clef treble \key c \minor % notes } Then, the score is set up as so: \score { << \new StaffGroup = "horns" << \new Staff = "Soprano" \Soprano % more staves... >> >> } I saw this work in the Jazz Combo example, but it's not working for me for some reason. Any help is greatly appreciated, as always! -- View this message in context: http://www.nabble.com/Repositioning-%5Ctempo%2C-and-one-other-question-tf2498893.html#a6966138 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user