Re: Adjust duration of Hairpins;

2011-09-29 Thread Kieren MacMillan
Hi Ivan,

> I have been reading the archives, and if I understand
> correctly, the _only_ way to make a hairpin crescendo
> or decrescendo last a duration that is shorter than an entire
> whole or half note is to add a pseudo voice of "invisible
> rests" and notate your hairpins to the pseudo voice.
> Is this really the only way?

No:

\version "2.12.3"
\include "english.ly"

\score {
  \new Staff = "voice" {
\autoBeamOn
\numericTimeSignature
\dynamicUp
\clef "treble"
\time 3/4
fs'2\mf (e'8) g'8\mp   % m03
([e'8]) r8 g'8\mp ([e'8] g'8\< [e'8]   % m04
\time 4/4 af'2*1/4\! s8*3\>) r4\! f'4\mp   % m05
  }
  \addlyrics{ Smear __ Smear __ Smear __ Smear }
}

\layout {
  \context {
\Score
\override SpacingSpanner
  #'base-shortest-duration = #(ly:make-moment 1 32)
proportionalNotationDuration = #(ly:make-moment 1 8)
  }
}

> If so, I find that adding this pseudo voice causes all
> kinds of unwanted consequences such as adjusting vertical
> positions of rests and stem directions in the actual music.

Then you're doing it incorrectly — here's the same snippet, using a "pseudo 
voice" for the dynamics:

\score {
  \new Staff = "voice" {
\autoBeamOn
\numericTimeSignature
\dynamicUp
\clef "treble"
\time 3/4
<< { fs'2( e'8) g'8[( } { s2\mf s8 s8\mp } >>   % m03
<< { e'8]) r8 g'8[( e'8] g'8[\< e'8] } { s4 s\mp s\< } >>   % m04
\time 4/4 << { af'2*1/4 s8*3) r4 f'4 } { s8\! s8*3\> s4\! s\mp } >>   % m05
  }
  \addlyrics{ Smear __ Smear __ Smear __ Smear }
}

\layout {
  \context {
\Score
\override SpacingSpanner
  #'base-shortest-duration = #(ly:make-moment 1 32)
proportionalNotationDuration = #(ly:make-moment 1 8)
  }
}

As you will see, there are no "unwanted consequences".

A couple of other hints:
1. You don't have to (and, indeed, shouldn't) use ^\mf to attach your dynamics 
— if you want all your dynamics above the staff, you should change it globally 
with \dynamicUp (as I did in these snippets).
2. You should review your use of brackets and parentheses (note how I've 
adjusted them in these snippets): they do not follow Lilypond conventions, and 
may produce "unwanted consequences" someday.

Hope this helps!
Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adjust duration of Hairpins;

2011-09-29 Thread David Kastrup
ivan.k.kuznet...@gmail.com writes:

> I have been reading the archives, and if I understand
> correctly, the _only_ way to make a hairpin crescendo
> or decrescendo last a duration that is shorter than an entire
> whole or half note is to add a pseudo voice of "invisible
> rests" and notate your hairpins to the pseudo voice.

I don't think you understood correctly.

> Is this really the only way?
>
> If so, I find that adding this pseudo voice causes all
> kinds of unwanted consequences such as adjusting vertical
> positions of rests and stem directions in the actual music.
> This is not good.

At least not if you think this.

> As an example, in the appended snippet I need to
> have the decrescendo underneath the A flat start
> proportionally one eight note duration after the
> beginning of that A flat.
>
> Can someone give me some pointers on how to achieve
> this?
>
> Thank you for your help and suggestions.
>
>
> \version "2.12.3"
> \include "english.ly"
>
> \score {
>\new Staff = "voice"
>{
>  \autoBeamOn
>  \numericTimeSignature
>
>  \clef "treble"
>
>  \time 3/4
>
>  % voice m03
>  fs'2^\mf (e'8) g'8^\mp
>
>  % voice m04
>  ([e'8]) r8 g'8^\mp ([e'8] g'8^\< [e'8]
>
>  % voice m05
>  \time 4/4
>  af'2^\!^\> )  r4^\! f'4^\mp

<< af'2^\!) { s8 s4.^\> } >>

That should do the trick.  Note that this does not, I repeat not, add
another voice.  It merely uses simultaneous music in order to specify
the timing for the descrescendo event within the _same_ voice.  _Don't_
write \\ and you don't get separate voices.

>}
>\addlyrics{ Smear Smear Smear }
> }
>
> \layout {
>   \context {
>
>  \Score
>  \override SpacingSpanner
>#'base-shortest-duration = #(ly:make-moment 1 32)  %% pg.
>
>   proportionalNotationDuration = #(ly:make-moment 1 8) %% pg 364
>   }
> }

-- 
David Kastrup


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


Re: Adjust duration of Hairpins;

2011-09-29 Thread ivan . k . kuznetsov

Thanks to Kieren and David!;


Kieren MacMillan  writes:
>
> Then you're doing it incorrectly -- here's the same snippet,
> using a "pseudo voice" for the dynamics:
>
[...]
>\time 4/4 << { af'2*1/4 s8*3) r4 f'4 } { s8\! s8*3\> s4\! s\mp } >>   % m05

Thanks; this helps me greatly.

> 1. You don't have to (and, indeed, shouldn't) use ^\mf to attach your 
> dynamics -- if
> you want all your dynamics above the staff, you should change it globally 
> with \dynamicUp

Another great tip!


> 2. You should review your use of brackets and parentheses (note how I've 
> adjusted them in
> these snippets): they do not follow Lilypond conventions, and may produce 
> "unwanted
> consequences" someday.

Ok.

> Hope this helps!

It most certainly does.  Thanks again!



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


Re: Adjust duration of Hairpins;

2011-09-29 Thread ivan . k . kuznetsov

Kieren MacMillan  writes:
>
> -- here's the same snippet, using a "pseudo voice" for the dynamics:
>
[...]
>   af'2*1/4\! s8*3\>) r4\! f'4\mp


Actually, can you identify the place in the reference manual that the above
syntax (the parts with the asterisks) is discussed? 

Thanks again.




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


Re: Adjust duration of Hairpins;

2011-09-29 Thread Kieren MacMillan
Hi Ivan,

> Actually, can you identify the place in the reference manual that the above
> syntax (the parts with the asterisks) is discussed? 



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