Re: Moving a hairpin horizontally

2008-05-13 Thread Peter Chubb
 kieren == kieren macmillan [EMAIL PROTECTED] writes:

kieren Mats,
 I would have though that \override Hairpin #'bound-padding = #2.0
 should do the job, but it seems that it only affect the right end,
 not the left end.  Of course, you could then use a combination of
 X-offset and bound-padding to get what you want, but I'm not
 convinced that this is the expected behaviour.

kieren Agreed.

kieren On a not-too-distantly related note, I again put up a
kieren sponsorship offer for the ability to control padding of such
kieren items BY NOTE DURATION. For example, I would love to have a
kieren Hairpin on a whole note start at the half-note position and be
kieren 3/8s long (i.e., stop 1/8 before the end of the whole note) by
kieren saying

You make this look right now, e.g., by
 c1 \\ {s2\ s4. \! s8} 


but the MIDI output doesn't sound right.   I'm trying to get the MIDI
output right, so have to explicitly do things like:
\pp c64 ~ \ c64 ~ c64 ~ c64 ~ c64 ~ c64 ~\!\sf c64 ~ \ c64 ~ c64
~ c64 ~ c64 ~ c64 ~ c64 ~ c64 ~c64 ~ c64 ~ c64\! \pp


--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
A university is a non-profit organisation only in the sense that it
spends everything it gets  ... Luca Turin.


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


Re: Moving a hairpin horizontally

2008-05-13 Thread Kieren MacMillan

Hi Peter,


You make this look right now, e.g., by
 c1 \\ {s2\ s4. \! s8} 


... which is both musically incorrect AND unnecessarily awkward to  
code.  ;-)


This is really something that Lilypond SHOULD handle more gracefully.  
Even my suggested fix -- which would be superior to the current  
workaround(s) -- is flawed, since it would only LOOK like the dynamic  
started/ended in a different spot (i.e., it would not likely fix the  
MIDI performance problem).


Best regards,
Kieren.


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


Moving a hairpin horizontally

2008-05-12 Thread Kim Bastin
What's the override for moving the ends of a hairpin horizontally? I 
need to start one a little to the right of its default position because 
it collides with a cross-staffed note. But I can only find information 
about moving hairpins vertically. I tried this:


\once \override Hairpin #'X-offset = #1

but this moves the whole hairpin, offsetting the right end too. It's 
such a simple matter there must surely be a simple solution, but I'm 
stumped.





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


Re: Moving a hairpin horizontally

2008-05-12 Thread Mark Knoop
On Mon, 2008-05-12 at 22:20 +1000, Kim Bastin wrote:
 What's the override for moving the ends of a hairpin horizontally? I 
 need to start one a little to the right of its default position because 
 it collides with a cross-staffed note. But I can only find information 
 about moving hairpins vertically. 

Probably the easiest method is to attach the hairpin to spacer notes in
a second voice:

 { c'4 d' e' f' g'1 } \\ { s8 s8\ s2. s1\! } 

You can adjust the duration of the first spacer note to move the
left-hand end of the hairpin. 

I also can't find a direct interface for horizontally adjusting just one
end of a hairpin.

PS: Hi Kim, haven't seen you for years... how's Melbourne?

-- 
Mark Knoop


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


Re: Moving a hairpin horizontally

2008-05-12 Thread Mats Bengtsson

I would have though that
\override Hairpin #'bound-padding = #2.0
should do the job, but it seems that it only affect the right end, not 
the left end.
Of course, you could then use a combination of X-offset and 
bound-padding to get

what you want, but I'm not convinced that this is the expected behaviour.

   /Mats

Kim Bastin wrote:
What's the override for moving the ends of a hairpin horizontally? I 
need to start one a little to the right of its default position 
because it collides with a cross-staffed note. But I can only find 
information about moving hairpins vertically. I tried this:


\once \override Hairpin #'X-offset = #1

but this moves the whole hairpin, offsetting the right end too. It's 
such a simple matter there must surely be a simple solution, but I'm 
stumped.





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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Moving a hairpin horizontally

2008-05-12 Thread kieren_macmillan

Mats,


I would have though that
\override Hairpin #'bound-padding = #2.0
should do the job, but it seems that it only affect the right end, not the 
left end.
Of course, you could then use a combination of X-offset and bound-padding 
to get

what you want, but I'm not convinced that this is the expected behaviour.


Agreed.

On a not-too-distantly related note, I again put up a sponsorship offer for 
the ability to control padding of such items BY NOTE DURATION. For example, 
I would love to have a Hairpin on a whole note start at the half-note 
position and be 3/8s long (i.e., stop 1/8 before the end of the whole note) 
by saying


   \override Hairpin #'bound-padding = #'((1 . 2) (1 . 8))

or whatever format is best/intuitive.

Any savvy devs out there want a little extra ca$h??  ;-)

Cheers,
Kieren.




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


Re: Moving a hairpin horizontally

2008-05-12 Thread Kim Bastin

Thanks Mark. My own solution, finally, was to define a dummy dynamic:

spacer = #(make-dynamic-script (markup ))

and attach it to the starting note, where it displaces the left end of 
the hairpin to the right by about the width of a notehead. It's not the 
 finest control, and it has kludge written all over it, but it serves 
the present purpose. And it can be used in similar fashion to displace 
the right end of the hairpin to the left.


[Hi Mark! Melbourne's still on the Yarra, and stealthily taking over the 
surrounding countryside. Very dry though.]


On 2008-05-12 13:08:24 GMT Mark Knoop wrote:

On Mon, 2008-05-12 at 22:20 +1000, Kim Bastin wrote:
What's the override for moving the ends of a hairpin horizontally? I 
need to start one a little to the right of its default position because 
it collides with a cross-staffed note. But I can only find information 
about moving hairpins vertically. 


Probably the easiest method is to attach the hairpin to spacer notes in
a second voice:

 { c'4 d' e' f' g'1 } \\ { s8 s8\ s2. s1\! } 

You can adjust the duration of the first spacer note to move the
left-hand end of the hairpin. 


I also can't find a direct interface for horizontally adjusting just one
end of a hairpin.

PS: Hi Kim, haven't seen you for years... how's Melbourne?




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