Help with autochange

2012-01-08 Thread Helge Kruse

Hello,

corresponding to the NR 2.2.1, page 285 "Changing staff automatically" I 
have to add the \autochange before the \relative. I wrote four measures of 
the pieces and add the \autochange. But this breaks it completely. What am I 
doing wrong here?


The complete example below has one line with the \autochange in question 
inactivated with a comment.


Thanks,
Helge


\version "2.14.2"
\include "deutsch.ly"

staffHarp = \new PianoStaff {
 <<
   \context Staff = "up" {  % Right hand
 \clef treble \key es \major \time 3/8
 \relative c'' {  es4.( d b8 c d c4.) }
   }
   \context Staff = "down" {  % Left hand
 \clef bass  \key es \major \time 3/8
   %  \autochange
 \relative c' {
  c,16 g' c es g r |
  c,,16 g' b d g r |
  g,,16 d' b' d g r |
  as,,16 es' as c es r |
 }
   }
 >>
}

\score {
 <<
   \staffHarp
 >>
 \layout { }
 \midi { }
}


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


Re: Help with autochange

2012-01-08 Thread -Eluze

hi

iirc the \autochange is not perfect…

but in your example i would suggest to pack the notes of the upper staff in
a \new Voice so that they are treated independent of the switching notes.

you will also have to introduce some voice directives (\voiceTwo) to prevent
them to behave like \oneVoice!

hth
Eluze

Helge Kruse-2 wrote:
> 
> Hello,
> 
> corresponding to the NR 2.2.1, page 285 "Changing staff automatically" I 
> have to add the \autochange before the \relative. I wrote four measures of 
> the pieces and add the \autochange. But this breaks it completely. What am
> I 
> doing wrong here?
> 
> The complete example below has one line with the \autochange in question 
> inactivated with a comment.
> 
> Thanks,
> Helge
> 
> 
> \version "2.14.2"
> \include "deutsch.ly"
> 
> staffHarp = \new PianoStaff {
>   <<
> \context Staff = "up" {  % Right hand
>   \clef treble \key es \major \time 3/8
>   \relative c'' {  es4.( d b8 c d c4.) }
> }
> \context Staff = "down" {  % Left hand
>   \clef bass  \key es \major \time 3/8
> %  \autochange
>   \relative c' {
>c,16 g' c es g r |
>c,,16 g' b d g r |
>g,,16 d' b' d g r |
>as,,16 es' as c es r |
>   }
> }
>   >>
> }
> 
> \score {
>   <<
> \staffHarp
>   >>
>   \layout { }
>   \midi { }
> }
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Help-with-autochange-tp33102979p33103288.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: Reduce width of single measure

2012-01-08 Thread James
Xavier,

On 14 December 2011 08:37, Xavier Scheuer  wrote:
> On 14 December 2011 05:31, Nick Payne  wrote:
>> How can I reduce the width of a single measure? i.e. in the final bar below
>> containing the chord of whole notes, I want the width of the measure to be
>> just wide enough to contain the chord.
>
>  \once \override Score.SpacingSpanner #'spacing-increment = #0.5
>  \newSpacingSection
>  1 |

I tried to use this myself on the first bar of a piece to get a
'squashed' hairpin linger by extending the measure but I cannot seem
to *only* make it affect the first measure.

version "2.14.1"

\relative c' {
  \time 3/4
  \override Score.SpacingSpanner #'spacing-increment = #2
  \newSpacingSection
  c'2.\sfz\> |
  \revert Score.SpacingSpanner #'spacing-increment
  c4\f c r | c2.\fz\> |
  r4 r g8\fz r |
}

The rest of the measures are also affected. I wonder if you or anyone
else knows how to do this just for a single measure.

-- 
--

James

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


Re: Reduce width of single measure

2012-01-08 Thread Matthew Collett
On 9/01/2012, at 8:22 am, James wrote:

