Re: scale durations, another case
Malte Meyn-3 wrote > Am 09.03.2016 um 05:13 schrieb zzk: >> Out of curiosity (and maybe for some possible future, more complicated >> scenarios), is there a solution using \scaleDurations instead? >> > > A tuplet 7/6 without tuplet number is the same as \scaleDurations with > factor 6/7. Or, even simpler, you can scale a duration by putting a > *[scaling factor] behind it: > > > d32*6/7[ g b d \rh \stemDown g b d] Malte, thank you for the additional explanation. There is so much more for me to learn about Lilypond :) Have a nice day, Zoran -- View this message in context: http://lilypond.1069038.n5.nabble.com/scale-durations-another-case-tp188321p188345.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: scale durations
Craig Dabelsteinwrites: > Sorry gents, here is one more I can't work out. > > The piece is in 9/8 but I need one instrument to play in 4/4. I have no > idea how to work out that fraction: > > \set Staff.timeSignatureFraction = 4/4 > \scaleDurations ???/??? Uh, 9/8 / 4/4 = 9/8. So to spread 4/4 to 9/8, you'd use \scaleDurations 9/8 ... -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations, another case
Am 09.03.2016 um 05:13 schrieb zzk: Out of curiosity (and maybe for some possible future, more complicated scenarios), is there a solution using \scaleDurations instead? A tuplet 7/6 without tuplet number is the same as \scaleDurations with factor 6/7. Or, even simpler, you can scale a duration by putting a *[scaling factor] behind it: d32*6/7[ g b d \rh \stemDown g b d] ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
Am 09.03.2016 um 03:54 schrieb Craig Dabelstein: Sorry gents, here is one more I can't work out. The piece is in 9/8 but I need one instrument to play in 4/4. I have no idea how to work out that fraction: \set Staff.timeSignatureFraction = 4/4 \scaleDurations 8/9 because (4/4)/(9/8) = 8/9 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations, another case
Hi Kieren, Why? Because such a simple, elegant solution simply did not occur to me :) Thanks a lot, works very well. Out of curiosity (and maybe for some possible future, more complicated scenarios), is there a solution using \scaleDurations instead? Thanks, Zoran -- View this message in context: http://lilypond.1069038.n5.nabble.com/scale-durations-another-case-tp188321p188323.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: scale durations, another case
Hi Zoran, Any reason you don’t just use the built-in tuplet function, e.g., \tuplet 7/6 { d[ g b d \rh \stemDown g b d] } or, if you don’t want to see the tuplet number, \once \omit TupletNumber \tuplet 7/6 { d[ g b d \rh \stemDown g b d] } ?? Hope this helps! Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
Sorry gents, here is one more I can't work out. The piece is in 9/8 but I need one instrument to play in 4/4. I have no idea how to work out that fraction: \set Staff.timeSignatureFraction = 4/4 \scaleDurations ???/??? Craig On 8 March 2016 at 08:47, Simon Albrechtwrote: > On 07.03.2016 22:53, Craig Dabelstein wrote: > >> Hi David, >> >> No, I didn't have to move the Default_bar_line_engraver. It worked fine >> the way you originally said. >> > > The one with Default_bar_line_engraver was directed at me. > > Best, Simon > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
On 07.03.2016 22:53, Craig Dabelstein wrote: Hi David, No, I didn't have to move the Default_bar_line_engraver. It worked fine the way you originally said. The one with Default_bar_line_engraver was directed at me. Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
Hi David, No, I didn't have to move the Default_bar_line_engraver. It worked fine the way you originally said. Craig On 8 March 2016 at 07:24, David Kastrupwrote: > Malte Meyn writes: > > > Am 07.03.2016 um 21:45 schrieb Kieren MacMillan: > >>\set Staff.timeSignatureFraction = #'(3 . 4) > >>\scaleDurations #'(3 . 2) { > > > > You can use 3/4 and 3/2 here instead of the more complicated and less > > clear #'(3 . 4) and #'(3 . 2) ;) > > commit 0757febe2084fd8507334987b6f6b524888247c7 > Author: David Kastrup > Date: Sun May 13 01:23:31 2012 +0200 > > Issue 2530: Use fractions rather than Scheme pairs for \scaleDuration, > timeSignatureFraction et al > > Ah, those were the days... > > -- > David Kastrup > > ___ > 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: scale durations
Malte Meynwrites: > Am 07.03.2016 um 21:45 schrieb Kieren MacMillan: >>\set Staff.timeSignatureFraction = #'(3 . 4) >>\scaleDurations #'(3 . 2) { > > You can use 3/4 and 3/2 here instead of the more complicated and less > clear #'(3 . 4) and #'(3 . 2) ;) commit 0757febe2084fd8507334987b6f6b524888247c7 Author: David Kastrup Date: Sun May 13 01:23:31 2012 +0200 Issue 2530: Use fractions rather than Scheme pairs for \scaleDuration, timeSignatureFraction et al Ah, those were the days... -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
On 07.03.2016 22:20, David Kastrup wrote: Simon Albrechtwrites: On 07.03.2016 21:21, Craig Dabelstein wrote: I'm struggling with a piece of polymetric notation. I have a piece in 9/8 but halfway through some staves need to change to 3/4. I have this: \set Staff.timeSignatureFraction = #'(3 . 4) \scaleDurations #'(3 . 2) but I can't figure out what fraction it needs to make it work. The cue word ‘polymetric’ made me move Timing_translator to Staff level (actually it works without). Surprisingly, this gives wrong bar lines (see attached). Anyone know why? Because of not having moved Default_bar_line_engraver as well? Of course. Thanks. Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
Simon Albrechtwrites: > On 07.03.2016 21:21, Craig Dabelstein wrote: >> >> I'm struggling with a piece of polymetric notation. I have a piece >> in 9/8 but halfway through some staves need to change to 3/4. >> >> I have this: >> >> \set Staff.timeSignatureFraction = #'(3 . 4) >> \scaleDurations #'(3 . 2) >> >> but I can't figure out what fraction it needs to make it work. > > The cue word ‘polymetric’ made me move Timing_translator to Staff > level (actually it works without). Surprisingly, this gives wrong bar > lines (see attached). Anyone know why? Because of not having moved Default_bar_line_engraver as well? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
Thanks everyone. My fraction was right, but my eyes had glazed over from code and I had missed one sneaky spacer rest that was throwing everything else out. All the best, Craig On 8 March 2016 at 06:58, Malte Meynwrote: > > > Am 07.03.2016 um 21:45 schrieb Kieren MacMillan: > >>\set Staff.timeSignatureFraction = #'(3 . 4) >>\scaleDurations #'(3 . 2) { >> > > You can use 3/4 and 3/2 here instead of the more complicated and less > clear #'(3 . 4) and #'(3 . 2) ;) > > ___ > 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: scale durations
Am 07.03.2016 um 21:45 schrieb Kieren MacMillan: \set Staff.timeSignatureFraction = #'(3 . 4) \scaleDurations #'(3 . 2) { You can use 3/4 and 3/2 here instead of the more complicated and less clear #'(3 . 4) and #'(3 . 2) ;) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
On 07.03.2016 21:21, Craig Dabelstein wrote: I'm struggling with a piece of polymetric notation. I have a piece in 9/8 but halfway through some staves need to change to 3/4. I have this: \set Staff.timeSignatureFraction = #'(3 . 4) \scaleDurations #'(3 . 2) but I can't figure out what fraction it needs to make it work. The cue word ‘polymetric’ made me move Timing_translator to Staff level (actually it works without). Surprisingly, this gives wrong bar lines (see attached). Anyone know why? Best, Simon \version "2.19.37" \layout { \context { \Score \remove Timing_translator } \context { \Staff \consists Timing_translator } } << \new Staff { \time 9/8 s4.*6 } \new Staff { \time 9/8 4. 4. 4. \set Staff.timeSignatureFraction = 3/4 \scaleDurations 3/2 { 4 4 4 } } >>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
Hi Craig, > I'm struggling with a piece of polymetric notation. I have a piece in 9/8 but > halfway through some staves need to change to 3/4. > I have this: > \set Staff.timeSignatureFraction = #'(3 . 4) > \scaleDurations #'(3 . 2) > but I can't figure out what fraction it needs to make it work. The one you’re already using seems to work, if the output of the following is what you want: \version "2.19.35" \language "english" threefour = { \time 9/8 \set Staff.timeSignatureFraction = #'(3 . 4) \scaleDurations #'(3 . 2) { c''4 4 4 | c''4 4 4 | } } nineeight = { \time 9/8 c''8 8 8 8 8 8 8 8 8 | c''8 8 8 8 8 8 8 8 8 | } \score { << \new Staff \threefour \new Staff \nineeight >> } If that’s not what you want, let me know and I’ll try to help again. Best, Kieren. p.s. When offering help, I’m always happy to create working examples that compile. But many others on the list aren’t, so to increase your chances of getting a response, you might consider always including a full working example which compiles. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scale durations
Craig Dabelsteinwrites: > Hi Lilyponders, > > I'm struggling with a piece of polymetric notation. I have a piece in 9/8 > but halfway through some staves need to change to 3/4. > > I have this: > > \set Staff.timeSignatureFraction = #'(3 . 4) > \scaleDurations #'(3 . 2) > > but I can't figure out what fraction it needs to make it work. (9/8)/(3/4) = 3/2 Looks good. You are aware that \scaleDurations takes a music argument, so you likely need to write something like \scaleDurations 3/2 { ... } here? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user