Re: scale durations, another case

2016-03-09 Thread zzk
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

2016-03-09 Thread David Kastrup
Craig Dabelstein  writes:

> 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

2016-03-08 Thread Malte Meyn



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

2016-03-08 Thread Malte Meyn



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

2016-03-08 Thread zzk
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

2016-03-08 Thread Kieren MacMillan
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


scale durations, another case

2016-03-08 Thread zzk
Hi lilyponders,

Please consider the following code which is supposed to match the attached
excerpt from Debussy's 'Images'. 

I am getting a bar check warning, as I am having a bit of a struggle with
fitting seven 32nd notes under the second 'quarter' note in the tuplet.

Any help would be highly appreciated.

Zoran

%%%
\version "2.19.37"

Key = { \time 3/4 \key fis \major }
rh = { \change Staff = "rh" }
lh = { \change Staff = "lh" }

xxxMusRRH = \new Staff = "rh" {
\relative c' {
\Key
\once \override TupletBracket.direction = #UP \tuplet 4/3 { b''4--
a-- g-- f-- } |
}
}

xxxMusRH = \new Staff = "rh" {
\relative c' {
\Key
\scaleDurations 3/4 { s8.. \lh \stemUp cis,32 } 
\scaleDurations 6125/7000 { d[ g b d \rh \stemDown g b d] } 
\scaleDurations 3/4 { r4 r8.. \stemDown <eis,! eis'!>32-- } |
}
}

xxxMusLH = \new Staff = "lh" {
\relative c' {
\Key
\clef "bass" <<
\new Voice { 
f,8..\rest s32 s2 | 
}
\new Voice { 
\stemDown 
fis,,2. | 
}
>>
}
}

\new PianoStaff << 
\xxxMusRRH
\new StaffGroup <<
\xxxMusRH
\xxxMusLH
>>
>> 

\layout {
   \context {
 \Score
 \override StaffGrouper.staff-staff-spacing.basic-distance = #15
   }
} 
%%%



ScaleDuration_excerpt.png
<http://lilypond.1069038.n5.nabble.com/file/n188321/ScaleDuration_excerpt.png>  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/scale-durations-another-case-tp188321.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

2016-03-08 Thread 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 ???/???

Craig




On 8 March 2016 at 08:47, Simon Albrecht  wrote:

> 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

2016-03-07 Thread Simon Albrecht

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

2016-03-07 Thread Craig Dabelstein
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 Kastrup  wrote:

> 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

2016-03-07 Thread David Kastrup
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


Re: scale durations

2016-03-07 Thread Simon Albrecht

On 07.03.2016 22:20, David Kastrup wrote:

Simon Albrecht  writes:


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

2016-03-07 Thread David Kastrup
Simon Albrecht  writes:

> 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

2016-03-07 Thread Craig Dabelstein
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 Meyn  wrote:

>
>
> 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

2016-03-07 Thread Malte Meyn



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

2016-03-07 Thread Simon Albrecht

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

2016-03-07 Thread Kieren MacMillan
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

2016-03-07 Thread David Kastrup
Craig Dabelstein  writes:

> 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


scale durations

2016-03-07 Thread Craig Dabelstein
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.

All the best,

Craig



*Craig Dabelstein*
e:craig.dabelst...@gmail.com


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user