Re: time signature magic
You need the magic of: http://lsr.di.unimi.it/LSR/Snippet?id=782 - Good Luck! Alex Jones-2 wrote Does anyone have a suggestion for a good way to accomplish this in lilypond? time signature with a second time signature in parentheses? Screen Shot 2015-05-23 at 5.41.47 PM.png (14K) lt;http://lilypond.1069038.n5.nabble.com/attachment/176955/0/Screen%20Shot%202015-05-23%20at%205.41.47%20PM.pnggt; -- View this message in context: http://lilypond.1069038.n5.nabble.com/time-signature-magic-tp176955p176956.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: time signature magic
maybe this helps? http://lsr.di.unimi.it/LSR/Item?id=782 ole Am 23.05.2015 um 23:44 schrieb Alex Jones akjonesjeff...@gmail.com: Does anyone have a suggestion for a good way to accomplish this in lilypond? time signature with a second time signature in parentheses? Thanks in advance! -akj Screen Shot 2015-05-23 at 5.41.47 PM.png ___ 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
Re: time signature magic
Thank you, this works! It does look a little clunky. I saw this, which gets the parentheses but doesn’t include the first non-parenthesized item. Can these two items be combined? http://www.lilypond.org/doc/v2.19/Documentation/snippets/staff-notation#staff-notation-time-signature-in-parentheses-_002d-method-3 -akj On May 23, 2015, at 6:09 PM, ole m...@oleschmidt.info wrote: maybe this helps? http://lsr.di.unimi.it/LSR/Item?id=782 ole Am 23.05.2015 um 23:44 schrieb Alex Jones akjonesjeff...@gmail.com: Does anyone have a suggestion for a good way to accomplish this in lilypond? time signature with a second time signature in parentheses? Thanks in advance! -akj Screen Shot 2015-05-23 at 5.41.47 PM.png ___ 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
Re: time signature magic
Hi Alex, On Sat, May 23, 2015 at 5:41 PM, Alex Jones akjonesjeff...@gmail.com wrote: Thank you, this works! It does look a little clunky. I agree--there's too much space. A simple fix is to use \concat, which puts items directly beside each other, instead of \line in the original function: \version 2.18 #(define ((time-parenthesized-time up down upp downp) grob) (grob-interpret-markup grob (markup #:override '(baseline-skip . 0) #:number (#:concat ( (#:column (up down)) #:vcenter ( (#:column (upp downp)) #:vcenter ) ) I saw this, which gets the parentheses but doesn’t include the first non-parenthesized item. Can these two items be combined? http://www.lilypond.org/doc/v2.19/Documentation/snippets/staff-notation#staff-notation-time-signature-in-parentheses-_002d-method-3 Yes, and this will allow you control over the shape of the parentheses: #(define ((time-parenthesized-time up down upp downp) grob) (ly:stencil-combine-at-edge (grob-interpret-markup grob (markup #:override '(baseline-skip . 0) #:number #:column (up down))) X RIGHT (parenthesize-stencil (grob-interpret-markup grob (markup #:override '(baseline-skip . 0) #:number #:column (upp downp))) 0.1 0.7 0.7 0.1) ; these numbers affect the parentheses 0.0 ; padding between columns )) \relative c' { \override Staff.TimeSignature.stencil = #(time-parenthesized-time 3 4 6 8) \time 3/4 b8 b8 gis8 gis4 gis8 } Hope this helps! David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: time signature magic
This worked like a charm, thanks to everyone! -akj On May 23, 2015, at 7:05 PM, David Nalesnik david.nales...@gmail.com wrote: #(define ((time-parenthesized-time up down upp downp) grob) (ly:stencil-combine-at-edge (grob-interpret-markup grob (markup #:override '(baseline-skip . 0) #:number #:column (up down))) X RIGHT (parenthesize-stencil (grob-interpret-markup grob (markup #:override '(baseline-skip . 0) #:number #:column (upp downp))) 0.1 0.7 0.7 0.1) ; these numbers affect the parentheses 0.0 ; padding between columns )) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: time signature magic
Alex, On Sat, May 23, 2015 at 6:08 PM, Alex Jones akjonesjeff...@gmail.com wrote: This worked like a charm, thanks to everyone! Great! Thought of something. Why specify the numbers of the time signature in effect? Not that it saves much time, but you could do this for a slightly shorter input: #(define ((time-parenthesized-time up down) grob) (ly:stencil-combine-at-edge (ly:time-signature::print grob) X RIGHT (parenthesize-stencil (grob-interpret-markup grob (markup #:override '(baseline-skip . 0) #:number #:column (up down))) 0.1 0.7 0.7 0.1) ; these numbers affect the parentheses 0.0 ; padding between columns )) \relative c' { \override Staff.TimeSignature.stencil = #(time-parenthesized-time 6 8) \time 3/4 b8 b8 gis8 gis4 gis8 } %% David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user