Re: Text beside staff
Thanks all, instrumentName seems to be the best solution! -Ahanu On Sun, Jan 3, 2021 at 5:00 PM Ahanu Banerjee wrote: > Hi, > > I'm typesetting a book of études. I am currently putting the number of the > etude (1-2 digits) in the header as a title, but I would like to put it to > the left of the first staff, in the indented white space. It should be > center-aligned between the left margin and the first staff, and vertically > centered about the staff. > > Can someone provide a tidy way to do this? > > Thank you!! > > \version "2.20.0" > \header { > title = "1" > subtitle = "A female deer" > } > > {\repeat unfold 16 c' \break > \repeat unfold 20 c'} >
Re: Text beside staff
I think the best way to do this is to use the instrument name: \score { \new PianoStaff \with { instrumentName = \markup \huge "No. 4" } << ... >> } -- Knute Snortum On Sun, Jan 3, 2021 at 2:01 PM Ahanu Banerjee wrote: > > Hi, > > I'm typesetting a book of études. I am currently putting the number of the > etude (1-2 digits) in the header as a title, but I would like to put it to > the left of the first staff, in the indented white space. It should be > center-aligned between the left margin and the first staff, and vertically > centered about the staff. > > Can someone provide a tidy way to do this? > > Thank you!! > > \version "2.20.0" > \header { > title = "1" > subtitle = "A female deer" > } > > {\repeat unfold 16 c' \break > \repeat unfold 20 c'}
Text beside staff
Hi, I'm typesetting a book of études. I am currently putting the number of the etude (1-2 digits) in the header as a title, but I would like to put it to the left of the first staff, in the indented white space. It should be center-aligned between the left margin and the first staff, and vertically centered about the staff. Can someone provide a tidy way to do this? Thank you!! \version "2.20.0" \header { title = "1" subtitle = "A female deer" } {\repeat unfold 16 c' \break \repeat unfold 20 c'}
Re: text in staff and markup text font=addlyric font
Jay Hamilton wrote: not exactly sure what that means in this case There is an example at http://lsr.dsi.unimi.it/LSR/Item?id=258 This sidesteps the question of horizontal space by setting ragged-right. Do you already have enough horizontal space for the text? Or do you expect Lilypond to make room for it? Cheers, Robin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text in staff and markup text font=addlyric font
Ok, not exactly sure what that means in this case but looking through the manual I'm not able to understand the numeric values in terms of what they do/mean. So where's a good explanation? Also it sounds like (I hope I'm wrong) that you have to use the \override etc and extra-offset for each symbol/word and I really need it globally. And then is there somewhere that gives the font equivalents for #(set-global-staff-size 25) or any other for an example how to again globally alter the font size so that it matches the lyric font size? Since the global staff size seems to determine the lyric font size. Again, if I'm mislead please set me straight maybe I'm looking at this the wrong way. Thanks Jay On Sun, Mar 7, 2010 at 3:06 PM, James Bailey derhindem...@googlemail.comwrote: As I understand it, these kinds of things only work with extra-offset. On 07.03.2010, at 22:41, Jay Hamilton wrote: version 2.12.2 Subject: text in staff I want to place test inside the staff lines from the manual it looks like I should use some form of \once \override TextScript #'script-priority = # %(some number here) but it's not giving me a result that I can understand/use. Should I try using some sort of 'padding' verbage or what? And I need to have markup {Text} be the same size as \addlyric. But I don't understand how to figure out what the lyric size is I do have #(set-global-staff-size 25) Where do I look to figure this out Thanks Jay -- Jay Hamilton Sound and Silence www.soundand.com 206-328-7694 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- Jay Hamilton Sound and Silence www.soundand.com 206-328-7694 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
text in staff and markup text font=addlyric font
version 2.12.2 Subject: text in staff I want to place test inside the staff lines from the manual it looks like I should use some form of \once \override TextScript #'script-priority = # %(some number here) but it's not giving me a result that I can understand/use. Should I try using some sort of 'padding' verbage or what? And I need to have markup {Text} be the same size as \addlyric. But I don't understand how to figure out what the lyric size is I do have #(set-global-staff-size 25) Where do I look to figure this out Thanks Jay -- Jay Hamilton Sound and Silence www.soundand.com 206-328-7694 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text in staff and markup text font=addlyric font
As I understand it, these kinds of things only work with extra-offset. On 07.03.2010, at 22:41, Jay Hamilton wrote: version 2.12.2 Subject: text in staff I want to place test inside the staff lines from the manual it looks like I should use some form of \once \override TextScript #'script-priority = # %(some number here) but it's not giving me a result that I can understand/use. Should I try using some sort of 'padding' verbage or what? And I need to have markup {Text} be the same size as \addlyric. But I don't understand how to figure out what the lyric size is I do have #(set-global-staff-size 25) Where do I look to figure this out Thanks Jay -- Jay Hamilton Sound and Silence www.soundand.com 206-328-7694 ___ 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: text below staff ouch!
but now why can't I use word wrap and justify? I don't usually read this list on the Web, I just read the mail that the list sends me -- and at this point I have lost track of your original post to the list. My mail client is plain-text only (Latin-1). Can you post a message containing a \markup command *without* word-wrap justify which gets the character-order right, and then, secondly, the \markup command *with* word-wrap justify, so that I can look at it? You don't have to use the actual characters in the two \markup examples. You could just use ascii characters ABC...; it would still show me the structure of the command you're using. Thanks for your patience... -- Tom ** On Mon, 22 Aug 2005, Aaron Mehl wrote: --- [EMAIL PROTECTED] wrote: Aaron Mehl wrote: but actually for each word the letters are in the correct order but the words themselves go left to right instead of right to left. With automatic text reversal, I would expect \markup { ONE TWO THREE } to produce ENO OWT EERHT exactly which is what it does once I removed the justification and wordwrapping But, with a pair of quote-marks added, I would expect \markup { ONE TWO THREE } to produce EERHT OWT ENO bravo! In the first case, \markup handles 3 arguments, one after the other. In the second case, \markup handles one single argument. but now why can't I use word wrap and justify? maybe I need some escape charactor? Thanks so far, Aaron -- Tom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text below staff ouch!
Did you try \justify-string or \wordwrap-string? See the example called markup-word-wrap.ly in the Regression Test document for version 2.7 to see what the different word wrapping commands do (though not for Hebrew). /Mats Aaron Mehl wrote: --- [EMAIL PROTECTED] wrote: Aaron Mehl wrote: but actually for each word the letters are in the correct order but the words themselves go left to right instead of right to left. With automatic text reversal, I would expect \markup { ONE TWO THREE } to produce ENO OWT EERHT exactly which is what it does once I removed the justification and wordwrapping But, with a pair of quote-marks added, I would expect \markup { ONE TWO THREE } to produce EERHT OWT ENO bravo! In the first case, \markup handles 3 arguments, one after the other. In the second case, \markup handles one single argument. but now why can't I use word wrap and justify? maybe I need some escape charactor? Thanks so far, Aaron -- Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ 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: text below staff ouch!
Since you are the only one in the discussion who knows Hebrew, maybe you can enlighten the rest of us what happens and what you would like to happen, for example using some examples similar to examples that Tom sent earlier. /Mats Aaron Mehl wrote: Did you try \justify-string or \wordwrap-string? See the example called markup-word-wrap.ly in the Regression Test document for version 2.7 to see what the different word wrapping commands do (though not for Hebrew). Thats where I got the examples I used from So far they don't work with the hebrew. Aaron Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- = 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: text below staff ouch!
Did you try \justify-string or \wordwrap-string? See the example called markup-word-wrap.ly in the Regression Test document for version 2.7 to see what the different word wrapping commands do (though not for Hebrew). Thats where I got the examples I used from So far they don't work with the hebrew. Aaron Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text below staff ouch!
but now why can't I use word wrap and justify? I don't usually read this list on the Web, I just read the mail that the list sends me -- and at this point I have lost track of your original post to the list. fine I use mutt and use yahoo only for lilypond because my private address doesn't work for this list. I can send you the example to your email if you promise to reply back to the group so that the answer appears in the archives. My mail client is plain-text only (Latin-1). Can you post a message containing a \markup command *without* word-wrap justify which gets the character-order right, and then, secondly, the \markup command *with* word-wrap justify, so that I can look at it? You don't have to use the actual characters in the two \markup examples. You could just use ascii characters ABC...; it would still show me the structure of the command you're using. Thanks for your patience... -- Tom Thank you Aaron ** On Mon, 22 Aug 2005, Aaron Mehl wrote: --- [EMAIL PROTECTED] wrote: Aaron Mehl wrote: but actually for each word the letters are in the correct order but the words themselves go left to right instead of right to left. With automatic text reversal, I would expect \markup { ONE TWO THREE } to produce ENO OWT EERHT exactly which is what it does once I removed the justification and wordwrapping But, with a pair of quote-marks added, I would expect \markup { ONE TWO THREE } to produce EERHT OWT ENO bravo! In the first case, \markup handles 3 arguments, one after the other. In the second case, \markup handles one single argument. but now why can't I use word wrap and justify? maybe I need some escape charactor? Thanks so far, Aaron -- Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text below staff ouch!
Well I have to admit I only tried two of the examples \markup { this is normal text \override #'(linewidth . 60) \wordwrap { ABC cde } works and gives me edc CBA but for a long lines it keeps going off the page (no word wrap?)I gather the override linewidth should be set to something different for this to work?... } \markup { this is normal text \override #'(linewidth . 40) \justify { ABC def ABC def ABC def } if I make separate lines they come out as a mess one on top of the other. } \markup { \override #'(linewidth . 40) { \wordwrap-string # ABC def Here the word wrap does work but the word order for hebrew comes out: CBA fed (left to right word order right to left letter order) \justify-string # ABC def ABC def ABC def } Here the justify works but on the english side not the hebrew. The hebrew word order is also wrong: CBA fed CBA fed CBA fed (left to right word order right to left letter order) I am sorry I didn't test this better previously. So I can get the correct word order it is just the justify and wordwrap that are acting flakey. Thanks Aaron Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text below staff ouch!
Mats Bengtsson wrote: Since you are the only one in the discussion who knows Hebrew, maybe you can enlighten the rest of us what happens and what you would like to happen, for example using some examples similar to examples that Tom sent earlier. the problem seems to be that \markup commands are hard-coded to LtoR text composition. Individual words are handled by Pango, so these are done correctly. -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text below staff ouch!
Well, from your four examples, and from Han-Wen's remarks, it looks like you will have to give up on using wordwrap: I think you will have to produce each line of the text individually, given LilyPond's current limitations. If you define the lines in variables, La = this string is the first line of text Lb = this string is the second line of text Lc = this string is the third line of text and so on, guessing as well as you can how to break up the text into lines, then you can write \markup { La } \markup { Lb } \markup { Lc } or instead, the following might work: \markup { \column { La Lb Lc } } I haven't been using LilyPond for very long, but I think you could write something like \markup { \override #'(baseline-skip . 1.2) \column { La Lb Lc } } or maybe \markup { \column { \override #'(baseline-skip . 1.2) La Lb Lc } } to control the vertical spacing of the lines. But at least one of those two possibilities is not correct syntax. I'm pressed for time tonight, so I can't try these things out at the moment. As to whether you could throw in a \justify before or inside the \column {...} construct, I don't know, but it would be worth a try. -- Tom * On Wed, 24 Aug 2005, Aaron Mehl wrote: Well I have to admit I only tried two of the examples \markup { this is normal text \override #'(linewidth . 60) \wordwrap { ABC cde } works and gives me edc CBA but for a long lines it keeps going off the page (no word wrap?)I gather the override linewidth should be set to something different for this to work?... } \markup { this is normal text \override #'(linewidth . 40) \justify { ABC def ABC def ABC def } if I make separate lines they come out as a mess one on top of the other. } \markup { \override #'(linewidth . 40) { \wordwrap-string # ABC def Here the word wrap does work but the word order for hebrew comes out: CBA fed (left to right word order right to left letter order) \justify-string # ABC def ABC def ABC def } Here the justify works but on the english side not the hebrew. The hebrew word order is also wrong: CBA fed CBA fed CBA fed (left to right word order right to left letter order) I am sorry I didn't test this better previously. So I can get the correct word order it is just the justify and wordwrap that are acting flakey. Thanks Aaron ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text in staff
If you want to move something vertically, it's almost always better to use the padding property instead of extra-offset. The reason is that if you set padding, then LilyPond will realize that you have moved something and migh for example add some extra spacing between the staves to avoid that your moved text collides with the stave above. If you use extra-offset, then LilyPond will not adjust the layout of anything else. See the section 9.2.1 Common tweaks for examples of how to set the padding property. /Mats Kris Shaffer wrote: The markup command is the correct way to do it, but instead of \lower, use the extra-offset property. For example, \once \override TextScript #'extra-offset = #'(0 . -10) c4^markup will create a quarter note C, place the word markup above the staff, and the extra-offset will shift it 0 staff spaces horizontally and 10 staff spaces down. -- = 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
text below staff ouch!
Hi again, I got the markup of text below the staff to work, but the hebrew is backwards, ouch. Is there a specific command I must type to get the text to bidi correctly? Thanks Aaron If an example is needed I can send a png, I am not sure how large attachments the list permits so I am leaving it off this email. Thanks Aaron __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text in staff
thanks everybody, the #'extra-offset command worked fine for me. stephen Am 22.08.2005 um 09:50 schrieb Mats Bengtsson: If you want to move something vertically, it's almost always better to use the padding property instead of extra-offset. The reason is that if you set padding, then LilyPond will realize that you have moved something and migh for example add some extra spacing between the staves to avoid that your moved text collides with the stave above. If you use extra-offset, then LilyPond will not adjust the layout of anything else. See the section 9.2.1 Common tweaks for examples of how to set the padding property. /Mats Kris Shaffer wrote: The markup command is the correct way to do it, but instead of \lower, use the extra-offset property. For example, \once \override TextScript #'extra-offset = #'(0 . -10) c4^markup will create a quarter note C, place the word markup above the staff, and the extra-offset will shift it 0 staff spaces horizontally and 10 staff spaces down. -- = 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: text below staff ouch!
Aaron Mehl wrote: Hi again, I got the markup of text below the staff to work, but the hebrew is backwards, ouch. Is there a specific command I must type to get the text to bidi correctly? Hi, the text layout is handled by Pango, so I guess it's a matter of passing the right options to Pango. I can look into it as a sponsored feature, if you like. CAn you explain the problem more precisely: does Lily's hebrew go LtoR or RtoL, and should the bidi be switchable, or is there a sane default that we can use? -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text below staff ouch!
the text layout is handled by Pango, so I guess it's a matter of passing the right options to Pango. I can look into it as a sponsored feature, if you like. yes how much would it cost? Aarn but actually for each word the letters are in the correct order but the words themselves go left to right instead of right to left. I am attaching a png if it will help (if you can read hebrew :) ) Aaron CAn you explain the problem more precisely: does Lily's hebrew go LtoR or RtoL, and should the bidi be switchable, or is there a sane default that we can use? -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text below staff ouch!
Aaron Mehl wrote: but actually for each word the letters are in the correct order but the words themselves go left to right instead of right to left. With automatic text reversal, I would expect \markup { ONE TWO THREE } to produce ENO OWT EERHT But, with a pair of quote-marks added, I would expect \markup { ONE TWO THREE } to produce EERHT OWT ENO In the first case, \markup handles 3 arguments, one after the other. In the second case, \markup handles one single argument. -- Tom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
text in staff
hi everybody, getting quite fluent in lilypond by now. it's even more fun using it, if you get to know the app better. one thing i'm still struggling with: how to put text in the staff? the picture below has been done with photoshop (not the most elegant way :) ) i tried the \markup command \lower put that didn't help.attachment: text_in_staff.jpg any suggestions? thanks, stephen___ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text in staff
[EMAIL PROTECTED] wrote: hi everybody, getting quite fluent in lilypond by now. it's even more fun using it, if you get to know the app better. one thing i'm still struggling with: how to put text in the staff? the picture below has been done with photoshop (not the most elegant way :) ) i tried the \markup command \lower put that didn't help. [ picture deleted ] You can change the position of the text by doing this: \override TextScript #'extra-offset = #'(0 . -2) You can play with the values, but basically, the first value is the x and the second value is y. After you're done, though, don't forget to: \revert TextScript #'(extra-offset) unless you modified the override with \once. Doug ___ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text in staff
The markup command is the correct way to do it, but instead of \lower, use the extra-offset property. For example, \once \override TextScript #'extra-offset = #'(0 . -10) c4^markup will create a quarter note C, place the word markup above the staff, and the extra-offset will shift it 0 staff spaces horizontally and 10 staff spaces down. -- Kris Shaffer graduate student in music theory, Yale University www.shaffermusic.com On Sun, 21 Aug 2005 10:14:54 -0400, [EMAIL PROTECTED] wrote: hi everybody, getting quite fluent in lilypond by now. it's even more fun using it, if you get to know the app better. one thing i'm still struggling with: how to put text in the staff? the picture below has been done with photoshop (not the most elegant way :) ) i tried the \markup command \lower put that didn't help. ___ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user