lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scaling both durations and displayed note values?


From: James Harkins
Subject: Re: scaling both durations and displayed note values?
Date: Wed, 28 Sep 2011 20:50:03 +0800
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

> From: David Kastrup <address@hidden>
> James Harkins <address@hidden> writes:
> 
> > Is there a way to scale the durations of a passage of music, say, by a
> > factor of 2, so that not only do the notes take twice as much time,
> > but the displayed note values are also doubled?
> >
> > \scaleDurations does only the former, but not the latter.
> >
> > I'm finally sitting down to typeset a couple of mensural canons that I
> > wrote some years ago, and I was hoping to enter the part that is
> > imitated just once, in a variable, and then do something like:
> >
> > \scaleDurations #'(2 . 1) { \firstHalf }
> 
> \shiftDurations #1 #0 \firstHalf

That was it, thanks -- except I needed \shiftDurations #-1 #0 to augment 
instead of diminish.

The result is attached, should anyone care for a little amusement.

Thanks!
James


--
James Harkins /// dewdrop world
address@hidden
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks

Attachment: canonic-study-1.ly
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]