Re: strange tempo 2
A few days ago I posted this: Following Mats' suggestion I went to: http://lsr.dsi.unimi.it/LSR/Item?id=204 ..to find a solution for an odd tempo marking. I succeeded in displaying the desired result but ran into a snag. The tempo I want to display occurs at a rehearsal mark. The tempo marking also uses a modified rehearsal mark. Lily doesn't like that. Previous mark here is what I get. Then I tried voicifying to get the two marks to print. I offset the tempo marking by attaching it to a skip. Then I changed the #'X-offset (down near the bottom of the score block) to adjust the position of the tempo marking. Is this a good way to go about this or is there something more informed? -David % \version 2.11.55 rhythmMarkStaffReduce = #-4 rhythmMarkLabelFontSize = #-3 rhythmMark = #(define-music-function (parser location musicI label) (ly:music? string? ) #{ \mark \markup { \line \vcenter { \score { % 1st column in line \new Staff \with { fontSize = #rhythmMarkStaffReduce \override StaffSymbol #'staff-space = #(magstep rhythmMarkStaffReduce) \override StaffSymbol #'line-count = #0 \override VerticalAxisGroup #'Y-extent = #'(0 . 0) % td \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0) %RV } \relative { \stemUp $musicI } \layout { ragged-right= ##t indent = 0 \context { \Staff \remove Clef_engraver \remove Time_signature_engraver } } % layout } % 1st Score end \hspace #-0.5% 2nd column in line % 3rd column in line \italic \fontsize #rhythmMarkStaffReduce = \combine % 4th column in line \italic \fontsize #rhythmMarkLabelFontSize $label \transparent \italic \fontsize #rhythmMarkLabelFontSize f % This fakes a uniform baseline (ie. create common anchor for vcenter) %% END 5 } % line end } % markup end #}) rhyMarkFiveEight = { % \override Score.SpacingSpanner #'common-shortest-duration = #(ly:make-moment 1 4) % tight \override Score.SpacingSpanner #'common-shortest-duration = #(ly:make-moment 3 16) % even % \override Score.SpacingSpanner #'common-shortest-duration = #(ly:make-moment 1 8) % loose { b'4 ~ b4. } } \score { \relative c' { \time 4/4 c1 \time 5/8 \mark \default { s8 \override Score.RehearsalMark #'self-alignment-X = #LEFT \override Score.BarNumber #'break-visibility = #all-invisible %\override Score.RehearsalMark #'padding = #-2 \once \override Score.RehearsalMark #'X-offset = #-2 % td \rhythmMark \rhyMarkFiveEight #53 s2 } \\ { \stemNeutral d4 e4. } } } % I got some responses which led up to this from Neil Puttock: 2008/8/7 David Bobroff [EMAIL PROTECTED]: Does Rheinhold's work allow for the kind of thing I want; a quarter tied to a dotted quarter = number? Yes, since tempoText can take any \markup commands. So in your snippet, all you need to do is change your rhythmMark function so that the \score markup is set to tempoText; setting it automatically creates a metronome mark: \set Score.tempoText = \markup { ... } Then you can junk the polyphonic section with the skips and the metronome mark will be aligned with the first note in the bar. Regards, Neil This was all well and good until I found that I had two metronome markings occurring at the same time. Lily doesn't like that any more than two rehearsal mark appearing at the same time. The odd score I'm working on has two time signatures going on at the same time. One is in 1/4 and the other is in 5/8. I need to print both 4 = 53 and 4 ~ 4. = 53 ...on separate staves. I'm thinking I'm back to my polyphonic solution above. (Is the snippet repository off-line? I can't get in now.) -David ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
Hi David, I need to print both 4 = 53 and 4 ~ 4. = 53 ...on separate staves. I'm thinking I'm back to my polyphonic solution above. One possibility would be to move the mark engraver to the Staff context, and use \tag for the different elements — it's a lot more work, but would definitely solve the problem you have. Hope this helps! Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
David Bobroff wrote: This was all well and good until I found that I had two metronome markings occurring at the same time. Lily doesn't like that any more than two rehearsal mark appearing at the same time. The odd score I'm working on has two time signatures going on at the same time. One is in 1/4 and the other is in 5/8. I need to print both 4 = 53 and 4 ~ 4. = 53 ...on separate staves. I'm thinking I'm back to my polyphonic solution above. Can't you move the corresponding engraver(s) to the Staff context? (Is the snippet repository off-line? I can't get in now.) Yes, it seems so, and that they know about it. /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
Valentin Villenave wrote: 2008/8/8 Neil Puttock [EMAIL PROTECTED]: 2008/8/7 David Bobroff [EMAIL PROTECTED]: Does Rheinhold's work allow for the kind of thing I want; a quarter tied to a dotted quarter = number? Yes, since tempoText can take any \markup commands. This means we'll have to rewrite quite a bunch of snippets when .12 is out, don't we? Or perhaps remove some that show tweaks that are no longer needed. /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
2008/8/9 Mats Bengtsson [EMAIL PROTECTED]: Or perhaps remove some that show tweaks that are no longer needed. Yes, I suspect some snippets may now look much simpler thanks to Reinhold's implementation :-) Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
2008/8/8 Neil Puttock [EMAIL PROTECTED]: 2008/8/7 David Bobroff [EMAIL PROTECTED]: Does Rheinhold's work allow for the kind of thing I want; a quarter tied to a dotted quarter = number? Yes, since tempoText can take any \markup commands. This means we'll have to rewrite quite a bunch of snippets when .12 is out, don't we? Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
2008/8/8 Valentin Villenave [EMAIL PROTECTED]: 2008/8/8 Neil Puttock [EMAIL PROTECTED]: 2008/8/7 David Bobroff [EMAIL PROTECTED]: Does Rheinhold's work allow for the kind of thing I want; a quarter tied to a dotted quarter = number? Yes, since tempoText can take any \markup commands. This means we'll have to rewrite quite a bunch of snippets when .12 is out, don't we? I don't think there are that many which will need tweaking, though a few might be improved using tempoText. Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
strange tempo 2
Following Mats' suggestion I went to: http://lsr.dsi.unimi.it/LSR/Item?id=204 ..to find a solution for an odd tempo marking. I succeeded in displaying the desired result but ran into a snag. The tempo I want to display occurs at a rehearsal mark. The tempo marking also uses a modified rehearsal mark. Lily doesn't like that. Previous mark here is what I get. Then I tried voicifying to get the two marks to print. I offset the tempo marking by attaching it to a skip. Then I changed the #'X-offset (down near the bottom of the score block) to adjust the position of the tempo marking. Is this a good way to go about this or is there something more informed? -David % \version 2.11.55 rhythmMarkStaffReduce = #-4 rhythmMarkLabelFontSize = #-3 rhythmMark = #(define-music-function (parser location musicI label) (ly:music? string? ) #{ \mark \markup { \line \vcenter { \score { % 1st column in line \new Staff \with { fontSize = #rhythmMarkStaffReduce \override StaffSymbol #'staff-space = #(magstep rhythmMarkStaffReduce) \override StaffSymbol #'line-count = #0 \override VerticalAxisGroup #'Y-extent = #'(0 . 0) % td \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0) %RV } \relative { \stemUp $musicI } \layout { ragged-right= ##t indent = 0 \context { \Staff \remove Clef_engraver \remove Time_signature_engraver } } % layout } % 1st Score end \hspace #-0.5% 2nd column in line % 3rd column in line \italic \fontsize #rhythmMarkStaffReduce = \combine % 4th column in line \italic \fontsize #rhythmMarkLabelFontSize $label \transparent \italic \fontsize #rhythmMarkLabelFontSize f % This fakes a uniform baseline (ie. create common anchor for vcenter) %% END 5 } % line end } % markup end #}) rhyMarkFiveEight = { % \override Score.SpacingSpanner #'common-shortest-duration = #(ly:make-moment 1 4) % tight \override Score.SpacingSpanner #'common-shortest-duration = #(ly:make-moment 3 16) % even % \override Score.SpacingSpanner #'common-shortest-duration = #(ly:make-moment 1 8) % loose { b'4 ~ b4. } } \score { \relative c' { \time 4/4 c1 \time 5/8 \mark \default { s8 \override Score.RehearsalMark #'self-alignment-X = #LEFT \override Score.BarNumber #'break-visibility = #all-invisible % \override Score.RehearsalMark #'padding = #-2 \once \override Score.RehearsalMark #'X-offset = #-2 % td \rhythmMark \rhyMarkFiveEight #53 s2 } \\ { \stemNeutral d4 e4. } } } % ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
David Bobroff wrote: Following Mats' suggestion I went to: http://lsr.dsi.unimi.it/LSR/Item?id=204 ..to find a solution for an odd tempo marking. I succeeded in displaying the desired result but ran into a snag. The tempo I want to display occurs at a rehearsal mark. The tempo marking also uses a modified rehearsal mark. Lily doesn't like that. Previous mark here is what I get. Some months ago a few of us stumbled in a similar problem. Neil put our results in http://lsr.dsi.unimi.it/LSR/Item?id=444 - basically, we modify the actual metronome mark formatter, which is independent of other marks (and the right place to put those stuff, anyway). I did not found any elegant or just nice way to do it with two simultaneous marks, using hidden rests or something similar. Best Alexander ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
2008/8/7 Alexander Kobel [EMAIL PROTECTED]: Some months ago a few of us stumbled in a similar problem. Neil put our results in http://lsr.dsi.unimi.it/LSR/Item?id=444 - basically, we modify the actual metronome mark formatter, which is independent of other marks (and the right place to put those stuff, anyway). Thanks to Reinhold's work on \tempo for version 2.11.50, you don't have to hack the metronome mark formatter since there's now a text property, tempoText, which you can use for complicated \score markup. Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Donnerstag, 7. August 2008 schrieb Neil Puttock: 2008/8/7 Alexander Kobel [EMAIL PROTECTED]: Some months ago a few of us stumbled in a similar problem. Neil put our results in http://lsr.dsi.unimi.it/LSR/Item?id=444 - basically, we modify the actual metronome mark formatter, which is independent of other marks (and the right place to put those stuff, anyway). Thanks to Reinhold's work on \tempo for version 2.11.50, you don't have to hack the metronome mark formatter since there's now a text property, tempoText, which you can use for complicated \score markup. Ah, I didn't even think of such uses, but thanks to the great flexibility of lilypond, you are right, this is absolutely possible! Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung Jung-Wien, http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIm3WOTqjEwhXvPN0RAo/zAJ91/7d+TLSzRqGgCc/3di1ALXmV4ACeIbkg I9QbV8SFTczA9H5CMFzpRKo= =sBB1 -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: strange tempo 2
Does Rheinhold's work allow for the kind of thing I want; a quarter tied to a dotted quarter = number? Neil Puttock wrote: 2008/8/7 Alexander Kobel [EMAIL PROTECTED]: Some months ago a few of us stumbled in a similar problem. Neil put our results in http://lsr.dsi.unimi.it/LSR/Item?id=444 - basically, we modify the actual metronome mark formatter, which is independent of other marks (and the right place to put those stuff, anyway). Thanks to Reinhold's work on \tempo for version 2.11.50, you don't have to hack the metronome mark formatter since there's now a text property, tempoText, which you can use for complicated \score markup. Regards, Neil ___ 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: strange tempo 2
2008/8/7 David Bobroff [EMAIL PROTECTED]: Does Rheinhold's work allow for the kind of thing I want; a quarter tied to a dotted quarter = number? Yes, since tempoText can take any \markup commands. So in your snippet, all you need to do is change your rhythmMark function so that the \score markup is set to tempoText; setting it automatically creates a metronome mark: \set Score.tempoText = \markup { ... } Then you can junk the polyphonic section with the skips and the metronome mark will be aligned with the first note in the bar. Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user