Re: Once only custos

2014-05-08 Thread Jacques Menu
Hello Simon,

Thanks, I was mixing style and stencil without noticing!

JM

Le 6 mai 2014 à 19:27:15, Simon Albrecht simon.albre...@mail.de a écrit :

 Bonsoir Jacques,
 
 I don’t know why you altered the suggestion I sent you:
 Am 06.05.2014 17:06, schrieb Jacques Menu:
 Hello Simon,
 
 Thanks for your answer.
 
 
 With:
 
 %
 \version 2.18.1
 
 \layout {
 ragged-right = ##t
 \context { \Staff
 \consists Custos_engraver
 uncomment the following line
 % \override Staff.Custos.stencil = ##f
 }
 }
 
 \relative c' {
 d1
 b1
 and replace style by stencil in the following line.
 \once\override Staff.Custos.style = #ly:custos::print
 \break
 a1
 \break
 f1
 }
 %
 Unfortunately, I just noticed that this doesn’t work as expected – the \once 
 doesn’t seem to come into effect (Does anybody know why?).
 But thus you simply write
 
 
 \relative c' {
  d1
  b1
  \revert Staff.Custos.stencil
  \break
  a1
  \override Staff.Custos.stencil = ##f
  \break
  f1
 }
 
 and it works like expected.
 
 HTH,
 Simon
 

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


Re: Once only custos

2014-05-06 Thread Simon Albrecht

Bonsoir Jacques,

I don’t know why you altered the suggestion I sent you:
Am 06.05.2014 17:06, schrieb Jacques Menu:

Hello Simon,

Thanks for your answer.


With:

%
\version 2.18.1

\layout {
ragged-right = ##t
\context { \Staff
\consists Custos_engraver

uncomment the following line

% \override Staff.Custos.stencil = ##f
}
}

\relative c' {
d1
b1

and replace style by stencil in the following line.

\once\override Staff.Custos.style = #ly:custos::print
\break
a1
\break
f1
}
%
Unfortunately, I just noticed that this doesn’t work as expected – the 
\once doesn’t seem to come into effect (Does anybody know why?).

But thus you simply write


\relative c' {

d1

b1

\revert Staff.Custos.stencil

\break

a1

\override Staff.Custos.stencil = ##f

\break

f1

}


and it works like expected.

HTH,
Simon

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


Re: Once only custos

2014-04-01 Thread Simon Albrecht


Am 01.04.2014 09:43, schrieb Jacques Menu:

Hello Simon,

With:

  \layout { ragged-right = ##t }

\new Staff
\with {
   \consists Custos_engraver
   \override Custos.stencil = ##f
}
\relative c' {
   g'1 \override Staff.Custos.style = #'mensural
   \break
   d a' f'1
   b1
   \once\override Staff.Custos.stencil = ##t
   \break
   d a' f'1
}

the custo doesn’t show up unfortunately.
Sorry, I should have tried it myself. If you read the log output Lily 
generates, you see that ##t isn’t allowed as a value for Custos.stencil. 
So, you can look it up in the Internals reference, section 3.1.32, and 
look up the default value for the Custos stencil, which gives you

\once\override Staff.Custos.style = #ly:custos::print
and the output then is as desired.
(\once\revert was another idea I had, but \once and \revert don’t seem 
to go together.)


Happy Lilyponding,
Simon


JM


Le 31 mars 2014 à 23:06, Simon Albrecht simon.albre...@mail.de a écrit :


Am 31.03.2014 16:15, schrieb Jacques Menu:

Hello,

I’d like to display a custo at the end of one line only to help, but not for 
the whole score.

Couldn’t find an equivalent of:
\once\override Staff.Custos.style = #’mensural
though.

Thanks for the help!

Jacques Menu



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

You might try
\layout {
  \context { \Staff
\consists Custos_engraver
\override Custos.stencil = ##f
  }
}

and then turn the stencil on again by \once\override Staff.Custos.stencil = ##t 
only in the particular place where you want it.

HTH,
Simon
PS. Please do remember to always cc the list again unless you want to 
make a private remark; the info is then available to all.


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