> I tried to use this myself on the first bar of a piece to get a
> 'squashed' hairpin linger by extending the measure but I cannot seem
> to *only* make it affect the first measure.


> The rest of the measures are also affected. I wonder if you or anyone
> else knows how to do this just for a single measure.

You need a \newSpacingSection each time you want to change the spacing.  In 
particular, you need a new one for the \revert as well as for the \override.

\relative c' {
 \time 3/4
 \override Score.SpacingSpanner #'spacing-increment = #2
 \newSpacingSection
 c'2.\sfz\> |
 \revert Score.SpacingSpanner #'spacing-increment
 \newSpacingSection
 c4\f c r | c2.\fz\> |
 r4 r g8\fz r |
}

In this particular case you don't actually need the first \newSpacingSection, 
since it's the beginning of the piece, which naturally is the beginning of a 
spacing section anyway.  But in general you would need both.

Best wishes,
Matthew


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


Re: Reduce width of single measure

2012-01-08 Thread Xavier Scheuer
On 8 January 2012 20:22, James  wrote:
> Xavier,
>
> […]
>
> I tried to use this myself on the first bar of a piece to get a
> 'squashed' hairpin linger by extending the measure but I cannot seem
> to *only* make it affect the first measure.
>
> version "2.14.1"
>
> \relative c' {
>  \time 3/4
>  \override Score.SpacingSpanner #'spacing-increment = #2
>  \newSpacingSection
>  c'2.\sfz\> |
>  \revert Score.SpacingSpanner #'spacing-increment
>  c4\f c r | c2.\fz\> |
>  r4 r g8\fz r |
> }
>
> The rest of the measures are also affected. I wonder if you or anyone
> else knows how to do this just for a single measure.

James,

I am a simple user, not the "horizontal spacing expert" developer.  ;-)
I guess if you add  \newSpacingSection  when using
  \revert Score.SpacingSpanner #'spacing-increment  it should do it.

But if you want *only* to increase the length of the hairpin, I strongly
recommend you to use  \once \override Hairpin #'minimum-length = #8
instead.

Cheers,
Xavier

-- 
Xavier Scheuer 

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


Re: Reduce width of single measure

2012-01-08 Thread James
Matthew/Xavier

On 8 January 2012 20:11, Xavier Scheuer  wrote:
> On 8 January 2012 20:22, James  wrote:
>> Xavier,
>>
>> […]
>>
>> I tried to use this myself on the first bar of a piece to get a
>> 'squashed' hairpin linger by extending the measure but I cannot seem
>> to *only* make it affect the first measure.
>>
>> version "2.14.1"
>>
>> \relative c' {
>>  \time 3/4
>>  \override Score.SpacingSpanner #'spacing-increment = #2
>>  \newSpacingSection
>>  c'2.\sfz\> |
>>  \revert Score.SpacingSpanner #'spacing-increment
>>  c4\f c r | c2.\fz\> |
>>  r4 r g8\fz r |
>> }
>>
>> The rest of the measures are also affected. I wonder if you or anyone
>> else knows how to do this just for a single measure.
>
> James,
>
> I am a simple user, not the "horizontal spacing expert" developer.  ;-)
> I guess if you add  \newSpacingSection  when using
>  \revert Score.SpacingSpanner #'spacing-increment  it should do it.

Ah yes that makes sense. Thank you.

>
> But if you want *only* to increase the length of the hairpin, I strongly
> recommend you to use  \once \override Hairpin #'minimum-length = #8

Yes that is a nicer solution for what I need to do.

Again, thank you.


-- 
--

James

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


Fastest way of generating a preview

2012-01-08 Thread Nils
Hello list,

what is the fastest way to create a lilypond preview of your file?

I expect to trade quality and correctnes for speed. 

One example, which is even in the manual I think, is to deactivate the links in 
a pdf
#(ly:set-option 'point-and-click #f)

What about the non-pdf backends? Is it faster to generate a raster image?

Nils






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