Re: box around notes
On Dec 16, 2011, at 6:27 AM, David Nalesnik wrote: > Hi all, > > I'm trying to write a function to add a box around notes. I've come up with > the following, and I'm wondering if anyone has any ideas how to improve it or > perhaps a different approach. > > Basically, the function creates a box as a TextSpanner. The height of the > box is based on the highest and lowest stems. > > I'd like to automate all aspects of the function, but I've had to add a > correction factor for height. This compensates for my inability to determine > the Y-position of the spanner. I can determine Y-values "after the fact," but > all my attempts to determine them _within_ the function end up "killing" > parts of the box. You can see this by uncommenting any of the display lines > in the function--you'll get values in the log . . . at the price of losing > the left and right "text" of the spanner--three sides of the box. (To add to > the mystery for me, uncommenting single lines vs. more than one yields > different results.) > > The example uses a small correction, but even bigger numbers are needed when > articulations are added. > > Any suggestions? > > Thanks, > David > Hey David, It depends on what you want your box to go around. If it's only ever notes and stems (i.e. not articulations, tremoli, etc.), you can add a stencil property to the NoteColumn grob that uses its extents for the parameters you need to draw your box. Once articulations are in the game, I'd recommend creating a custom Scheme engraver that collects all the grobs you want, throws them into the "elements" grob array of a custom grob that implements the axis-group-interface (you can define your own grobs via the same procedure as grobs are defined in define-grobs.scm), and then use axis-group-interface::pure-height and axis-group-interface::height for the Y-extents (which will automatically search the "elements" grob array. Cheers, MS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Not interested in midi meaning of \repeat volta etc.
Hello, On 16 December 2011 01:29, Frederick Dennis wrote: > Dear All, > In 2.14.2 > is there any way of getting > \bar "|:" > to print out after the time signature? http://lsr.dsi.unimi.it/LSR/Item?id=500 > > Also, is there any way of printing the > first-time and second-time bars as > markupĀ or \mark instead of using \repeat volta > \alternative etc.? Don't know what this means. Do you just want the numbers or do you want the bracket? http://lsr.dsi.unimi.it/LSR/Search?q=volta See if there is anything there that helps. James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How to get ps files as output from Lilypond
Hello, I am getting PDF files as an output from Lilypond. However, I would need postscript *.ps files instead (but NOT eps files). How do I achieve getting .ps files as output, please? -- View this message in context: http://old.nabble.com/How-to-get-ps-files-as-output-from-Lilypond-tp32986869p32986869.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Subject: Not interested in midi meaning of \repeat volta etc.
\tempo "Allegro Moderato"4=86 \key c\major \time 4/4 r2. e''4 \bar "|:" % 1 \repeat volta 2 { e''8 [ a''8 ] a''4 ( a''8 ) [ c'''8 ] b''16 [ a''16 gis''16 a''16 ] | % 2 ...more music c''4 r4. g''16 [ a''16 ] b''16 [ c'''16 d'''16 b''16 ] | % 69 } \alternative { {c'''4 c'''4 c'''4 e''4 } % 70 {c'''4 c'''4 c'''4 r4} } ...rest of music Works for me regards Peter Gentry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to get ps files as output from Lilypond
On 16 December 2011 11:21, Jiri Zurek (Prague) wrote: > > Hello, I am getting PDF files as an output from Lilypond. However, I would > need postscript *.ps files instead (but NOT eps files). How do I achieve > getting .ps files as output, please? lilypond --ps myfile.ly AU 1.2 Command-line usage > Command line options for lilypond http://lilypond.org/doc/v2.15/Documentation/usage/command_002dline-usage.html#command-line-options-for-lilypond Cheers, Xavier -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to get ps files as output from Lilypond
Jiri Zurek (Prague) wrote: > > Hello, I am getting PDF files as an output from Lilypond. However, I would > need postscript *.ps files instead (but NOT eps files). How do I achieve > getting .ps files as output, please? > simply lilypond --ps test1.ly -- View this message in context: http://old.nabble.com/How-to-get-ps-files-as-output-from-Lilypond-tp32986869p32986939.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Subdivision in tuplet
Hi, how can I remove the subdivison in this example: -- \version "2.15.22" { %\set subdivideBeams = ##f \times 2/3 { b16[ b b } b8] b4 b b } -- Thanks Thomas ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Subdivision in tuplet
Hi again, I have just found that in this example in LSR the tuplets also get subdivided after two 16th notes when compiled with LilyPond 2.15. In 2.12. it is o.k.. So maybe I have overlooked something? LSR example (LilyPond 2.12): -- music = \relative c'' { \times 2/3 { c16[ d e } f8] \times 2/3 { c8 d e } \times 2/3 { c4 d e } } \new Voice { \relative c' { << \music s4^"default" >> \override TupletBracket #'bracket-visibility = #'if-no-beam << \music s4^"'if-no-beam" >> \override TupletBracket #'bracket-visibility = ##t << \music s4^"#t" >> \override TupletBracket #'bracket-visibility = ##f << \music s4^"#f" >> } } -- Original-Nachricht Hi, how can I remove the subdivison in this example: -- \version "2.15.22" { %\set subdivideBeams = ##f \times 2/3 { b16[ b b } b8] b4 b b } -- Thanks Thomas ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
skipTypesetting oddities
Hi all 1) in the following, the beaming goes wrong: { b8 b b b b b b b \set Score.skipTypesetting = ##t b b b b b b b b } whereas if I skip one eighth later it's fine: { b8 b b b b b b b b \set Score.skipTypesetting = ##t b b b b b b b b } 2) in this snippet of Beethoven, an extra tie or slur appears on the first two d16 { \set Score.skipTypesetting = ##t e'2~ e'8( d' cis' b) a2~ a8( a' g' e') \set Score.skipTypesetting = ##f d'16\p d' d' d' d' d' d' d' d'8 r8 r4 } if I move the skip##f back a note, it's fine: { \set Score.skipTypesetting = ##t e'2~ e'8( d' cis' b) a2~ a8( a' g' \set Score.skipTypesetting = ##f e') d'16\p d' d' d' d' d' d' d' d'8 r8 r4 } any ideas how to get around this? thanks Damian ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Beam subdivision bug in 2.15.22?
\times 2/3 { b16 b b } b8 b4 b b 2.15.22 produces a (wrong) beam subdivison. 2.14.2 output is correct. See attachments. Is this a bug? I searched the bug list but did not find this one. Thomas <><>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Beam subdivision bug in 2.15.22?
Thomas Scharkowski writes: > \times 2/3 { b16 b b } b8 b4 b b > > 2.15.22 produces a (wrong) beam subdivison. > 2.14.2 output is correct. > See attachments. > > Is this a bug? > I searched the bug list but did not find this one. I would have a hard time calling this anything else. You might want to report it on the bug-lilypond list. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [tablatures] Grace Note Stem Length
ccing user list on Lilypond as that will be a better place to get help here. -- -- James On 16 Dec 2011, at 23:59, "oldwhtman" wrote: > I am using Lilypond 2.14.2. Is there a way to change the stem length of > beamed grace notes? I tried using: > > \set Score.graceSettings = #`((TabVoice Stem length-fraction .5)) > > but that did nothing. It's amazing what you can't find on the internet. > > > > > -- > View this message in context: > http://lilypond-s-support-for-tablatures.3383434.n2.nabble.com/Grace-Note-Stem-Length-tp7102958p7102958.html > Sent from the LilyPond's support for tablatures mailing list archive at > Nabble.com. > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: box around notes
Hi Mike, Thank you so much for pointing me in the right direction! On Fri, Dec 16, 2011 at 2:06 AM, m...@apollinemike.com < m...@apollinemike.com> wrote: > > Hey David, > > Once articulations are in the game, I'd recommend creating a custom Scheme > engraver that collects all the grobs you want, throws them into the > "elements" grob array of a custom grob that implements the > axis-group-interface (you can define your own grobs via the same procedure > as grobs are defined in define-grobs.scm), [...] I do want to be able to encompass dynamics and articulations along with note columns, so I've gone with your suggestion of a custom engraver . . . or rather customizing someone else's beautiful example :) I adapted the regression test "scheme-text-spanner.ly" (thank you to whoever provided this!), and I've got something which mostly works. There are some problems, though, and I'm not sure I'm approaching this in the way you've suggested. First of all, is going after the stencil rather than the left and right text (as I did originally) the tactic you had in mind for both approaches? The first snippet looks fine (both the dynamic and the articulation are encompassed), but the box won't expand to cover both the dynamic and the articulation in the second example. Also, the distance between the systems doesn't change. (Raising the last pitch a couple of octaves will cause an overlap.) > and then use axis-group-interface::pure-height and > axis-group-interface::height for the Y-extents (which will automatically > search the "elements" grob array. > > This is the part that is way beyond me. . . I'd be grateful if you could give me some pointers here, because I've hit a dead end as far as blind experimentation goes . . . Best, David boxer-engraver02.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user