Re: coloring notes with more voices in a staff

2024-03-18 Thread Pierre Perol-Schneider
Hi Joop,

I'd forget voices and do:

\version "2.24.3"

nr = \tweak color #red \etc

\relative c
  {
   f'2( g4.)
   8 |
   <\nr d f>4 q <\nr e g>16 <\nr f a>
a8 r4
  }

HTH, cheers,
Pierre

Le lun. 18 mars 2024 à 18:44, Go77  a écrit :

> Hi,
>
> I'm trying to color the note heads of a single voice in a staff. I tried
> to do that with the following code:
>
>
>
>
>
>
>
>
>
>
> *\version "2.24.3" \relative c   {f'2( g4.) << { d8 | f4
> f4 g16 a }{ \override NoteHead.color = #red  g8 |
> d4 d4 e16 f  \revert NoteHead.color } >> a8 r4   }  *
>
> This results in the noteheads of *both *voices being colored instead of
> only the upper one (in this case):
>
> So, is there any way to achieve my goal of coloring only the upper notes?
>
> Joop
>
>
>


Re: markup for circular bowing

2024-02-14 Thread Pierre Perol-Schneider
Hi Aaron,
Nice!
Personally I never mix path drawings and graphical command since the result
is not consistant.
E.g.
{ \magnifyStaff #2 c''1^\circular-bow }
Cheers,
Pierre

Le mer. 14 févr. 2024 à 12:13, Aaron Hill  a
écrit :

> On 2024-02-14 1:59 am, Orm Finnendahl wrote:
> > Hi,
> >
> >  I'd like to make a sign for circular bowing like in the attached
> > png. The example was done using an epsfile, but unfortunately that
> > doesn't export to svg, which I need. So it should be done using
> > lilypond's builtin markup commands (or scheme code). Can someone point
> > me to examples to do circular arcs with attached arrows (can also be
> > scheme code)?
> >
> > I couldn't find anything similar in the docs/internet.
>
> Here's a pretty simple attempt:
>
> 
> \version "2.22.0"
>
> circular-bow =
> -\tweak parent-alignment-X #CENTER
> -\markup \overlay {
>\path #0.15
>#'((moveto 1 0)
>   (curveto 1 -0.55 0.55 -1 0 -1)
>   (curveto -0.55 -1 -1 -0.55 -1 0)
>   (curveto -1 0.55 -0.55 1 0 1)
>   (curveto 0.33 1 0.55 0.85 0.707 0.707)
>)
>
>\translate #'(0.707 . 0.707)
>\rotate #-45
>\fontsize #-5
>\general-align #X #0.2
>\arrow-head #X #RIGHT ##t
> }
>
> { c''1^\circular-bow }
> 
>
>
> -- Aaron Hill


Re: markup for circular bowing

2024-02-14 Thread Pierre Perol-Schneider
Hi Orm,
How about:

\version "2.25.10"

#(define-markup-command (circBow layout props)()
  (interpret-markup layout props
   (markup
(#:stencil
 (make-path-stencil
   '(M 0 3.188
C -0.012 5.133 1.613 6.133 2.996 6.199
C 4.379 6.27 4.547 5.891 5.242 5.43
C 5.242 5.43 5.301 5.504 5.32 5.559
C 5.34 5.609 5.297 5.812  5.355 5.746
C 5.504 5.582 5.836 4.82 6.008 4.41
C 5.5 4.574 5.18 4.762 4.629 4.988
C 4.465 5.055 4.77 5.035 4.82 5.078
C 4.875 5.121 4.895 5.227  4.895 5.227
C 4.332 5.598 4.211 5.82 3.066 5.812
C 1.922 5.809 0.375 4.699 0.398 3.168
C 0.422 1.633 1.449 0.465 2.969 0.41
C 4.488 0.355 5.789 1.523 5.871 3.223
C 5.871 3.223 6.023 3.305 6.07 3.305
C 6.117 3.305 6.234 3.199  6.234 3.199
C 6.16 0.969 4.605 -0.031 2.996 0
C 1.387 0.035 0.012 1.242 0 3.188
Z)
   .02 .35 .35 #t)

{ c''1 ^\markup\circBow }

HTH, cheers,
Pierre

Le mer. 14 févr. 2024 à 10:59, Orm Finnendahl <
orm.finnend...@selma.hfmdk-frankfurt.de> a écrit :

> Hi,
>
>  I'd like to make a sign for circular bowing like in the attached
> png. The example was done using an epsfile, but unfortunately that
> doesn't export to svg, which I need. So it should be done using
> lilypond's builtin markup commands (or scheme code). Can someone point
> me to examples to do circular arcs with attached arrows (can also be
> scheme code)?
>
> I couldn't find anything similar in the docs/internet.
>
> --
> Orm
>


Re: Engraving a triple-stop for violin

2023-07-09 Thread Pierre Perol-Schneider
Thank you Valentin

Le dim. 9 juil. 2023 à 09:26, Valentin Petzel  a écrit :

> Hello Pierre,
>
> I think this should rather be
>
> { <\tweak duration-log #2 g \tweak duration-log #2 e' e''>2^. }
>
> Alternatively one can simply do
>
> \new Voice << g4 e' e''2^. >>
>
> (the \new Voice is necessary as there has been no music before this, so
> there
> does not exist a voice, and Lilypond will then create one Voice for each
> parallel music).
>
> Cheers,
> Valentin
>
> Am Sonntag, 9. Juli 2023, 07:07:53 CEST schrieb Pierre Perol-Schneider:
> > Hi Jun,
> > I'd do:
> >
> > { ^. }
> >
> > For some reason I couldn't find the dedicated documentation.
> > Cheers,
> > Pierre
> >
> > Le dim. 9 juil. 2023 à 06:54, Jun Tamura  a écrit :
> > > Hello!
> > >
> > > Is there a recommended practice to engrave a triple-stop for the
> violin as
> > > in the attached example - notes with different durations in a single
> > > triple-stop? The example is from the 1st violin part, bar 24, 1st
> > > movement,
> > > piano concerto no. 3 by Beethoven. This quite often appears in music
> for
> > > string instruments. I’ve looked through LSR but cannot find a good
> > > example.
> > > Your kind advice is appreciated.
> > >
> > > Jun
>
>


Re: Engraving a triple-stop for violin

2023-07-08 Thread Pierre Perol-Schneider
PS. Added to the LSR: https://lsr.di.unimi.it/LSR/Item?id=1170

Le dim. 9 juil. 2023 à 07:07, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Jun,
> I'd do:
>
> { ^. }
>
> For some reason I couldn't find the dedicated documentation.
> Cheers,
> Pierre
>
> Le dim. 9 juil. 2023 à 06:54, Jun Tamura  a écrit :
>
>> Hello!
>>
>> Is there a recommended practice to engrave a triple-stop for the violin
>> as in the attached example - notes with different durations in a single
>> triple-stop? The example is from the 1st violin part, bar 24, 1st movement,
>> piano concerto no. 3 by Beethoven. This quite often appears in music for
>> string instruments. I’ve looked through LSR but cannot find a good example.
>> Your kind advice is appreciated.
>>
>> Jun
>>
>>


Re: Engraving a triple-stop for violin

2023-07-08 Thread Pierre Perol-Schneider
Hi Jun,
I'd do:

{ ^. }

For some reason I couldn't find the dedicated documentation.
Cheers,
Pierre

Le dim. 9 juil. 2023 à 06:54, Jun Tamura  a écrit :

> Hello!
>
> Is there a recommended practice to engrave a triple-stop for the violin as
> in the attached example - notes with different durations in a single
> triple-stop? The example is from the 1st violin part, bar 24, 1st movement,
> piano concerto no. 3 by Beethoven. This quite often appears in music for
> string instruments. I’ve looked through LSR but cannot find a good example.
> Your kind advice is appreciated.
>
> Jun
>
>


Re: Get the margin values

2023-06-05 Thread Pierre Perol-Schneider
Simon, Jean, thank you both !

Le lun. 5 juin 2023 à 15:45, Jean Abou Samra  a écrit :

> Le lundi 05 juin 2023 à 15:34 +0200, Simon Albrecht a écrit :
>
> However, I can’t say why the right margin isn’t yet known by the time it
> is queried.
>
>
>
>
> Well, don't use “$defaultpaper”, that's the toplevel \paper block, which
> is almost always not what you want. If your markup command is used on score
> level like with { c'^\markup \margin ... }, it should be affected \paper
> settings on \score level. Use “layout” instead (or another name like
> “output-def” if you have defined your markup command as “(margin output-def
> props ...) (...)”, though the name “layout” is conventional).
>
> I seem to recall “$defaultpaper” is not normalized which could be why
> you're seeing undefined margins, but I didn't check. “layout” is definitely
> what you want in this case.
>
> Jean
>
>


Re: Get the margin values

2023-06-05 Thread Pierre Perol-Schneider
So far:

\version "2.24.1"

\paper {
  top-margin = 30
  left-margin = 30
}

#(define-markup-command
  (margin layout props)()
  (let* ((top-margin   (ly:output-def-lookup $defaultpaper 'top-margin))
 (bottom-margin  (ly:output-def-lookup $defaultpaper
'bottom-margin))
 (left-margin  (ly:output-def-lookup $defaultpaper 'left-margin))
 (right-margin   (ly:output-def-lookup $defaultpaper
'right-margin)))
(interpret-markup layout props
  #{
\markup\column {
  \line { top-margin = #top-margin }
  \line { bottom-margin = #bottom-margin }
  \line { left-margin = #left-margin }
  \line { right-margin = #right-margin }
}
  #})))

% Test:
\markup\margin

Error: not a markup
So how can I get the paper values as a markp?
Tia, cheers,
Pierre

Le lun. 5 juin 2023 à 09:54, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Dear List,
> How could I automagically get the margin values, including the default
> values ?
>
> Ex.
>
> \version "2.24.1"
>
> \paper {
>   top-margin = 30
>   left-margin = 30
> }
>
> \markuplist {
>   "top-margin = ?"
>   "bottom-margin = ?"
>   "left-margin = ?"
>   "right-margin = ?"
> }
>
> TIA, cheers,
> Pierre
>


Get the margin values

2023-06-05 Thread Pierre Perol-Schneider
Dear List,
How could I automagically get the margin values, including the default
values ?

Ex.

\version "2.24.1"

\paper {
  top-margin = 30
  left-margin = 30
}

\markuplist {
  "top-margin = ?"
  "bottom-margin = ?"
  "left-margin = ?"
  "right-margin = ?"
}

TIA, cheers,
Pierre


Re: Missing barline

2023-05-14 Thread Pierre Perol-Schneider
Hi Rip_Mus,
Try:

\relative c' {
  c1 \bar ".|:-|" \break
  c1
}

Cheers,
Pierre

Le dim. 14 mai 2023 à 11:17, Rip _Mus  a
écrit :

> Hello,
> in the following minimal example, at the end of the first line, the
> barline is missing:
>
> ```
> \version "2.24.0"
> \relative c' {
>   c1 \bar ".|:" \break
>   c1
> }
> ```
>
> Is it possible to find a simple solution to implement?
>
> Thank you!
>
> Rip_mus
>


Re: Circular staves

2023-04-24 Thread Pierre Perol-Schneider
Nice Jean !!
Cheers,
Pierre

Le dim. 23 avr. 2023 à 22:10, Jean Abou Samra  a écrit :

> Le dimanche 23 avril 2023 à 12:37 +1000, Andrew Bernard a écrit :
>
> Just checking - you can't make circular staves with notes in lilypond, can
> you? I know you can do nice circle of fifths diagrams as per an LSR
> example, but circular staves are way out of scope, aren't they?
>
> This came up in the Dorico forum and several users assert with no evidence
> or examples that lilypond can, so I wanted to check my view.
>
> What exactly makes you think it is not possible, given the control
> LilyPond gives you on the notation via Scheme?
>
> Attached is an include file showing that you can do basic circular scores
> in <100 lines of straightforward Scheme code. This is a quickly coded demo,
> it would need a bit of love to gracefully print beams or ledger lines. (I
> won't invest that effort if the person is staying on Dorico and not
> actually using it, though.)
>


Re: 2.25.2 optional fine endings

2023-03-11 Thread Pierre Perol-Schneider
Hi Paul,
Try:
\version "2.25.0"

voltaFine = \markup { \text \upright \fontsize #2 "Fine Ending" }
voltaCont = \markup { \text \upright \fontsize #2 "To Cont." }
\fixed c' {
   c1
   \set Score.repeatCommands = #(list(list 'volta voltaFine) 'start-repeat)
   c4 d c2 \bar "|."
   \set Score.repeatCommands = #(list(list 'volta voltaCont) 'end-repeat)
   f4 g a b
   \set Score.repeatCommands = #'((volta #f))
}

See: https://lilypond.org/doc/v2.23/Documentation/notation/long-repeats
HTH, Cheers,
Pierre

Le dim. 12 mars 2023 à 05:51, Paul Scott  a écrit :

> The warning is:
>
> warning: already have a volta spanner, ending that one prematurely
>
> On 3/11/23 9:49 PM, Paul Scott wrote:
> > The following code derived from NR 1.4.1 "Manual repeats" does what I
> > want but gives a warning.  I don't understand the code or
> > documentation well enough to do it correctly.
> >
> > \version "2.25.2"
> >
> > voltaFine = \markup { \text \upright \fontsize #2 "Fine Ending" }
> > voltaCont = \markup { \text \upright \fontsize #2 "To Cont." }
> > \fixed c' {
> >   c1
> >   \set Score.repeatCommands = #(list(list 'volta voltaFine))
> >   c4 d c2 \bar "|."
> >   \set Score.repeatCommands = #(list(list 'volta voltaCont))
> >   f4 g a b
> >   \set Score.repeatCommands = #'((volta #f))
> > }
> >
> > TIA for help with this,
> >
> > Paul
> >
> >
> >
>
>


Re: Tempo vs. markup

2023-03-11 Thread Pierre Perol-Schneider
Hi Ralph,
Try:
\version "2.24.0"

\relative c' {
\time 3/4
\tweak outside-staff-priority #0
\tempo \markup {
\concat {
  (
  \smaller \general-align #Y #DOWN \note {2} #1
  " = "
  \smaller \general-align #Y #DOWN \note {4} #1
  )
}
  }
  d4^\markup\italic{arco}^\markup\bold{Half as fast}^\markup\bold{Trio} d d
}

See also:
https://lilypond.org/doc/v2.24/Documentation/notation/default-values-for-outside_002dstaff_002dpriority
HTH, Cheers,
Pierre

Le dim. 12 mars 2023 à 05:45, Ralph Palmer  a
écrit :

> Greetings -
>
> Thanks to all the list members who respond so quickly and thoroughly to
> our questions.
>
> I'm running 2.24.0 and Frescobaldi 3.2 under Linux/Ubuntu.
>
> I cannot figure out how to move the tempo indication below the markups in
> this minimal example. Can anyone help me?
>
> All the best,
>
> Ralph
> __
> Ralph Palmer
> Seattle
> USA
> (he, him, his)
> palmer.r.vio...@gmail.com
>


Re: OneStaff and instrument names

2023-02-27 Thread Pierre Perol-Schneider
Hi Nuno,
This should work:

\layout {
  \context {
\OneStaff
\consists Instrument_name_engraver
  }
}

HTH, cheers,
Pierre


Le mar. 28 févr. 2023 à 02:36, Nuno Trocado  a écrit :

> Is it possible to have instrument names when using OneStaff? Nothing
> appears:
>
> \version "2.23.5"
>
> \new Score {
>   \new OneStaff \with { instrumentName = "Violin" } {
> \new Staff {
>   c d e f
>   \stopStaff
> }
> \new RhythmicStaff {
>   \omit Score.TimeSignature
>   c4 8 8
> }
>   }
> }
>


Re: Key and time change at end of piece

2023-02-17 Thread Pierre Perol-Schneider
Sorry, wrong link :
https://lists.gnu.org/archive/html/lilypond-user/2020-01/msg00541.html

Le ven. 17 févr. 2023 à 13:08, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Aberforth,
> Try :
> https://lists.gnu.org/archive/html/lilypond-user/2020-03/msg00258.html
> HTH, Cheers,
> Pierre
>
> Le ven. 17 févr. 2023 à 10:36, Aberforth D - Instrumentals <
> aberfor...@gmail.com> a écrit :
>
>> Hello,
>>
>> I am working on a complete piano vocal score for an opera. To keep things
>> manageable I work on individual pieces one at a time, one file per piece. I
>> intend to combine them later with a superseding file into a book. My
>> problem is this: Sometimes, a piece ends with a key change or time change
>> in anticipation of the next piece. In such cases a piece typically ends
>> with a double barline, because it is not the real end of the piece,
>> followed by the key change and time change symbols and open ended staff
>> lines at the right margin. However, when I use the following code, the
>> staff lines are not printed. How can I force Lilypond to print the staff
>> lines all the way to the end, without actually including more musical
>> content? Below is a short example that illustrates the problem. Thank you
>> for your help.
>>
>> \version "2.20.0"
>> \language "english"
>>
>> \score {
>>   \new Staff {
>> \key f \major \time 4/4
>> c'4 d' e' f' g' a' b' c'' \bar "||"
>> \clef "bass" \key g \major \time 3/4
>>   }
>> }
>>
>>


Re: Key and time change at end of piece

2023-02-17 Thread Pierre Perol-Schneider
Hi Aberforth,
Try :
https://lists.gnu.org/archive/html/lilypond-user/2020-03/msg00258.html
HTH, Cheers,
Pierre

Le ven. 17 févr. 2023 à 10:36, Aberforth D - Instrumentals <
aberfor...@gmail.com> a écrit :

> Hello,
>
> I am working on a complete piano vocal score for an opera. To keep things
> manageable I work on individual pieces one at a time, one file per piece. I
> intend to combine them later with a superseding file into a book. My
> problem is this: Sometimes, a piece ends with a key change or time change
> in anticipation of the next piece. In such cases a piece typically ends
> with a double barline, because it is not the real end of the piece,
> followed by the key change and time change symbols and open ended staff
> lines at the right margin. However, when I use the following code, the
> staff lines are not printed. How can I force Lilypond to print the staff
> lines all the way to the end, without actually including more musical
> content? Below is a short example that illustrates the problem. Thank you
> for your help.
>
> \version "2.20.0"
> \language "english"
>
> \score {
>   \new Staff {
> \key f \major \time 4/4
> c'4 d' e' f' g' a' b' c'' \bar "||"
> \clef "bass" \key g \major \time 3/4
>   }
> }
>
>


Re: bar check problems with a repeat volta whose first ending is an incomplete bar

2023-01-11 Thread Pierre Perol-Schneider
Hi Kenneth

Le jeu. 12 janv. 2023 à 07:30, Kenneth Wolcott  a
écrit :
...

> It is bar #8 that is the incomplete bar in the first repeat volta,
>
...

Two possibilities:
a) ignore the warning, since it compiles OK;
b) Change the measure length for each voice for this specific measure:
\set Timing.measureLength = #(ly:make-moment 2/8)
 (see:
https://lilypond.org/doc/v2.23/Documentation/notation/special-rhythmic-concerns.fr.html
)

HTH, cheers,
Pierre


Re: Simultaneous dotted notes

2023-01-02 Thread Pierre Perol-Schneider
Hi Paul,

Le lun. 2 janv. 2023 à 18:36, Paul Hodges  a écrit :


> In this instance I disagree.
>
>
> See Gould, p59 (near top): "Unless conditions are cramped, [unison] notes
> of different duration take a dot beside each notehead".
>

Hum, right, I've checked the page. For some reason it was more obvious in
my head... Maybe I had in mind "adjacend notes" p.56...
Finally I'd say both are acceptable ans depends on the editor's/
publisher's choice.
And in any case the tweak is more readable and looks better to me.
Thanks Paul, I should have checked before responding.
Cheers,
Pierre


Re: Simultaneous dotted notes

2023-01-02 Thread Pierre Perol-Schneider
Hi Joel,

Le lun. 2 janv. 2023 à 17:29, Joel C. Salomon  a
écrit :
...

> (a) Is the Lilypond default presentation really the better way of
> indicating this?  If so, I can just leave it alone.  Otherwise,
>
Yes it is, AFAIK (See E. Gould as ref. as far as I remember)

...

> (b) I've tried following the examples in
> https://lilypond.org/doc/v2.24/Documentation/notation/multiple-voices#collision-resolution
> and https://lilypond.org/doc/v2.24/Documentation/learning/moving-objects,
> but I can’t figure out what I need to `\tweak` to accomplish this
> horizontal shift.
>
...
A simple tweak could be : \tweak Dots.extra-offset #'(-1.5 . .5)  a4.-> %
<= approx.

HTH, Cheers,
Pierre


Re: Footnotes in Lyrics

2023-01-02 Thread Pierre Perol-Schneider
Hi Johannes,
Here's a little hack:

\markup \footnote \null "(1) footnote text"

\score { <<
  { a' b' c'' d'' c'' b' a' }
  \addlyrics {
 One two
 \markup \concat { three \raise #.7 \teeny (1) }
 four five six se -- ven
  }
  >>
}

HTH, Cheers,
Pierre

Le lun. 2 janv. 2023 à 10:50, Johannes Roeßler  a écrit :

> Hi Group and a Happy 2023!
>
> I have trouble using footnotes in lyrics (lyrics directly in the score..
> not below...) - I got rid of the annotation line successfully - but the
> position of the footnote number is terrible - and the tweaks are not
> "small" enough to find a good position.
>
> \version "2.24.0"
> \score { <<
> { a' b' c'' d'' c'' b' a' }
> \addlyrics {
>   \override Footnote.annotation-line = ##f
>  One two three
> \footnote #'(0.1 . 0.1) "footnote text" LyricText
> five six se -- ven
>  four
> }
> >>
> }
>
> Am I on a complete wrong way in handling this? It doesn't seem like a very
> rare idea to have footnotes in lyrics...
>
> Best regards
> Joei
>


Re: Ross’s rules

2022-12-21 Thread Pierre Perol-Schneider
Hi Eef,
See :
https://lilypond.org/doc/v2.23/Documentation/essay/short-literature-list.html
Cheers,
Pierre

Le jeu. 22 déc. 2022 à 07:29, Eef Weenink  a écrit :

> Always interested in new (for me new) sources of knowledge:
> "What are the  Ross’s rules?"
>
> Regards, Eef
>
> Op 21 dec. 2022, om 22:21 heeft Abraham Lee 
> het volgende geschreven:
>
>  Ross’s rules
>
>
>


Re: Modify flat flag appearance like beamed notes

2022-12-20 Thread Pierre Perol-Schneider
Le mar. 20 déc. 2022 à 11:09, Jean Abou Samra  a écrit :
...

> OK, here is another solution using an actual beam:
>
 ...
Very clever Jean! Thanks for the tip!!
Cheers,
Pierre


Re: Handbell notation

2022-12-04 Thread Pierre Perol-Schneider
See.
https://lilypond.org/doc/v2.23/Documentation/learning/i_0027m-hearing-voices.html
Cheers,
Pierre

Le dim. 4 déc. 2022 à 23:09, J Martin Rushton <
martinrushto...@btinternet.com> a écrit :

> Hi Pierre
>
> Yes, I like that. I hadn't come across \tiny before, it does help make
> things nicer. I assume that the "tenor bells" is simply an artefact from a
> template - I can't see that it does anything. In the alto bells would you
> advise the rest? Remember that ringers are following a line and a space of
> the staff, not a line of music, and I would think that s2 would be better.
>
> I assume the \voiceXXX clauses are to set the stem directions?
>
> Thanks,
> Martin
>
> On Sun, 2022-12-04 at 22:48 +0100, Pierre Perol-Schneider wrote:
>
> Hi Martin,
> Sorry but the last attempt is hardly readable.
> As Michael suggested previously, precising voices might help ; also, you
> could change some voice sizes for a better reading.
> E.g. something like:
> sopranBells = \fixed c'' {
>   \voiceOne
>   | %mes. 13
> g4 r8 g8 4 4
>   | %mes. 14
> g4 4 4 4
>   | %mes. 15
> s4
> }
>
> bassBells = \fixed c' {
>   \voiceTwo
>   | %mes. 13
> g4   
>   | %mes. 14
> 4 q  
>   | %mes. 15
> s4
> }
>
> tenorBells = \fixed c' {
>   \voiceThree \tiny
>   | %mes. 13
> s1
>   | %mes. 14
> s1
>   | %mes. 15
> s4
> }
>
> altoBells = \fixed c' {
>   \voiceTwo \tiny
>   | %mes. 13
> s8 b s d' d'2\rest
>   | %mes. 14
> s8  s  s4 s
>   | %mes. 15
> s
> }
>
> \new Staff <<
>   \new Voice \sopranBells
>   \new Voice \bassBells
>   \new Voice \tenorBells
>   \new Voice \altoBells
> >>
>
> HTH, cheers,
> Pierre
>
> Le dim. 4 déc. 2022 à 22:06, J Martin Rushton <
> martinrushto...@btinternet.com> a écrit :
>
> Hi Michael
>
> It just takes having to explain something to sort it. Those two
> problematic bars are now:
>
> which is much better. I still don't really like the tied quavers where a
> crotchet is rung, but then you can't have everything! The relevant code is:
>
> g8 ~ 8 8 ~ 8 4 4 | 8 ~ 8  c>8 ~ 8 4 4 |
>
> for the accompaniment.
>
> Thanks for making me think!
> Martin
>
> On Sun, 2022-12-04 at 20:39 +, J Martin Rushton wrote:
>
> Hi Michael
>
> I've mocked up the same two bars in LibreOffice as tablature:
>
>
>
> Where you see a dot and a number, the dot indicates half a beat's rest, so
> that row three of the first beat is interpreted as r8 b8 In the second
> bar, first beat, the "5 6" is c8 b8 The bolded top row indicates the
> tune, which typically needs to be run a little harder whilst the lower
> bells ring softer. The problem comes with setting, for instance, the first
> beat. I tried using things like
>
> << \relative c' {\stemDown g'4 4 g4 4 } \\ \relative c' { s8 b'8
> s8 d8 e4 d4 } >> |  << \relative c' { 4 4 } \\ \relative c'
> \autoBeamOff { c'8 8 e,8 8 } >> 4 4 |
>
> for the accompaniment but it is horrible and confused. I've a feeling that
> need to change the g'4 in the first beat to g'8 ~ g8 to keep all the stems
> together. I'll report back after testing.
>
> I hope that that clarifies things a little,
>
> Martin
>
> On Sun, 2022-12-04 at 13:14 -0500, Michael Werner wrote:
>
> Hi Martin.
>
> Well, I'm still pretty new to Lilypond but I have done some handbell
> music.  I don't play them myself - my mother is the musician while I'm her
> tech support, I guess would be the way to phrase it. My approach with
> the more complex pieces her group was doing was to generate a somewhat
> simplified version just for her. I would make sure to retain enough of the
> main melody line that she could follow it, while cutting out anything else
> I could. Of course I had to make sure to leave in the notes that she was
> responsible for. Wouldn't work too well without them. Also I would put a
> larger callout symbol above each note she rings to help her see them -
> she's pushing 80 years old and her eyesight is going. While I was at it, I
> would also produce a complete version. But that was mainly just me playing
> around and gaining some experience.
>
> A lot of that was made a bit easier by just carving up the piece in
> multiple voices, with each voice going into a variable. Then I could
> assemble the appropriate piece of music by just calling the variables I
> needed for that particular version. Lots of possibilities to redo entire
> scores without having to retype a whole bunch of music.
>
> As for handbell tablature I've never seen it. None of the handbell music
> she has brought h

Re: Handbell notation

2022-12-04 Thread Pierre Perol-Schneider
Hi Martin,
Sorry but the last attempt is hardly readable.
As Michael suggested previously, precising voices might help ; also, you
could change some voice sizes for a better reading.
E.g. something like:
sopranBells = \fixed c'' {
  \voiceOne
  | %mes. 13
g4 r8 g8 4 4
  | %mes. 14
g4 4 4 4
  | %mes. 15
s4
}

bassBells = \fixed c' {
  \voiceTwo
  | %mes. 13
g4   
  | %mes. 14
4 q  
  | %mes. 15
s4
}

tenorBells = \fixed c' {
  \voiceThree \tiny
  | %mes. 13
s1
  | %mes. 14
s1
  | %mes. 15
s4
}

altoBells = \fixed c' {
  \voiceTwo \tiny
  | %mes. 13
s8 b s d' d'2\rest
  | %mes. 14
s8  s  s4 s
  | %mes. 15
s
}

\new Staff <<
  \new Voice \sopranBells
  \new Voice \bassBells
  \new Voice \tenorBells
  \new Voice \altoBells
>>

HTH, cheers,
Pierre

Le dim. 4 déc. 2022 à 22:06, J Martin Rushton <
martinrushto...@btinternet.com> a écrit :

> Hi Michael
>
> It just takes having to explain something to sort it. Those two
> problematic bars are now:
>
> which is much better. I still don't really like the tied quavers where a
> crotchet is rung, but then you can't have everything! The relevant code is:
>
> g8 ~ 8 8 ~ 8 4 4 | 8 ~ 8  c>8 ~ 8 4 4 |
>
> for the accompaniment.
>
> Thanks for making me think!
> Martin
>
> On Sun, 2022-12-04 at 20:39 +, J Martin Rushton wrote:
>
> Hi Michael
>
> I've mocked up the same two bars in LibreOffice as tablature:
>
>
>
> Where you see a dot and a number, the dot indicates half a beat's rest, so
> that row three of the first beat is interpreted as r8 b8 In the second
> bar, first beat, the "5 6" is c8 b8 The bolded top row indicates the
> tune, which typically needs to be run a little harder whilst the lower
> bells ring softer. The problem comes with setting, for instance, the first
> beat. I tried using things like
>
> << \relative c' {\stemDown g'4 4 g4 4 } \\ \relative c' { s8 b'8
> s8 d8 e4 d4 } >> |  << \relative c' { 4 4 } \\ \relative c'
> \autoBeamOff { c'8 8 e,8 8 } >> 4 4 |
>
> for the accompaniment but it is horrible and confused. I've a feeling that
> need to change the g'4 in the first beat to g'8 ~ g8 to keep all the stems
> together. I'll report back after testing.
>
> I hope that that clarifies things a little,
>
> Martin
>
> On Sun, 2022-12-04 at 13:14 -0500, Michael Werner wrote:
>
> Hi Martin.
>
> Well, I'm still pretty new to Lilypond but I have done some handbell
> music.  I don't play them myself - my mother is the musician while I'm her
> tech support, I guess would be the way to phrase it. My approach with
> the more complex pieces her group was doing was to generate a somewhat
> simplified version just for her. I would make sure to retain enough of the
> main melody line that she could follow it, while cutting out anything else
> I could. Of course I had to make sure to leave in the notes that she was
> responsible for. Wouldn't work too well without them. Also I would put a
> larger callout symbol above each note she rings to help her see them -
> she's pushing 80 years old and her eyesight is going. While I was at it, I
> would also produce a complete version. But that was mainly just me playing
> around and gaining some experience.
>
> A lot of that was made a bit easier by just carving up the piece in
> multiple voices, with each voice going into a variable. Then I could
> assemble the appropriate piece of music by just calling the variables I
> needed for that particular version. Lots of possibilities to redo entire
> scores without having to retype a whole bunch of music.
>
> As for handbell tablature I've never seen it. None of the handbell music
> she has brought home for me to play with has had any tablature, just the
> "normal" music. Tablature for a few other instruments, yes, but not
> handbells.
>
> Well, this was kind of rambling - sorry about that. Like I said I'm still
> kinda new to Lilypond. It's been an interesting journey so far, with still
> quite a long ways to go. Still trying to get a decent grasp on the whole
> Scheme thing. Oh well. Just gotta keep trying, I guess. Hope maybe
> something in all this might have helped maybe a bit.
>
> Michael
>
> On Sun, Dec 4, 2022 at 12:46 PM J Martin Rushton <
> martinrushto...@btinternet.com> wrote:
>
> Hi all,
>
> Our handbell team rings some pieces from normal scores, and some from a
> tablature notation. I had a go at converting one of our favourite pieces
> from tablature to scores, but some of the bars become so complex that I'm
> not sure this helps at all.
>
>
>
>
> Has anyone else done handbells on Lilypond? As a supplementary question,
> does anyone know of any software that can generate handbell tablatures?
>
> Thanks,
> Martin
>
> --
>
>
> J Martin Rushton MBCS
>
> --
>
>
> J Martin Rushton MBCS
>
> --
>
> J Martin Rushton MBCS
>


Re: Different default arpeggio positions

2022-12-02 Thread Pierre Perol-Schneider
Hi Harm, hi Jean,
Le ven. 2 déc. 2022 à 23:49, Thomas Morley  a
écrit :
 ...

> Even for me - I don't understand that (x x)-line:
>
 ...
+1, thanks for asking!
Cheers,
Pierre


Re: Tie with slash (caesura) on the curve

2022-11-10 Thread Pierre Perol-Schneider
Hi Jean,

Le jeu. 10 nov. 2022 à 11:23, Jean Abou Samra  a écrit :
...

> This is nice! Just a thought: why use after-line-breaking
> here?

...

Bad habit? Respond without thinking long enough? Too proud it'd worked?
Missing knowledge? All?... Yeah, probably all...


> This is the sort of thing that can cause mysterious bugs
> if something else reads the stencil property before your
> after-line-breaking callback is executed. In general, it's
> good practice to stick with normal callbacks in most cases,
> and only use after-line-breaking if you really need it.
> Also, you can use grob-transformer to get the default value.
> This way, if the default changes in a future version, the code
> will still work. (grob-transformer is documented here:
> https://lilypond.org/doc/v2.22/Documentation/extending/callback-functions)
>

Thanks for the tip Jean, I'll keep that in mind ;)
Cheers,
Pierre


Re: Tie with slash (caesura) on the curve

2022-11-09 Thread Pierre Perol-Schneider
Hi Andrew, Hi Dirck,

Le jeu. 10 nov. 2022 à 02:40, Andrew Bernard  a
écrit :

> Never say anything is technically unplayable for pianists. Some of the
> technical ability of contemporary players leaves me breathless.
>
...
Actually it's for guitarists ;)

On 10/11/2022 12:02 pm, Dirck Nagy wrote:
>
...

> I am trying to notate ties with a double-slash (caesura) along the curve.
>
>  ...

How about:

\version "2.22.0"

oldTie = \once \override Tie.after-line-breaking =
 #(lambda (grob)
(let*
 ((stencil (ly:tie::print grob))
  (dir (ly:grob-property grob 'direction))
  (markup-stencil
   (grob-interpret-markup grob
 (markup #:scale (cons .8 0.5)
 (#:musicglyph "scripts.caesura.straight"
  (shift (- (interval-center (ly:stencil-extent stencil X))
   (interval-center (ly:stencil-extent markup-stencil X
  (new-stencil
   (ly:stencil-combine-at-edge stencil
Y dir
(ly:stencil-translate-axis markup-stencil shift X)
-.63)))
 (ly:grob-set-property! grob 'stencil new-stencil)))

{
  \clef"G_8"
  f'16 16
  \oldTie
  8~ 16 16 8
}

HTH, cheers,
Pierre


Re: different note head sizes on one stem

2022-10-30 Thread Pierre Perol-Schneider
Hi Paul,
See: https://lsr.di.unimi.it/LSR/Item?id=298
For a better answer, please provide a tiny example (
https://lilypond.org/tiny-examples.html).
Cheers,
Pierre

Le dim. 30 oct. 2022 à 18:34, Paul Scott  a écrit :

> How can I write different note head sizes on one stem?
>
> TIA,
>
> Paul
>
>
>
>


Re: Lilypond

2022-09-18 Thread Pierre Perol-Schneider
Hi Laurent, Hi Jan,
@Laurent, see:
https://lilypond.org/doc/v2.22/Documentation/notation/bars.html#bar-and-bar-number-checks
e.g.:
\version "2.22.0"
{ c' e' g' e'1 | 2  }
Cheers,
Pierre

Le dim. 18 sept. 2022 à 11:02, Jan Nieuwenhuizen  a écrit :

> pagani laurent writes:
>
> Can someone answer Laurent?
>
> > Hi Jan,
> >
> > Sorry to disturb you (possibly I should have gone to some forum but
> > this is so fundamental for me that if the answer is no, I won’t use
> > Lilypond, so I don’t want to bother entering the forum if it is to
> > leave it immediately).
> >
> > I am having a look at Lilypond and I have a very simple question :
> > I wrote a very simple test score :
> >
> > \version "2.22.0"
> > {
> > c' e' g' e'1 2
> > }
> >
> > and the compilation ran without error :
> >
> > Traitement de « /Users/laurent/Desktop/test.ly »
> > Analyse...
> > Interprétation en cours de la musique...
> > Pré-traitement des éléments graphiques...
> > Détermination du nombre optimal de pages...
> > Répartition de la musique sur une page...
> > Dessin des systèmes...
> > Conversion à « test.pdf »...
> > Compilation menée à son terme, avec succès.
> >
> > However, there is an obvious error : the e’1.
> >
> >
> >
> >
> > Does this mean that Lilypond will not report such errors when writing
> > a score ? That would be worrysome because that means that after having
> > written tons of pages, one has to go through the final product to
> > check for such errors and then locate them in the input file (I guess
> > there is no such interface as with some Latex editor where the pdf and
> > the latex are linked so that clicking on the pdf text, you are
> > directed to the corresponding latex code) which might not be very
> > obvious. If this is explained further in the manual, just tell me to
> > read the manual completely but again I won’t embark in this long task
> > if it is to give up at the end...
> >
> > Thanks
> > Laurent
> >
> >
> >
> > It’s tough to make predictions- especially about the future.
> > Yogi Berra
> >
>
> --
> Jan Nieuwenhuizen   | GNU LilyPond https://lilypond.org
> Freelance IT https://JoyOfSource.com | Avatar® https://AvatarAcademy.com
>
>


Re: color change working in only upper staff

2022-07-18 Thread Pierre Perol-Schneider
Hi William, hi Jim,

Le lun. 18 juil. 2022 à 16:38, William Rehwinkel <
will...@williamrehwinkel.net> a écrit :

> Hey Jim,
>
> To be honest, I'm not sure why the example you posted doesn't work, but I
> was able to find a workaround by using \contexts to apply the override to
> each staff, like so.
>
Using << { } // { } >> creates additional voices, so that pevious
oveerides  cannot apply

> \version "2.20.0"
>
> upper = \relative c'' { % remove \override
>   \clef treble
>   \key c \major
>   \time 4/4
>
> a-1 cis' \tuplet 3/2 {8~ }
>
>
> }
>
> lower = \relative c { % remove \override
>   \clef bass
>   \key c \major
>   \time 4/4
>
> <<{f'1}-2\\{r4. e32-1 cis-2 a-4 f-1 d2-2}>>
>
> }
>
> \score {
>   \new PianoStaff <<
> \set PianoStaff.instrumentName = #"Piano  "
> \new Staff = "upper" \upper
> \new Staff = "lower" \lower
>   >>
>   *\layout { *
> *\context {*
> *\Staff*
> *\override Fingering.color = #red*
> *}*
> *  }*
>   \midi { }
> }
>
Staff context is not needed here (see
https://lilypond.org/doc/v2.20/Documentation/internals/fingering_005fengraver
)

Here's a modified code with few shorcuts:

\version "2.20"

upper = \relative { %% <= c'' not needed
  %\override Fingering.color = #red
  %\clef treble %% <= default clef, not needed
  \key c \major
  %\time 4/4 %% <= default time signature, not needed
  a'-1 cis'  \tuplet 3/2 { 8~ q q } %% <= shorter chords
}

lower = \relative { %% <= c not needed
  %\override Fingering.color = #red
  \clef bass
  \key c \major
  %\time 4/4 %% <= default time signature, not needed
  << { f'1-2 } \\ { r4. e32-1 cis-2 a-4 f-1 d2-2 } >>
}

\score {
  \new PianoStaff <<
%\set PianoStaff.instrumentName = #"Piano  " %% <= see hereunder
\new Staff = "upper" \upper
\new Staff = "lower" \lower
  >>
  \layout {
\context {
\Voice
\override Fingering.color = #red
}
\context {
\PianoStaff
instrumentName = #"Piano"
\override InstrumentName.padding = #2 %% <= more accurate than
spaces
}
  }
  \midi { }
}

Cheers,
Pierre


Re: color change working in only upper staff

2022-07-18 Thread Pierre Perol-Schneider
Hi William, hi Jim,


Le lun. 18 juil. 2022 à 16:38, William Rehwinkel <
will...@williamrehwinkel.net> a écrit :

> Hey Jim,
>
> To be honest, I'm not sure why the example you posted doesn't work, but I
> was able to find a workaround by using \contexts to apply the override to
> each staff, like so.
>
Using << { } // { } >> creates addition


> \version "2.20.0"
>
> upper = \relative c'' { % remove \override
>   \clef treble
>   \key c \major
>   \time 4/4
>
> a-1 cis' \tuplet 3/2 {8~ }
>
>
> }
>
> lower = \relative c { % remove \override
>   \clef bass
>   \key c \major
>   \time 4/4
>
> <<{f'1}-2\\{r4. e32-1 cis-2 a-4 f-1 d2-2}>>
>
> }
>
> \score {
>   \new PianoStaff <<
> \set PianoStaff.instrumentName = #"Piano  "
> \new Staff = "upper" \upper
> \new Staff = "lower" \lower
>   >>
>   *\layout { *
> *\context {*
> *\Staff*
> *\override Fingering.color = #red*
> *}*
> *  }*
>   \midi { }
> }
>
>
> On 7/18/22 09:36, Jim Cline wrote:
>
> Hi David, thanks, I have attached a 1-measure example that illustrates the
> problem.  The upper staff is showing the requested color for the
> fingering.  I can see now that it has to do with the <<{}\\{}>> construct.
> The override does not apply to objects within << >> apparently.  Any
> suggestions will be appreciated.  regards, Jim
>
>
>
> \version "2.20.0"
>
> upper = \relative c'' {
>   \override Fingering.color = #red
>   \clef treble
>   \key c \major
>   \time 4/4
>
> a-1 cis' \tuplet 3/2 {8~ }
>
>
> }
>
> lower = \relative c {
>   \override Fingering.color = #red
>   \clef bass
>   \key c \major
>   \time 4/4
>
> <<{f'1}-2\\{r4. e32-1 cis-2 a-4 f-1 d2-2}>>
>
> }
>
> \score {
>   \new PianoStaff <<
> \set PianoStaff.instrumentName = #"Piano  "
> \new Staff = "upper" \upper
> \new Staff = "lower" \lower
>   >>
>   \layout { }
>   \midi { }
> }
>
> --
> William Rehwinkel
> william@williamrehwinkel.nethttps://williamrehwinkel.net
>
>


Re: Re-using "\with" contexts

2022-07-15 Thread Pierre Perol-Schneider
Hi Alasdair,
See also:
https://lilypond.org/doc/v2.22/Documentation/notation/defining-new-contexts.html
Cheers,
Pierre

Le ven. 15 juil. 2022 à 16:22, Lukas-Fabian Moser  a écrit :

> Hi Alasdair,
>
> > Here a new staff is instantiated; with about 10 lines of "\with"  to
> > change its appearance and behaviour.
> >
> > However, if I wish to use several such staves, I don't want to be
> > copying the "\with" material into each one.  Is it possible to create
> > a new context just from such a definition? What I mean is something like
> >
> > myStaff = staff \with {
> > < lots of lines of definition >
> > }
> >
> > so that I can simply create a new staff the way I want it with, for
> > example
> >
> > \new myStaff {
> >
> > }
> >
> > All I want is an example.  There is some information about defining a
> > new context, but in my case all I want is a tweaked version of a
> > current context.
>
> This is easier than one might think, but - somewhat counterintuitively -
> you need _two_ instances of the word \with.
>
> \version "2.23.7"
>
> rainbowSettings = \with {
>\override Clef.color = #red
>\override TimeSignature.color = #green
>\override StaffSymbol.color = #blue
>clefGlyph = "clefs.C"
> }
>
> \new Staff \with \rainbowSettings {
>\key d \major
>d'4
> }
>
> \new Staff \with {
>\rainbowSettings
>\magnifyStaff 2
> } {
>\key d \major
>d'4
> }
>
> And I just found out that you can even do
>
> rainbowSettings = {
>\override Clef.color = #red
>\override TimeSignature.color = #green
>\override StaffSymbol.color = #blue
>\set clefGlyph = "clefs.C"
> }
>
> (To wit, if rainbowSettings are entered as music instead of as a \with
> clause, context properties have to be set with \set.)
>
> Lukas
>
>
>


Re: help!

2022-02-01 Thread Pierre Perol-Schneider

  
  
Hi,
How about:


\version "2.23.5"
  
  \paper { ragged-right = ##f }
  
  voltaA = \markup\large { \text "Для повторения" }
  voltaB = \markup\large { \text "Для окончания" }
  
  \score {
    \new Staff 
    \with { \omit Clef \omit TimeSignature \autoBeamOff } 
    \fixed c' <<
      \new Voice { 
    \voiceOne \time 2/4
    \repeat volta 2 {
      s2*3
      \override Score.VoltaBracket.shorten-pair = #'(0 . 2)
      \set Score.repeatCommands = #(list (list 'volta voltaA)
  'start-repeat)
      { b4 f8 g e2 \mark\markup\musicglyph #"scripts.segno" }
      \override Score.VoltaBracket.shorten-pair = #'(3 . 0)
      \set Score.repeatCommands = #(list (list 'volta voltaB)
  'end-repeat)
      { b4 cis'8 dis' e'2 \fermata \bar "|." }
      \set Score.repeatCommands = #'((volta #f))
    }
      }
      \new Voice { 
    \voiceTwo
    \repeat volta 2 {
      s2*3
      \alternative {
    { g4 f8 g e2 }
    { g4 b8 a g2 \fermata }
      }
    }
      }
    >>
    \layout {}
  }


Cheers,
Pierre


Le 31/01/2022 à 16:55, Виноградов Юрий
  a écrit :


  
  
Hello. Help please. I have two volts of repetition. You
  need to put a segno sign between them. Example on the
  screenshot.
I am grateful to you in advance.
  
   
   
  С уважением,
  Виноградов Юрий.
   

  




Re: Placing articulations outside of the staff.

2021-10-07 Thread Pierre Perol-Schneider

Hi Calvin,
You could also use the 'tweak' command (note the '-' sign before it); ex:

\version "2.22"

{
  c''8\f[ -\tweak padding #1 ---> a'-.]

}

Cheers,
Pierre

Le 07/10/2021 à 13:12, Calvin Ransom a écrit :

Hi Kieren
I did mean to say accent and not accidental (was writing that email 
and this one when I should have gone to sleep 6 hours ago)

I will try that tomorrow.
Thank you for the help,

Calvin Ransom


Calvin Ransom

*From:* Kieren MacMillan 
*Sent:* Thursday, October 7, 2021 4:08:14 AM
*To:* Calvin Ransom 
*Cc:* Lilypond-User Mailing List 
*Subject:* Re: Placing articulations outside of the staff.
Hi Calvin,

> I am trying to make the tenuto and accidental stay outside of the 
staff when together.


Do you mean accent? Staccato?

> Am I not understanding how tweaks work correctly?

If you want things to stay outside the staff, you need to set their 
outside-staff-priority (which is #f by default):


    \override Script.outside-staff-priority = #0
    c''8[ ---> a']-.

Hope that helps!
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kierenmacmillan.info%2Fdata=04%7C01%7C%7Cba04eab720754e43912208d98982c35d%7C84df9e7fe9f640afb435%7C1%7C0%7C637692016978884292%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=Q6BU1dvdOgFGq5sHFjg91AWP7PPLxGyMkCXH2GyODrQ%3Dreserved=0 


‣ email: kie...@kierenmacmillan.info



test

2021-06-30 Thread Pierre Perol-Schneider
test


Re: Fingering collision

2021-05-30 Thread Pierre Perol-Schneider
Bonjour Stéphane,
The example you want shows three voices while your file has  only two...
So I'd do something like:

\version "2.20.0"

\new Staff \relative c' <<
  \new Voice {
\voiceOne
\set fingeringOrientations = #'(left)
2
  }
  \new Voice {
\voiceTwo
\set fingeringOrientations = #'(left)
4
  }
  \new Voice {
\voiceThree \stemDown %% or simply \voiceFour
\set fingeringOrientations = #'(left)
\set stringNumberOrientations = #'(down)
2
  }
>>

HTH, cheers,
Pierre

Le dim. 30 mai 2021 à 23:24, Stéphane Labbé  a
écrit :

> Hello,
>
> I'm trying to put fingering information in a lilypond file and the result
> I get is not correct.
>
> I extracted a simple case in the file attached.
>
> With lilypond, I get that :
>
>   [image: image.png]
>
>The for is displayed in the same place that the note...
>
> I try to have something like that :
>
>[image: image.png]
>
> Is there someone that has an idea to help me ?
>
> Thanks,
> Stéphane.
>


Re: Background Colour

2021-05-18 Thread Pierre Perol-Schneider
Oops, sorry admin, sent again...

Le mar. 18 mai 2021 à 14:55, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Wim,
> See: https://lsr.di.unimi.it/LSR/Item?id=699
> Cheers,
> Pierre
>
> Le mar. 18 mai 2021 à 14:30, Wim van Dommelen  a écrit :
>
>> Seeing the discussion on coloured lyrics, colour this and that, I
>> realized that for some parts I do change the Background Colour of the clefs
>> maually (using a standard ofice yellow marking (grease) pencil each time
>> after an update print. The purpose is to have a fast recognition point for
>> the eyes to jump to the next line and/or page.
>>
>> ...

> Is there also a possibility to automatically colour the background in
>> Lilypond, or is there a feature wishlist to which I could add this. A
>> variant marking a complete voice in another background colour or only the
>> clef(s) would probably also do.
>>
>> Regards,
>> Wim van Dommelen.
>>
>>
>>
>>


Re: Horizontal beam parallel to staff

2021-05-10 Thread Pierre Perol-Schneider
Hi Ahanu,
How about:

\version "2.20.0"
{
  %\override Beam.damping = #5
  \override Beam.positions = #'(5 . 5)
  g''8 b b c'' c'' b b g''
}

Cheers,
Pierre

Le mar. 11 mai 2021 à 04:04, Ahanu Banerjee  a
écrit :

> I know it is not standard practice, but I am looking for a way to make
> beams parallel to staff despite the noteheads on either side of the beam
> having different vertical positions on the staff.
>
> Setting beam damping to a high value reduces the slope substantially, but
> it doesn't go to zero. Can someone suggest a way to do this?
>
> \version "2.20.0"
> { \override Beam.damping = #5
>   g''8 b b c'' c'' b b g'' }
>
>
> Thanks,
> -Ahanu
>


Re: A work-in-progress guide to extending LilyPond

2021-04-05 Thread Pierre Perol-Schneider
Pretty impressive, great job Jean!
Cheers,
Pierre

Le lun. 5 avr. 2021 à 21:38, Jean Abou Samra  a écrit :

> Hi,
>
> A frequent complaint on this list is the lack
> of available documentation about LilyPond's
> inner workings and programming interfaces.
>
> Indeed, I have myself experienced the thorny
> path to getting a grasp of how to extend
> LilyPond in Scheme.
>
> To remedy this, pushed by Jacques, I wrote
> up the start of something that could someday
> resemble an introduction to extending and a
> guide covering programming topics. It is a
> work-in-progress and pretty incomplete at the
> moment. Nevertheless, it contains some unique
> material, like the explanations about Scheme
> engravers (totally undocumented).
>
> On the long-term, this might make its way into
> the official documentation in an adapted form.
>
> It's here:
>
> https://extending-lilypond.readthedocs.io/
>
> I'll be glad if this is useful to someone.
>
> I would also appreciate any comments you
> might have.
>
> Regards,
> Jean
>
>
>


Re: text above threader

2021-03-02 Thread Pierre Perol-Schneider
PS. See also:
http://lilypond.org/doc/v2.22/Documentation/notation/custom-titles-headers-and-footers.html#custom-layout-for-headers-and-footers

Le mar. 2 mars 2021 à 20:26, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Lydia,
> How about:
>
> \paper {
>   oddHeaderMarkup = \markup \fill-line  {  \null \teeny\sans "Octoechos:
> Sunday" }
>   evenHeaderMarkup = \oddHeaderMarkup
> }
>
> Cheers,
> Pierre
>
> Le mar. 2 mars 2021 à 20:14, Lydia Westerberg  a
> écrit :
>
>>
>> How can I use lilypond to insert the term “Octoechos: Sunday” (small font)
>>
>> in the upper right hand corner of the piece? See the sample. I inserted
>> the term
>> manually. I would prefer not to insert manually.
>>
>> See attached. Thanks.
>> L. Westerberg
>>
>>
>>
>>
>>
>>


Re: text above threader

2021-03-02 Thread Pierre Perol-Schneider
Hi Lydia,
How about:

\paper {
  oddHeaderMarkup = \markup \fill-line  {  \null \teeny\sans "Octoechos:
Sunday" }
  evenHeaderMarkup = \oddHeaderMarkup
}

Cheers,
Pierre

Le mar. 2 mars 2021 à 20:14, Lydia Westerberg  a
écrit :

>
> How can I use lilypond to insert the term “Octoechos: Sunday” (small font)
>
> in the upper right hand corner of the piece? See the sample. I inserted
> the term
> manually. I would prefer not to insert manually.
>
> See attached. Thanks.
> L. Westerberg
>
>
>
>
>
>


Re: Black borders with table using \markuplist and please center

2021-02-21 Thread Pierre Perol-Schneider
Oops, forget the 'baseline-skip...
Again:

\version "2.22.0"

cell = \markup
  \override #'(line-join-style . miter)
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3 -1.5))


\markup \fill-line {
  \column
  \override #'(padding . -.3)
  \table #'(0 0 0)
{
  %\underline { right-aligned center-aligned left-aligned }
  { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
  { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
  { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
  { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
  \with-dimensions-from\null
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -2.25 1.8)(lineto 11.25 1.8))
}
}

Cheers,
Pierre

Le dim. 21 févr. 2021 à 21:43, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Adam,
> Here's my attempt:
>
> \version "2.22.0"
>
> cell = \markup
>   \override #'(line-join-style . miter)
>   \override #'(line-cap-style . square)
>   \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3
> -1.5))
>
>
> \markup \fill-line {
>   \column
>   \override #'(baseline-skip . -.3)
>   \override #'(padding . -.3)
>   \table #'(0 0 0)
> {
>   %\underline { right-aligned center-aligned left-aligned }
>   { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
>   { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
>   { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
>   { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
>   \with-dimensions-from\null
>   \override #'(line-cap-style . square)
>   \path #.3 #'((moveto -2.25 1.3)(lineto 11.25 1.3))
> }
> }
>
> Cheers,
> Pierre
>
> Le dim. 21 févr. 2021 à 21:03, Adam Good  a
> écrit :
>
>> Harm thank you very much! I feel centered.
>>
>> If anyone could come up with a solution for borders it would be a nice
>> option.
>>
>> best,
>> Adam
>>
>> On Sun, Feb 21, 2021 at 11:57 AM Thomas Morley 
>> wrote:
>>
>>> Am So., 21. Feb. 2021 um 17:24 Uhr schrieb Adam Good <
>>> goodadamg...@gmail.com>:
>>> >
>>> > Hi Everyone,
>>> > I can make this pretty little table, see below but could someone
>>> please help me add borders / gridlines around the cells? And, I'd like to
>>> be able to center the table to the middle of the page.
>>> >
>>> > Thank you in advance!
>>> > Adam
>>> >
>>> > %%%
>>> > \markuplist {
>>> >   \override #'(padding . 4)
>>> >   \table #'(0 0 0)
>>> > {
>>> >   %\underline { right-aligned center-aligned left-aligned }
>>> >   "1" "2" "3"
>>> >   "4" "" "6"
>>> >   "7" "8" ""
>>> >   "10" "" "12"
>>> > }
>>> > }
>>>
>>> Borders / gridlines are not yet coded for \table, maybe I should have
>>> done so, at least as an option.
>>> Currently I've no time to delve into it maybe someone else can step in.
>>>
>>> If you don't mind loosing the page breaking option, centering is as
>>> simple as:
>>>
>>> \markup \fill-line {
>>>   \column
>>>   \override #'(padding . 4)
>>>   \table #'(0 0 0)
>>> {
>>>   %\underline { right-aligned center-aligned left-aligned }
>>>   "1" "2" "3"
>>>   "4" "" "6"
>>>   "7" "8" ""
>>>   "10" "" "12"
>>> }
>>> }
>>>
>>> Cheers,
>>>   Harm
>>>
>>


Re: Black borders with table using \markuplist and please center

2021-02-21 Thread Pierre Perol-Schneider
Hi Adam,
Here's my attempt:

\version "2.22.0"

cell = \markup
  \override #'(line-join-style . miter)
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -1.5 -1.5)(lineto -1.5 3)(lineto 3 3)(lineto 3 -1.5))


\markup \fill-line {
  \column
  \override #'(baseline-skip . -.3)
  \override #'(padding . -.3)
  \table #'(0 0 0)
{
  %\underline { right-aligned center-aligned left-aligned }
  { \combine\cell "1" }{ \combine\cell "3" }{ \combine\cell "3" }
  { \combine\cell "4" }{ \combine\cell "" }{ \combine\cell "6" }
  { \combine\cell "7" }{ \combine\cell "8" }{ \combine\cell "6" }
  { \combine\cell "10" }{ \combine\cell "" }{ \combine\cell "12" }
  \with-dimensions-from\null
  \override #'(line-cap-style . square)
  \path #.3 #'((moveto -2.25 1.3)(lineto 11.25 1.3))
}
}

Cheers,
Pierre

Le dim. 21 févr. 2021 à 21:03, Adam Good  a écrit :

> Harm thank you very much! I feel centered.
>
> If anyone could come up with a solution for borders it would be a nice
> option.
>
> best,
> Adam
>
> On Sun, Feb 21, 2021 at 11:57 AM Thomas Morley 
> wrote:
>
>> Am So., 21. Feb. 2021 um 17:24 Uhr schrieb Adam Good <
>> goodadamg...@gmail.com>:
>> >
>> > Hi Everyone,
>> > I can make this pretty little table, see below but could someone please
>> help me add borders / gridlines around the cells? And, I'd like to be able
>> to center the table to the middle of the page.
>> >
>> > Thank you in advance!
>> > Adam
>> >
>> > %%%
>> > \markuplist {
>> >   \override #'(padding . 4)
>> >   \table #'(0 0 0)
>> > {
>> >   %\underline { right-aligned center-aligned left-aligned }
>> >   "1" "2" "3"
>> >   "4" "" "6"
>> >   "7" "8" ""
>> >   "10" "" "12"
>> > }
>> > }
>>
>> Borders / gridlines are not yet coded for \table, maybe I should have
>> done so, at least as an option.
>> Currently I've no time to delve into it maybe someone else can step in.
>>
>> If you don't mind loosing the page breaking option, centering is as
>> simple as:
>>
>> \markup \fill-line {
>>   \column
>>   \override #'(padding . 4)
>>   \table #'(0 0 0)
>> {
>>   %\underline { right-aligned center-aligned left-aligned }
>>   "1" "2" "3"
>>   "4" "" "6"
>>   "7" "8" ""
>>   "10" "" "12"
>> }
>> }
>>
>> Cheers,
>>   Harm
>>
>


Re: TextSpanner custom line

2021-02-17 Thread Pierre Perol-Schneider
Hi Artur,
This is not exactly what you ask for but you could do something like:

\version "2.22.0"
{
  c'1
  -\tweak X-extent #'(0 . 0)
  ^\markup\pattern #25 #X #0 \musicglyph #"scripts.turn"
  1 1 1 1 1 1 1 1 1
}

Cheers,
Pierre

Le mer. 17 févr. 2021 à 16:48, Artur Wrona  a
écrit :

> Hi, dear Lilypond users. I ask at forum very rarement, always first
> find at Google, DuckDuck.. but now I didn't found solution for one
> thing. So... Is anybody, who knows, how to creat own symbol for
> textspanner? I would like for example use chars pattern instead line. I
> know that I must use \override TextSpanner.stencil or \override
> TextSpanner.style . I didn't found, how to define own line style. In
> future I'm going to use segment symbols from Bravura font (I know how
> to input Unicode symbols - rather easy to find).
> Thanks in advance.
> Artur Wrona.
>
>


Re: Keeping original system distances

2021-02-08 Thread Pierre Perol-Schneider
Hi Calvin,
You can specify a certain distance, e.g.:

\paper {
  system-system-spacing.basic-distance = 15 % <= to be set properly
  %ragged-bottom = ##f
  %ragged-last-bottom = ##f
}

HTH, cheers,
Pierre

Le lun. 8 févr. 2021 à 17:57, Calvin Ransom  a
écrit :

> I am attempting to conserve the spacing when combining two scores
> together. I want score one on one page and score two on the next page but
> when I use \pageBreak it changes the spacing of the systems in an unwanted
> way, is there a way for me to prevent this from happening?
> I am using the \include command to combine multiple scores into one
> document,
> Any help would be greatly appreciated.
>
> Calvin Ransom
> British Columbia
>


Re: Spannerize glyphs, markups etc. ?

2021-02-03 Thread Pierre Perol-Schneider
Hi Dimitris,
Here's a trial (every adjsutment are manual):

%%
\version "2.22.0"

curl =
\markup
  \stencil
#(make-path-stencil
  '(M 0 0 C 4 0 4 5 2.5 5 C 1 5 1 0 5 0)
  .15 .6 .6 #f)

mors =
\markup
  \stencil
#(make-path-stencil
  '(M 0 0 L .5 0 M 1.5 0 L 3 0)
  .15 .6 .6 #f)

\layout { ragged-right = ##f }

{
  a4 -\tweak extra-offset #'(.5 . 3)
  -\markup {
\with-dimensions-from\null
\rotate #25
\pattern #7 #X #0 \curl
  }
  a'''
  a -\tweak extra-offset #'(1 . 3.5)
  -\markup {
\with-dimensions-from\null
\rotate #25
\pattern #9 #X #.5 \mors
  }
  a'''
}
%%

Cheers,
Pierre

Le jeu. 4 févr. 2021 à 02:43, Dimitris Marinakis  a
écrit :

> Does anyone have any code that allows us to "spannerize" repeated or
> alternating paths and musicglyphs ?
> e.g. - • - • - • -  or even asymmetric patterns like - - • - > - •
> I think an effort for such a code would also be really useful for evolving
> spanners. (trills with various speeds etc.)
>
> If I'm not mistaken, the trill spanner is made from concatenated
> individual glyphs so at least the basic repeated symbol seems easier to
> achieve.
>
> It would be really cool having a flexible solution that works like this:
> \evolvingspanner
> arg1 left text (trill symbol etc.)
> arg2 how many of the 1st symbol
> arg3 how many of the 2nd symbol
>  ? manually enter how many glyphs are needed or perhaps a more
> automatic way to divide the spanner into segments and then just specify how
> many segments and glyphs will be used
> arg4 right text (end cap)
>
> ---
> \repeatspanner
> arguments that specify the type of pattern and how many symbols are used
>
> I understand this could get really complicated so I tried to keep it
> fairly modest.
>


Re: Aligning note to different voice across staves

2021-02-03 Thread Pierre Perol-Schneider
Hi Thibault, hi Carl,
Carl, your workaround's find but the hidden stem and flag could affect the
staff-staff spacings.
(A hidden whole/half note would affect the horizontal spacing)
E.g. :

\version "2.22.0"

\new PianoStaff <<
  \new Staff << \relative { e'16 f g e e f g e } \\ d'2 >>
  \new Staff { \clef bass e8 g e c }
>>

\new PianoStaff <<
  \new Staff << \relative { e'16 f g e e f g e } \\ d'2 s >>
  \new Staff { \clef bass << { \hideNotes f16 } \\ { e8 g e c } >> }
>>

% vs:

\new PianoStaff <<
  \new Staff << \relative { e'16 f g e e f g e } \\ d'2 s >>
  \new Staff { \clef bass << { \hideNotes\omit Stem f4 } \\ { e8 g e c } >>
}
>>

% vs:

\new PianoStaff <<
  \new Staff << \relative { e'16 f g e e f g e } \\ d'2 s >>
  \new Staff { \clef bass << { \hideNotes f1 } \\ { e8 g e c } >> }
>>

BTW, one basic question : is it a convention that an alto voice be align to
the lower voice ?

Cheers,
Pierre

Le mar. 2 févr. 2021 à 19:28, Thibaut Horel  a
écrit :

> When trying to typeset the attached bit of music (this is bar 18 of the
> Fugue in BWV 881), I encountered a problem captured by the following
> minimal example:
>
> --
> \version "2.22.0"
> \new PianoStaff <<
> \new Staff << \relative{e'16 f g e} \\ d'4 >>
> \new Staff { \clef bass e8[ g] }
>   >>
> --
>
> In this example, I would like the e8 in the lower staff to be aligned
> with the d4 in the upper staff. However, because of a note head
> collision, the d4 in the upper staff is shifted to the right, and the e8
> from the lower staff is instead aligned with the e16 in the upper staff.
>
> I was able to obtain the correct behavior by adding \once\override
> NoteColumn.X-offset = 1.25 before the e8 in the lower staff. But there
> are two things I don't like about this solution:
>
> 1. if I understand correctly, X-offset is measured in staff-space, so I
> am worried this might not scale properly when changing the note head
> size (for example by using a different font). It would be nicer to be
> able to express the offset in note head width, as for the force-hshift
> property for example.
>
> 2. My solution requires trial and error to find the correct value for
> the X-offset, whereas what I am trying to achieve can be expressed
> easily at the semantic level: I would like the e8 in the lower staff to
> be considered part of the second voice of the upper staff for vertical
> alignment purposes (in particular it should be shifted at the same time
> in case of a collision).
>
> Is there a better way to achieve what I am trying to do? Any insight
> into this problem would be greatly appreciated.
>
> Thanks,
> Thibaut
>
>


Re: Arpeggio confusion

2021-01-09 Thread Pierre Perol-Schneider
\autoBeamOff ??
Cheers,
Pierre

Le dim. 10 janv. 2021 à 00:25, Kieren Diment  a écrit :

> I think this should be an obvious thing, but I can't for the life of me
> find how to print out chords as individual notes.  Can anyone help
> illuminate?
>
> Minimal example below.
>
>
> \version "2.18.2"
> \score {
>   \relative c'' {
> % output a chord
> \chordmode { c1:m7 } \break
> % output the notes of the chord individually - how to do this more
> sentibly?
>   c,8 ees g bes r2
> }
>   \layout {}
>   }
>


Re: Repeats with bar-engraver removed

2021-01-05 Thread Pierre Perol-Schneider
Thank you Jean !

Le lun. 4 janv. 2021 à 21:42, Jean Abou Samra  a écrit :
...

> It is not at all silly. The path to the answer is a bit convoluted.
>
...


Re: Repeats with bar-engraver removed

2021-01-04 Thread Pierre Perol-Schneider
Maybe it's a silly question but why not simply something like:

\version "2.18"
{ c'1 \bar ".|:" c' c' c' \bar ":|." c' c'  }

Cheers,
Pierre

Le lun. 4 janv. 2021 à 20:23, Jean Abou Samra  a écrit :

> > I need to be able to engrave repeats, but I fear that the
> > bar-engraver, which I turned off for chant music, is responsible for
> > engraving the repeats: when I turn it back on, then the repeats
> > appear, but since the music is chant, it runs off the page.
> >
> > How to do this?
> >
> > The work is attached.
> >
> > Thank you.
>
> Hello,
>
> Your diagnosis is right. The Bar_engraver is responsible for engraving
> all kinds of bars and preventing breaks when there aren't any.
>
> Here is one solution (though not the only one and most probably not the
> most concise one): rewrite it to engrave just repeat bar lines while
> ignoring requests for regular bar lines and not preventing lines breaks
> anywhere.
>
>
> \version "2.21.80"
>
> %  Original file is at
> % https://gitlab.com/lilypond/lilypond/-/blob/master/lily/bar-engraver.cc
>
> #(define (Tweaked_bar_engraver context)
> (let ((bar #f)
>   (spanners '())
>   (considered-bar #f))
>   (make-engraver
> ((process-acknowledged translator)
>(if (not considered-bar)
>(begin
>  (set! considered-bar #t)
>  (let ((gl (ly:context-property context 'whichBar))
>(default-bar-type (ly:context-property context
> 'defaultBarType)))
>(if (and (string? gl)
> (not (equal? gl default-bar-type)))
>(begin
>  (set! bar (ly:engraver-make-grob translator
> 'BarLine '()))
>  (ly:grob-set-property! bar 'glyph gl))
>(if bar
>(for-each
>  (lambda (sp) (ly:spanner-set-bound! sp RIGHT bar))
>  spanners))
>(set! spanners '()))
> (end-acknowledgers
>   ((spanner-interface engraver grob source-engraver)
>  (if (and
>(or bar (not considered-bar))
>(ly:grob-property grob 'to-barline))
>  (set! spanners (cons grob spanners)
> ((stop-translation-timestep translator)
>(set! bar #f)
>(set! considered-bar #f)
>
> \layout {
>\context {
>  \Staff
>  \remove "Bar_engraver"
>  \consists #Tweaked_bar_engraver
>  \remove "Time_signature_engraver"
>}
> }
>
> See complete example attached.
>
> Best,
> Jean
>
>
>


Re: A comment about the documentation

2021-01-01 Thread Pierre Perol-Schneider
I've added the github link in the snippet defs.
Cheers,
Pierre

Le ven. 1 janv. 2021 à 17:46, Peter Toye  a écrit :

> Carl,
>
> Thanks. The problem is that map-some-music is obviously a very useful
> function if you're trying to write code that performs an action at many
> places in a music expression, but there's no pointer to it. How the snippet
> writer found it I've obviously no idea (maybe they also wrote
> map-some-music). As it happens I wanted to do exactly what the snippet
> writer wanted so cutting and pasting were easy.
>
> Another thing I want to do is to work out how to write a function that
> adds an octave beneath each note in a music expression to save a lot of
> time writing two-note chords.  I'm sure make-some-music will help here. But
> if I hadn't found the snippet, how would I ever have known where to look in
> the source - there's a lot of it?
>
> I hate to say it but I think the documentation is failing here, but can't
> see how to mend it easily. To start with, maybe a list of all the publicly
> available functions and their descriptions, but I suspect it would be far
> too long and need constant updating, which is not something that the LP
> documenters like for obvious reasons. Could it be mechanised?
>
> Best regards,
>
> Peter
> mailto:lilyp...@ptoye.com 
> www.ptoye.com
> 
> -
> Friday, January 1, 2021, 4:06:59 PM, Carl Sorensen wrote:
>
>
>
>
>
> On Fri, Jan 1, 2021 at 8:59 AM Peter Toye  wrote:
>
> Christian,
>
> Thanks Christian. How one is meant to know this I have no idea. Maybe it
> was meant to be in the missing 3rd chapter of the Extending manual.
> No, one is meant to search the source.  There are many scheme functions in
> the source that are used internally, but are not documented externally.
> Advanced users will search the source code for these functions.  In the
> case of the LSR, you have examples of their use.  So you know the name of
> the function, and you can search the source to find the code.
>
> If you are working on a machine (e.g. windows) that doesn't give you ready
> access to the source files, you can always go to the repository at GitLab
> or Savannah and search the source online.
>
> Best wishes,
>
> Carl
>


Re: offset \breathe sign

2020-12-30 Thread Pierre Perol-Schneider
See also:
http://lilypond.org/doc/v2.19/Documentation/internals/breathingsign
E.g.:

\version "2.19.58"
{
  \time 3/2 e''4 e'' a''2
  %\tweak extra-offset #'(-1 . 1)
  %\tweak X-offset #-1
  \tweak space-alist.first-note #'(fixed-space . 3.0)
  \breathe a''!2
}

Cheers,
Pierre

Le mer. 30 déc. 2020 à 11:01, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> For such tiny adjsutment why not 'extra-offset?
> E.g.
>
> \version "2.19.58"
> {
>   \time 3/2 e''4 e'' a''2
>   \tweak extra-offset #'(-1 . 1)
>   %\tweak X-offset #-5
>   \breathe a''!2
> }
>
> Cheers,
> Pierre
>
> Le mer. 30 déc. 2020 à 10:55, Johannes Roeßler  a écrit :
>
>> thx Pierre - thats whta I tried - doesn't work..
>> \version "2.19.58"
>> {\time 3/2 e''4 e'' a''2 \tweak X-offset #-5 \breathe a''!2}
>>
>> Cheers
>> Joei
>>
>> Hi Johannes,
>> How about:
>>
>> \version "2.20"
>> { c'1 \tweak X-offset #-5 \breathe 1 }
>>
>> Cheers,
>> Pierre
>>
>> Le mer. 30 déc. 2020 à 10:06, Johannes Roeßler  a écrit :
>>
>>> Hi group,
>>>
>>> what would be the right way to shift a \breathe sign to the left - I
>>> only managed to move it up and down with \offset commands but not to the
>>> left :(
>>>
>>> Using 2.19.58
>>>
>>> Cheers
>>> Joei
>>>
>>>
>>>
>>


Re: offset \breathe sign

2020-12-30 Thread Pierre Perol-Schneider
For such tiny adjsutment why not 'extra-offset?
E.g.

\version "2.19.58"
{
  \time 3/2 e''4 e'' a''2
  \tweak extra-offset #'(-1 . 1)
  %\tweak X-offset #-5
  \breathe a''!2
}

Cheers,
Pierre

Le mer. 30 déc. 2020 à 10:55, Johannes Roeßler  a écrit :

> thx Pierre - thats whta I tried - doesn't work..
> \version "2.19.58"
> {\time 3/2 e''4 e'' a''2 \tweak X-offset #-5 \breathe a''!2}
>
> Cheers
> Joei
>
> Hi Johannes,
> How about:
>
> \version "2.20"
> { c'1 \tweak X-offset #-5 \breathe 1 }
>
> Cheers,
> Pierre
>
> Le mer. 30 déc. 2020 à 10:06, Johannes Roeßler  a écrit :
>
>> Hi group,
>>
>> what would be the right way to shift a \breathe sign to the left - I
>> only managed to move it up and down with \offset commands but not to the
>> left :(
>>
>> Using 2.19.58
>>
>> Cheers
>> Joei
>>
>>
>>
>


Re: offset \breathe sign

2020-12-30 Thread Pierre Perol-Schneider
Hi Johannes,
How about:

\version "2.20"
{ c'1 \tweak X-offset #-5 \breathe 1 }

Cheers,
Pierre

Le mer. 30 déc. 2020 à 10:06, Johannes Roeßler  a écrit :

> Hi group,
>
> what would be the right way to shift a \breathe sign to the left - I
> only managed to move it up and down with \offset commands but not to the
> left :(
>
> Using 2.19.58
>
> Cheers
> Joei
>
>
>


Re: Custom beam subdivisions

2020-12-29 Thread Pierre Perol-Schneider
BTW, this works too:

\version "2.20.0"
\score {
  \new Staff \relative c' {
 \time 6/8
 \set baseMoment = #(ly:make-moment 1/24)
 \set beatStructure = 9,9
 \set subdivideBeams = ##t
 c16 c c c c32 c c c
 c16 c c c c32 c c c
  }
}

Cheers,
Pierre

Le mar. 29 déc. 2020 à 07:46, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Oops, sorry, not awake...
> How about:
>
> \version "2.20.0"
> \score {
>   \new Staff { << \relative c' {
>  \time 6/8
>  \set baseMoment = #(ly:make-moment 1/64)
>  \set beatStructure = #'(16 8 16 8)
>  \set subdivideBeams = ##t
>  c16[ c c c c32 c c c]
>  c16[ c c c c32 c c c]
>   } >> }
> }
>
> Cheers,
> Pierre
>
> Le mar. 29 déc. 2020 à 07:08, Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com> a écrit :
>
>> Hi Vaylor,
>>
>> Le mar. 29 déc. 2020 à 03:36, Vaylor Trucks  a écrit :
>>
>>
>>> Any thoughts?
>>>
>>
>> ???
>> \version "2.20.0"
>> \score {
>>   \new Staff { << \relative c' {
>>  \time 6/8
>>  %\set baseMoment = #(ly:make-moment 1/8)
>>  \set beatStructure = #'(2 1 2 1)
>>  %\set subdivideBeams = ##t
>>  c16 c c c c32 c c c
>>  c16 c c c c32 c c c
>>   } >> }
>> }
>>
>> Cheers,
>> Pierre
>>
>


Re: Custom beam subdivisions

2020-12-28 Thread Pierre Perol-Schneider
Oops, sorry, not awake...
How about:

\version "2.20.0"
\score {
  \new Staff { << \relative c' {
 \time 6/8
 \set baseMoment = #(ly:make-moment 1/64)
 \set beatStructure = #'(16 8 16 8)
 \set subdivideBeams = ##t
 c16[ c c c c32 c c c]
 c16[ c c c c32 c c c]
  } >> }
}

Cheers,
Pierre

Le mar. 29 déc. 2020 à 07:08, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Vaylor,
>
> Le mar. 29 déc. 2020 à 03:36, Vaylor Trucks  a écrit :
>
>
>> Any thoughts?
>>
>
> ???
> \version "2.20.0"
> \score {
>   \new Staff { << \relative c' {
>  \time 6/8
>  %\set baseMoment = #(ly:make-moment 1/8)
>  \set beatStructure = #'(2 1 2 1)
>  %\set subdivideBeams = ##t
>  c16 c c c c32 c c c
>  c16 c c c c32 c c c
>   } >> }
> }
>
> Cheers,
> Pierre
>


Re: Custom beam subdivisions

2020-12-28 Thread Pierre Perol-Schneider
Hi Vaylor,

Le mar. 29 déc. 2020 à 03:36, Vaylor Trucks  a écrit :


> Any thoughts?
>

???
\version "2.20.0"
\score {
  \new Staff { << \relative c' {
 \time 6/8
 %\set baseMoment = #(ly:make-moment 1/8)
 \set beatStructure = #'(2 1 2 1)
 %\set subdivideBeams = ##t
 c16 c c c c32 c c c
 c16 c c c c32 c c c
  } >> }
}

Cheers,
Pierre


Re: How to embed a hairpin inside markup?

2020-12-19 Thread Pierre Perol-Schneider
Hi Kenneth,
Tiny example? Version?
How about:

\version "2.20"

sfb = #(make-dynamic-script
#{ \markup { \dynamic "sf" \normal-text\italic "bell-like" } #})
niente = #(make-dynamic-script
   #{ \markup { \normal-text\italic "niente" } #})

\layout {
  indent = 0
  ragged-right = ##f
}

{
  \clef F
  \time 6/8
  \key d\minor
  d2.-> ~\sfb\> 2.
  2.->~\sf\> 2.
  a,2.->~\sf\> 2.~ 4. r\niente
}

HTH, cheers,
Pierre

Le dim. 20 déc. 2020 à 07:09, Kenneth Wolcott  a
écrit :

> Hi;
>
>   I've looked in Learning, Notation and Snippets.
>
>   I have attached a screenshot containing the markup that I need.
>
>   Basically, a dynamic, followed by the hairpin, and sometimes, some
> text at the right side of the hairpin.
>
>   This needs to be all on the same horizontal line, so I know all need
> to be in the markup.
>
>   I know markup has a dynamic option.
>
>   I know markup has a text option with formatting options.
>
>   But how to insert the hairpin (in this case I need a decrescendo).
>
>   I feel that the answer is staring me in the face, but I can't see it.
>
> Thanks,
> Ken Wolcott
>


Re: horizontal position of augmentation dots

2020-12-06 Thread Pierre Perol-Schneider
Hi Richard,
How about:

\version "2.20.0"
A = {f2~  f8. s16 s4 }
B = {bes,2~
 \tweak Dots.extra-offset #'(-.8 . 0)
 bes,8. bes,32 a, bes,16 c d e }

\score {
\new Staff  <<
 \new Voice   {\voiceOne \clef bass \A }
 \new Voice   {\voiceTwo \B }
>>
   }

Cheers,
Pierre

Le dim. 6 déc. 2020 à 15:32, Richard Shann  a
écrit :

> I struck me that this score:
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> \version "2.20.0"
> A = {f2~  f8. s16 s4 }
> B = {bes,2~  bes,8. bes,32 a, bes,16 c d e }
>
> \score {
> \new Staff  <<
>  \new Voice   {\voiceOne \clef bass \A }
>  \new Voice  {\voiceTwo \B }
> >>
>}
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>
> has the lower dotted note vertically aligned with the upper one (see
> attached pdf). I thought it might be nicer to move the lower dot closer
> to its notehead, but I couldn't find out how to do that. With a lot of
> things there are properties to tweak but this didn't seem to the the
> case for augmentation dots.
> Perhaps someone could steer me in the right direction?
>
> Richard Shann
>


Re: line break doesn't work

2020-11-28 Thread Pierre Perol-Schneider
Hi Rita,
Are you sure about: \set Score.timing = ##f ??
How about putting: \autoBeamOff
instead?
Cheers,
Pierre

Le sam. 28 nov. 2020 à 22:10, Rita Composer  a
écrit :

> Dear Professionals,
>
> Can you tell me why \break command doesn't work for me?
> I've just started to make a  something similar in outlook, but I can't go
> on in this point
>
> Thank you
> Rita
>


Re: Numero sign

2020-11-24 Thread Pierre Perol-Schneider
Hi David,
You have to look at the serif font family you have on your computer.
E.g.:

%%
\version "2.20.0"
\markuplist {
  \override #'(font-name . "Garamond") "№"
  \override #'(font-name . "Garamond bold") "№"
  \override #'(font-name . "Linux Libertine G") "№"
  \override #'(font-name . "Source Serif Pro") "№"
  \override #'(font-name . "Source Serif Pro Semibold") "№"
  \override #'(font-name . "Source Serif Pro Semibold") "№"
  \override #'(font-name . "Times New Roman") "№"
}
%%

HTH, cheers,
Pierre

Le mar. 24 nov. 2020 à 17:47, bobr...@centrum.is  a
écrit :

> Perhaps a bit off-topic but here goes:
>
> I want to use the 'numero' sign.  I can do it in two or three different
> ways but I have not found a way to get the version/typeface I'm after.  The
> one I want is the old fashioned style with the curved bulbous serifs on the
> legs of the N at the lower left and upper right corners.  An example can be
> seen on the last line of the first paragraph of the Wikipedia article
> linked below.
>
> Thanks,
>
> David
>
>
> https://en.wikipedia.org/wiki/Numero_sign
>
>


Re: Create a \prall with a slur above

2020-11-08 Thread Pierre Perol-Schneider
Or simply:

\version "2.20.0"
\new TabStaff  {
  \tabFullNotation
  g^\markup\left-align\tie \musicglyph #"scripts.prall"
}

Cheers,
Pierre

Le dim. 8 nov. 2020 à 18:34, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Viktor,
> See:
> http://lilypond.org/doc/v2.20/Documentation/notation/text-markup-commands
> E.g.:
> \version "2.20.0"
> \new TabStaff  {
>   \tabFullNotation
>   g
>   ^\markup\left-align {
>   \override #'(direction . 1)
>   \tie \musicglyph #"scripts.prall"
>   }
> }
>
> HTH, Cheers,
> Pierre
>
> Le dim. 8 nov. 2020 à 17:47, Viktor Mastoridis <
> viktor.mastori...@gmail.com> a écrit :
>
>> Hello,
>>
>> I would like to create an upper mordent (\prall) for guitar tabs, which
>> would have a curved slur over a single note.
>> The reasoning is that I would like to distinguish the regular Mordent
>> (where each note is plucked), with the Grace Mordent (where the first note
>> is plucked, the upper note is a quick hammer-on and the lower is a pull-off)
>> (See attachment for a more detailed rendition; or the image)
>>
>> So far, I came to this construct:
>> \version "2.20.0"
>> \new TabStaff  { \tabFullNotation
>> g\prall ^\markup { \path #0.2 #'((curveto 0 -0.5 0 2 1.5 0)  )} }
>>
>> I wonder whether there's a more elegant solution?
>>
>>
>> ---
>> ViktorMastoridis
>> fb.com/viktor.master.uk
>>
>>
>>


Re: Create a \prall with a slur above

2020-11-08 Thread Pierre Perol-Schneider
Hi Viktor,
See:
http://lilypond.org/doc/v2.20/Documentation/notation/text-markup-commands
E.g.:
\version "2.20.0"
\new TabStaff  {
  \tabFullNotation
  g
  ^\markup\left-align {
  \override #'(direction . 1)
  \tie \musicglyph #"scripts.prall"
  }
}

HTH, Cheers,
Pierre

Le dim. 8 nov. 2020 à 17:47, Viktor Mastoridis 
a écrit :

> Hello,
>
> I would like to create an upper mordent (\prall) for guitar tabs, which
> would have a curved slur over a single note.
> The reasoning is that I would like to distinguish the regular Mordent
> (where each note is plucked), with the Grace Mordent (where the first note
> is plucked, the upper note is a quick hammer-on and the lower is a pull-off)
> (See attachment for a more detailed rendition; or the image)
>
> So far, I came to this construct:
> \version "2.20.0"
> \new TabStaff  { \tabFullNotation
> g\prall ^\markup { \path #0.2 #'((curveto 0 -0.5 0 2 1.5 0)  )} }
>
> I wonder whether there's a more elegant solution?
>
>
> ---
> ViktorMastoridis
> fb.com/viktor.master.uk
>
>
>


Re: Key change at the end of a piece

2020-11-03 Thread Pierre Perol-Schneider
Hi Ralph,
See:
http://lilypond.1069038.n5.nabble.com/key-change-at-end-of-snippet-td227745.html
Cheers,
Pierre

Le mar. 3 nov. 2020 à 16:13, Ralph Palmer  a
écrit :

> Hi -
>
> I'm trying to add a clef change at the end of a fiddle tune, to show that
> the first section is in a different key than the second section (see
> attached photo). I've searched the Notation Reference, the Snippet
> Repository, and the User List archive, with no luck.
>
> I'd appreciate any help.
>
> All the best,
>
> Ralph
>
> --
> Ralph Palmer
> Brattleboro, VT
> USA
> (he, him, his)
> palmer.r.vio...@gmail.com
>


Re: LSR 1119 Force clef change in alternatives

2020-11-02 Thread Pierre Perol-Schneider
 Ok Aaron.
Cheers,
Pierre

Le ven. 30 oct. 2020 à 23:45, Aaron Hill  a
écrit :

> On 2020-10-30 2:19 pm, Thomas Morley wrote:
> > To the author (Pierre?) of
> > lsr.di.unimi.it/LSR/Item?u=1=1119
> >
> > Many thanks for your snippet, though, please add a description to it.
> > ;)
>
> Would this work better to avoid the hidden note showing up in MIDI?
>
> 
>\grace s4
>\once \override Staff.Clef.extra-spacing-width = #'(-1 . 0)
>\clef bass
> 
>
> Seeing as the grace note affects spacing, I added a suitable spacing
> modifier.
>
>
>
> -- Aaron Hill
>
>


Re: LSR 1119 Force clef change in alternatives

2020-11-02 Thread Pierre Perol-Schneider
Done! Thanks for the reminder Harm.
Cheers
Pierre

Le ven. 30 oct. 2020 à 22:19, Thomas Morley  a
écrit :

> To the author (Pierre?) of
> lsr.di.unimi.it/LSR/Item?u=1=1119
>
> Many thanks for your snippet, though, please add a description to it. ;)
>
> Thanks,
>   Harm
>
>


Re: Left-align the horizontal line that separates footnotes from the body of the score

2020-10-18 Thread Pierre Perol-Schneider
Hi Jun,
Try:

\paper {
  footnote-separator-markup = ##f
}

Cheers,
Pierre

Le dim. 18 oct. 2020 à 13:25, Jun Tamura  a écrit :

> Hello,
>
> There is a horizontal line between the footnotes and the body of the
> score. The length seems to be a half of the page width and aligned to the
> center of the page in default. How can I change the length and horizontal
> position of the line?
>
> Quite often footnotes are rather short. In such cases, I think that
> aligning the line to the left margin might make sense.
>
> Thanks in advance for your help.
>
> Jun (he/his/him)
>


Re: Removing bar connecting grouped staves

2020-10-17 Thread Pierre Perol-Schneider
Hi Gilberto,
Try:
\version "2.19.82"
\score {
 <<
 \new Staff {c'4 d' e' f'}
 \new Staff {c'4. d'4. e'4}
 \new Staff {c'2 d'2}
 >>
 \layout{
 \omit Score.BarLine
 \omit Score.SystemStartBar
 }
}

Cheers,
Pierre

Le sam. 17 oct. 2020 à 22:45, Gilberto Agostinho <
gilbertohasn...@googlemail.com> a écrit :

> Hi everyone,
>
> I am trying to create a diagram using Lilypond and I would like to
> remove the vertical bar connecting a series of grouped staves. This is
> the bar that is in the left hand side of a score and runs through all
> staves, and where instrument names are normally written. Would it be
> possible to hide it somehow?
>
> Below is a minimal example:
>
> \version "2.19.82"
> \score {
>  <<
>  \new Staff {c'4 d' e' f'}
>  \new Staff {c'4. d'4. e'4}
>  \new Staff {c'2 d'2}
>  >>
>  \layout{
>  \omit Score.BarLine
>  }
> }
>
> https://i.postimg.cc/W3krqyTF/line.png
>
> The diagram I am creating has a complex rhythm and I am using a group of
> staves so that the rhythm of each line matches the one above, which is
> why I am trying to use this trick of grouping them and then hiding the
> connecting bar.
>
> Many thanks,
> Gilberto
>
>


Re: Cut Common Time signature

2020-10-15 Thread Pierre Perol-Schneider
Hi Ritchie,
See also:
http://lilypond.org/doc/v2.20/Documentation/notation/displaying-rhythms.html#index-_005cnumericTimeSignature
Cheers,
Pierre

Le jeu. 15 oct. 2020 à 19:21, bobr...@centrum.is  a
écrit :

> \time 2/2
>
> That will, by default, produce the C with vertical slash.
>
> David
>
> - Ritchie Fraser  wrote:
> > Hello all,
> >
> > I am trying the engrave a Cut Common time signature (Capital C with a
> > vertical line through it) and the beginning of the stave and can't find
> > out how to achieve this.
> >
> > I have scoured the lilypond docs online but can't find any examples or
> > the syntax to use.
> >
> > "Cut Common" appears in the glossary (alla breve) but does not seem to
> > be in the syntax guide:-(
> >
> > Is this time signature just a brass band thing?
> >
> > Any help will be most welcome.
> >
> > Kind regards
> >
> > Ritchie
> >
> >
>
>
>


Re: Markup Between Systems

2020-10-12 Thread Pierre Perol-Schneider
Le lun. 12 oct. 2020 à 12:18, Xavier Scheuer  a écrit :


> One lead would be to "hack" the system-separator-markup.
>

Smart!
Cheers,
Pierre


Re: Dimensions vs outline

2020-10-05 Thread Pierre Perol-Schneider
Yes Jean, this  is exactly the type of example I was looking for. Thank you!
It should be added to:
https://lilypond.org/doc/v2.20/Documentation/notation/other#index-_005cwith_002ddimensions
and to:
https://lilypond.org/doc/v2.20/Documentation/notation/other#index-_005cwith_002doutline
as a speaking example.
Cheers,
Pierre

Le dim. 4 oct. 2020 à 22:26, Jean Abou Samra  a écrit :

> > Hi List,
> > I'm trying to understand the difference between "outline" and
> > "dimensions":
> >
> > \version "2.20.0"
> > \markup {
> >"1234"
> > \combine
> > \filled-box #'(-1 . 4) #'(-1 . 2.5) #1
> > \override #'(style . outline)
> > \override #'(thickness . 3)
> > \whiteout
> > \with-outline "555"  "5" "6789"
> > }
> > \markup {
> >"1234"
> > \combine
> > \filled-box #'(-1 . 4) #'(-1 . 2.5) #1
> > \override #'(style . outline)
> > \override #'(thickness . 3)
> > \whiteout
> > \with-dimensions-from "555"  "5" "6789"
> > }
> >
> > Can anyone show me a clearer example?
> > TIA, cheers,
> > Pierre
>
> Hi Pierre,
>
> Looks like we're temporarily swapping roles…
>
>  From the code, I believe outlines as in \with-outline are the contour
> used by skylines, so it will only make a difference in spacing. They are
> different from the outlines drawn by \whiteout, I think.
>
> Below, a somewhat far-fetched example:
>
> \version "2.21.7"
>
> hugeTilde = \markup \scale #'(4 . -4) "~"
>
> { c'1-\markup \with-dimensions-from \hugeTilde "5" -> }
> { c'1-\markup \with-outline \hugeTilde "5" -> }
>
> Attached is the output when using the -d debug-skylines option.
>
> In daily practice, I'm not sure it makes a significant difference though.
>
> Best,
> Jean
>
>


Re: creating "null" time signature for unmetered cadenzas

2020-10-04 Thread Pierre Perol-Schneider
Hi Andrew,
How about:

\version "2.20.0"
{
  \time 6/1
  \override Staff.TimeSignature.stencil = #(lambda (grob)
(grob-interpret-markup grob #{ \markup\compound-meter #'(0 0) #}))
  c'4
}

Cheers,
Pierre

Le dim. 4 oct. 2020 à 11:43, N. Andrew Walsh  a
écrit :

> Hi List,
>
> I have a piece (not mine) for solo violin, with multiple sections of
> effectively unmetered music (into which the client wants to draw free
> "graphic" figures, thus requiring empty space). I don't want to show the
> time signature I'm using to create the empty space (they're usually
> something like "\time 6/1"), but I still want to give the musician an
> indication that the passage is unmetered.
>
> In my own scores, I usually indicate this with a time signature with
> zeros: i.e., something like "\time 0/0".
>
> Is there a way to *display* that as a time signature, while leaving the
> *actual* time signature hidden in the printed score?
>
> Thanks,
>
> A
>


Dimensions vs outline

2020-10-03 Thread Pierre Perol-Schneider
Hi List,
I'm trying to understand the difference between "outline" and "dimensions":

\version "2.20.0"
\markup {
   "1234"
\combine
\filled-box #'(-1 . 4) #'(-1 . 2.5) #1
\override #'(style . outline)
\override #'(thickness . 3)
\whiteout
\with-outline "555"  "5" "6789"
}
\markup {
   "1234"
\combine
\filled-box #'(-1 . 4) #'(-1 . 2.5) #1
\override #'(style . outline)
\override #'(thickness . 3)
\whiteout
\with-dimensions-from "555"  "5" "6789"
}

Can anyone show me a clearer example?
TIA, cheers,
Pierre


Re: How do I engrave this articulation? a note with a dot and a right angle bracket underneath it?

2020-09-21 Thread Pierre Perol-Schneider
HI Ken,
Try:

\version "2.20.0"
\fixed c' {
  e4-1-.-> c'-5-. d-1-.-> b-4-.
}

Cheers,
PIerre

Le lun. 21 sept. 2020 à 22:46, Kenneth Wolcott  a
écrit :

> Hi;
>
>   c-. and c-> Lilypond articulation engravings I understand, but I
> don't understand how to put a dot underneath the note and then a right
> angle bracket under the dot.
>
> See attached screen shot.
>
> Thanks,
> Ken
>


Re:

2020-09-17 Thread Pierre Perol-Schneider

Hi Stefan,

convert-ly should do the job. (See: 
http://lilypond.org/doc/v2.19/Documentation/usage/invoking-convert_002dly.html)


Le 17/09/2020 à 10:02, Stefan Thomas a écrit :

\motiv #'Stefan {c'8 d' c' d' e2}
and later it can be used like this:
\Stefan {e f g }




Re: Fingering: showing strings by dots?

2020-09-04 Thread Pierre Perol-Schneider
Hi Harm and thank you for your detailed answer.
For some reason, at the first time, I was pretty sure it looked like curved
beams...
My mistake!
Cheers,
Pierre

Le dim. 23 août 2020 à 19:11, Thomas Morley  a
écrit :

> Am So., 23. Aug. 2020 um 18:39 Uhr schrieb Pierre Perol-Schneider
> :
> >
> > Sure Harm, here you go:
> https://www.youtube.com/watch?v=YND32HckZqk=1m24s
> > Cheers,
> > Pierre
> >
> > Le dim. 23 août 2020 à 11:02, Thomas Morley 
> a écrit :
> >>
> >> Am So., 23. Aug. 2020 um 10:52 Uhr schrieb Pierre Perol-Schneider
> >> :
> >> >
> >> > Dear Andrew,
> >> >
> >> > Le dim. 23 août 2020 à 08:09, Andrew Bernard <
> andrew.bern...@gmail.com> a écrit :
> >> >
> >> >> I play bass gamba - I've always wanted to do the lovely curved beams
> >> >> (and for Bach,. and the lot!). No chance lilypond will ever be able
> to,
> >> >> I don't think!
> >> >
> >> >
> >> > I saw Harm (T. Morley) making a short presentation (no details) of
> curved beams few months ago (in german).
> >> > So, yes, it's possible...
> >> >
> >> > Cheers,
> >> > Pierre
> >> >
> >> >
> >>
> >> Could you post the link?
> >> I don't remember lol
> >>
> >> Cheers,
> >>   Harm
>
> Hi Pierre,
>
> That's the video of my talk at Salzburg.
> Though, the topic was not about curvy beams. I just showed some images
> to demonstrate what's possible with user-code. Meant as an
> introduction.
> Among those were indeed wavy Beams (more attached).
> Alas, the code for it is much more complicated than the one I actually
> showed during the talk.
> And those wavy Beams don't follow the pitches (as those in the
> manuscripts by Bach etc). I developed the code for the (paid)
> type-setting of some avantgarde composition - there they stand more
> for only vague determined note-durations.
> If you look closely you'll see that the stems need to be adjusted
> frequently.
>
> To summarize, the code for those wavy Beams will not do what's desired
> here!
> Nevertheless it may be not impossible, though I've not the time to
> dive into it...
>
> Cheers,
>   Harm
>


Re: Google Summer of Code final submission!

2020-09-04 Thread Pierre Perol-Schneider
Brilliant Owen, thank you.
Cheers,
Pierre

Le mar. 1 sept. 2020 à 01:16, David Nalesnik  a
écrit :

> On Mon, Aug 31, 2020 at 3:33 AM Owen Lamb  wrote:
> >
> > Hello everyone!
> >
> > I've just completed Google Summer of Code for this year. My work has
> been on adding rudimentary support for SMuFL (a new music font standard)
> and bringing Emmentaler, LilyPond's default font, closer to
> SMuFL-compliance. You can take a look at a summary of my work here:
> >
> > http://lilypondblog.org/2020/08/google-summer-of-code-2020-smufl/
> >
> > (I fixed a few regressions in my code, but it looks like there's still
> one or two lurking around. I'm just going to call it here, though--there's
> not much I can do about them now.)
> >
> > It's been wonderful working with everyone in the development community,
> and I'd like to stick around if I can. I plan on continuing to improve
> SMuFL in LilyPond, but in case I don't follow through, I've included in the
> summary a list of what to do next.
> >
> > Happy LilyPonding,
> > Owen Lamb
> > Arizona State University
>
> Thank you so much for your efforts and dedication!  This is important work.
>
> Best,
> David
>
>


Re: White background below custom dynamic mark so that bar line is partially hidden

2020-09-04 Thread Pierre Perol-Schneider
Hi Claire,
See also:
https://lilypond.org/doc/v2.20/Documentation/notation/other#index-_005cwhiteout
Cheers,
Pierre

Le mar. 1 sept. 2020 à 15:02, Martín Rincón Botero <
martinrinconbot...@gmail.com> a écrit :

> Great! :-)
>
> On Tue 1. Sep 2020 at 14:27 Claire Meyer <
> claire.meyer.bourhis.lilyp...@gmail.com> wrote:
>
>> Hi Martin,
>>
>> Thank you ! It works :)
>>
>> Claire
>>
>> On Tue, Sep 1, 2020 at 2:22 PM Martín Rincón Botero <
>> martinrinconbot...@gmail.com> wrote:
>>
>>> Hi Claire,
>>>
>>> Perhaps
>>>
>>> dolcissimo = \tweak DynamicText.self-alignment-X #LEFT
>>> #(make-dynamic-script
>>> (markup #:whiteout #:normal-text #:italic "dolcissimo"))
>>>
>>> works?
>>>
>>> On Tue 1. Sep 2020 at 14:09 Claire Meyer <
>>> claire.meyer.bourhis.lilyp...@gmail.com> wrote:
>>>
 Hi,

 I have :

 [image: image.png]

 And would like something like :

 [image: Screenshot_20200901_140443.png]

 My dynamic mark looks like :

 dolcissimo = \tweak DynamicText.self-alignment-X #LEFT
 #(make-dynamic-script
 (markup #:normal-text #:italic "dolcissimo"))

 Has anyone an idea of how to do that ?

 Many thanks,
 Claire




 --
>>> www.martinrinconbotero.com
>>>
>>>
>>>
>>
>> --
> www.martinrinconbotero.com
>


Re: Fingering: showing strings by dots?

2020-08-23 Thread Pierre Perol-Schneider
Sure Harm, here you go: https://www.youtube.com/watch?v=YND32HckZqk=1m24s
Cheers,
Pierre

Le dim. 23 août 2020 à 11:02, Thomas Morley  a
écrit :

> Am So., 23. Aug. 2020 um 10:52 Uhr schrieb Pierre Perol-Schneider
> :
> >
> > Dear Andrew,
> >
> > Le dim. 23 août 2020 à 08:09, Andrew Bernard 
> a écrit :
> >
> >> I play bass gamba - I've always wanted to do the lovely curved beams
> >> (and for Bach,. and the lot!). No chance lilypond will ever be able to,
> >> I don't think!
> >
> >
> > I saw Harm (T. Morley) making a short presentation (no details) of
> curved beams few months ago (in german).
> > So, yes, it's possible...
> >
> > Cheers,
> > Pierre
> >
> >
>
> Could you post the link?
> I don't remember lol
>
> Cheers,
>   Harm
>


Re: Fingering: showing strings by dots?

2020-08-23 Thread Pierre Perol-Schneider
Dear Andrew,

Le dim. 23 août 2020 à 08:09, Andrew Bernard  a
écrit :

I play bass gamba - I've always wanted to do the lovely curved beams
> (and for Bach,. and the lot!). No chance lilypond will ever be able to,
> I don't think!
>

I saw Harm (T. Morley) making a short presentation (no details) of curved
beams few months ago (in german).
So, yes, it's possible...

Cheers,
Pierre


Re: Fingering: showing strings by dots?

2020-08-23 Thread Pierre Perol-Schneider
Le dim. 23 août 2020 à 07:56, Andrew Bernard  a
écrit :

> Hi Pierre,
>
> Bass gamba in France has very detailed markups, such as poussez (p) and
> tirez (t), push and pull (up and down bow), and a whole swag more. I'll
> dig up some Marin Marais and send to you.
>

Thank you Andrew.


Re: Fingering: showing strings by dots?

2020-08-23 Thread Pierre Perol-Schneider
Thank you for the examples.

Le dim. 23 août 2020 à 07:59, Alasdair McAndrew  a écrit :


> There are other issues with this music, which can bristle with expressive
> marks: bowing and fingering information, various shorthands for different
> sorts of ornaments, over and above the placement of the notes.  But I'll
> write another post about that.  For the fingering maybe I could possibly
> also use the markup command to place some characters atop each other, a
> digit and a row of closely spaced dots.  You'll see that although I
> mentioned in my original post that the dots are in an arc, that's not
> necessarily the case, and I could probably get away with a straight line.
>

See:
http://lilypond.org/doc/v2.19/Documentation/notation/other.fr.html#index-_005cpattern-1
E.g.:

\markup \pattern #4 #X #.2 \musicglyph #"dots.dot"

Cheers,
Pierre


Re: Fingering: showing strings by dots?

2020-08-22 Thread Pierre Perol-Schneider
Hi Alasdair,
I've never seen such notation. I'd be curious to see an example.
Maybe this could help: http://lsr.di.unimi.it/LSR/Item?id=1068
E.g.:

\version "2.20.0"

#(define-markup-command
  (circled-pattern layout props radius angle num arg)
  (number? number? number? markup?)
  (interpret-markup layout props
   (let* ((rep (abs num))(rad (abs radius)))
(cond
 ((= num 0) (markup ""))
 ((= num 1) (markup arg))
 (#t (markup
  (#:combine
   (#:null)
   (fold
(lambda (i prev)
 (markup
   (#:combine
(#:rotate
 (* i (/ angle rep))
 (#:concat (#:null #:hspace rad arg)))
   prev)))
(markup (#:null))
(iota (1+ rep))

four = \markup\translate #'(-.7 . 0) \rotate #45 \circled-pattern #2 #90 #4
"."

{
  c'-3^\four
}

Cheers,
Pierre

Le dim. 23 août 2020 à 04:23, Alasdair McAndrew  a écrit :

> I am trying to typeset some early 18th century French music for viola da
> gamba.  The standard notation, which I would like to keep, is that the
> string is indicated by a row of dots above the finger number.  That is, for
> example, a 4 with three dots over it (generally in a slight arc, rather
> than in a straight line), indicates using the fourth finger on the third
> string.
>
> Can this be achieved in Lilypond?  I can't find any references in the
> manual, but maybe I haven't looked hard enough...
>
> Thank you very much,
> Alasdair
>
> --
> https://numbersandshapes.net
>


Re: Guitar barré without text spanner

2020-08-14 Thread Pierre Perol-Schneider
Hi Francesco,
How about a simple markup? E.g.:

\version "2.20.0"

half = \markup\concat\fontsize #-5 { \raise #.6 "1"\raise #.2 "/"  "2"
\hspace #.2 }

{
  \clef "G_8"
  
  -\tweak X-offset #-2.5
  ^\markup\concat\tiny {
\half "C" \hspace #.2 "II"
\magnify #0.5 { \lower #.1 " ┐" }
  }
}

HTH, cheers,
Pierre

Le ven. 14 août 2020 à 15:15, Cantus Ornatus  a
écrit :

> Hi everyone,
>
> I apologize for the banal request, but I did not find any suggestion.
>
> I use \startBarre and \startHalfBarre, as shown here:
> http://lsr.di.unimi.it/LSR/Item?id=952
>
> How is possible using the same notation (of both kinds of barré,
> normal and half) without a text spanner, in order to mark barré just
> in one point?
> Thanks in advance,
> Francesco
>
>


Re: 2,21,4 released

2020-07-31 Thread Pierre Perol-Schneider
Yep Jonas, it works like a charm here!!

Le ven. 31 juil. 2020 à 21:39, Jonas Hahnfeld  a écrit :

> Here's a second attempt that falls back to copying the file contents in
> case the PDF file is opened like Frescobaldi does:
> https://cloud.hahnjo.de/index.php/s/9XBmyp9rKMRfYJM
> It works in my tests, but please double-check on your systems.
>
> Jonas
>
> Am Donnerstag, den 30.07.2020, 15:49 +0200 schrieb Pierre Perol-
> Schneider:
> > Thank you Jonas.
> > Unfortunately, it fails every second attempt, as v.2.21.4:
> > test: \version "2.21.5" { c'}
> >
> > Starting lilypond-windows.exe 2.21.5 [Untitled]...
> > Processing
> `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-g1lth8gp/tmpmt7elx5h/
> document.ly'
> > Parsing...
> > Interpreting music...
> > Preprocessing graphical objects...
> > Finding the ideal number of pages...
> > Fitting music on 1 page...
> > Drawing systems...
> > Converting to `document.pdf'...
> > fatal error: cannot rename `document-tmp-2708837.283386.pdf' to
> `document.pdf'
> > Exited with return code 1.
> >
> > Cheers,
> > Pierr
> >
> > Le jeu. 30 juil. 2020 à 15:22, Jonas Hahnfeld  a
> écrit :
> > > Am Dienstag, den 28.07.2020, 20:57 +0200 schrieb Jonas Hahnfeld:
> > > > Am Dienstag, den 28.07.2020, 17:28 +0200 schrieb Pierre Perol-
> > > > Schneider:
> > > > > Hi All,
> > > > > Under W10, the compilation fails after the second attempt:
> > > > >
> > > > > Starting lilypond-windows.exe 2.21.4 [Untitled]...
> > > > > Processing
> > > > >
> `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-8tj7w61h/tmp0qsn12pu/
> > > > > document.ly'
> > > > > Parsing...
> > > > > Interpreting music...
> > > > > Preprocessing graphical objects...
> > > > > Finding the ideal number of pages...
> > > > > Fitting music on 1 page...
> > > > > Drawing systems...
> > > > > Converting to `document.pdf'...
> > > > > C:/Program Files (x86)/LilyPond
> > > > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: In procedure
> > > > > delete-file in expression (delete-file dst):
> > > > > C:/Program Files (x86)/LilyPond
> > > > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: Permission
> denied
> > > > > Exited with return code 1.
> > > > >
> > > > > But works at the third attempt (but fails at the 4th etc.)
> > > >
> > > > I can reproduce this behavior for every compilation when the PDF file
> > > > is opened with Edge. I guess Frescobaldi opens the PDF by default,
> but
> > > > releases the file after an aborted compilation?
> > > > Tracked in https://gitlab.com/lilypond/lilypond/-/issues/6016
> > >
> > > Pierre, and all others using Windows: Could you give the following
> > > version a try? https://cloud.hahnjo.de/index.php/s/wKx3Wb822CKQsq6
> > > (Note: While the installer says 2.21.5, this is not at all what the
> > > final 2.21.5 will looks like. It's just current master with the fix
> > > below, so use with care!)
> > >
> > > This has a potential fix for the described problem by using some other
> > > functionality to move files:
> > > https://gitlab.com/lilypond/lilypond/-/merge_requests/291 This works
> > > for me with files opened by Edge.
> > > Testing with Frescobaldi would be appreciated, and also with special
> > > characters in file names. I tried to model this after the code
> > > Masamichi-san wrote in March, but I'm not sure I understand what it's
> > > really needed for?
> > >
> > > Jonas
> >
> >
>


Re: 2,21,4 released

2020-07-30 Thread Pierre Perol-Schneider
Thank you Jonas.
Unfortunately, it fails every second attempt, as v.2.21.4:
test: \version "2.21.5" { c'}

Starting lilypond-windows.exe 2.21.5 [Untitled]...
Processing
`C:/Users/Pierre/AppData/Local/Temp/frescobaldi-g1lth8gp/tmpmt7elx5h/
document.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `document.pdf'...
fatal error: cannot rename `document-tmp-2708837.283386.pdf' to
`document.pdf'
Exited with return code 1.

Cheers,
Pierr

Le jeu. 30 juil. 2020 à 15:22, Jonas Hahnfeld  a écrit :

> Am Dienstag, den 28.07.2020, 20:57 +0200 schrieb Jonas Hahnfeld:
> > Am Dienstag, den 28.07.2020, 17:28 +0200 schrieb Pierre Perol-
> > Schneider:
> > > Hi All,
> > > Under W10, the compilation fails after the second attempt:
> > >
> > > Starting lilypond-windows.exe 2.21.4 [Untitled]...
> > > Processing
> > > `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-8tj7w61h/tmp0qsn12pu/
> > > document.ly'
> > > Parsing...
> > > Interpreting music...
> > > Preprocessing graphical objects...
> > > Finding the ideal number of pages...
> > > Fitting music on 1 page...
> > > Drawing systems...
> > > Converting to `document.pdf'...
> > > C:/Program Files (x86)/LilyPond
> > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: In procedure
> > > delete-file in expression (delete-file dst):
> > > C:/Program Files (x86)/LilyPond
> > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: Permission denied
> > > Exited with return code 1.
> > >
> > > But works at the third attempt (but fails at the 4th etc.)
> >
> > I can reproduce this behavior for every compilation when the PDF file
> > is opened with Edge. I guess Frescobaldi opens the PDF by default, but
> > releases the file after an aborted compilation?
> > Tracked in https://gitlab.com/lilypond/lilypond/-/issues/6016
>
> Pierre, and all others using Windows: Could you give the following
> version a try? https://cloud.hahnjo.de/index.php/s/wKx3Wb822CKQsq6
> (Note: While the installer says 2.21.5, this is not at all what the
> final 2.21.5 will looks like. It's just current master with the fix
> below, so use with care!)
>
> This has a potential fix for the described problem by using some other
> functionality to move files:
> https://gitlab.com/lilypond/lilypond/-/merge_requests/291 This works
> for me with files opened by Edge.
> Testing with Frescobaldi would be appreciated, and also with special
> characters in file names. I tried to model this after the code
> Masamichi-san wrote in March, but I'm not sure I understand what it's
> really needed for?
>
> Jonas
>


Re: Re: 2,21,4 released

2020-07-28 Thread Pierre Perol-Schneider
No Mats, here's the test: \version "2.21.4" { c' }
Cheers,
Pierre

Le mar. 28 juil. 2020 à 19:19, Mats Bengtsson  a
écrit :

>
> On 7/28/20 5:28 PM, Pierre Perol-Schneider wrote:
>
> Hi All,
> Under W10, the compilation fails after the second attempt:
>
> You didn't, by chance, open the PDF file in Adober Reader or some other
> PDF viewer that locks the file, after the first attempt? Make sure that the
> file isn't open in any PDF viewer when you run Lilypond. I've been hit by
> the same problem a number of times, and the error message looks kind of
> familiar.
>
>Mats
>
>
>
> Starting lilypond-windows.exe 2.21.4 [Untitled]...
> Processing
> `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-8tj7w61h/tmp0qsn12pu/
> document.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Converting to `document.pdf'...
> C:/Program Files (x86)/LilyPond
> 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: In procedure
> delete-file in expression (delete-file dst):
> C:/Program Files (x86)/LilyPond
> 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: Permission denied
> Exited with return code 1.
>
> But works at the third attempt (but fails at the 4th etc.)
> Cheers,
> Pierre
>
>
>


Re: 2,21,4 released

2020-07-28 Thread Pierre Perol-Schneider
Hi All,
Under W10, the compilation fails after the second attempt:

Starting lilypond-windows.exe 2.21.4 [Untitled]...
Processing
`C:/Users/Pierre/AppData/Local/Temp/frescobaldi-8tj7w61h/tmp0qsn12pu/
document.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `document.pdf'...
C:/Program Files (x86)/LilyPond
2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: In procedure
delete-file in expression (delete-file dst):
C:/Program Files (x86)/LilyPond
2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: Permission denied
Exited with return code 1.

But works at the third attempt (but fails at the 4th etc.)
Cheers,
Pierre

Le mar. 28 juil. 2020 à 15:20, Phil Holmes  a écrit :

> Today we released build 2.21.4, the next development release of LilyPond.
> Amongst other updates, this corrects the problems with the documentation
> in
> the previous release.
>
> --
> Phil Holmes
>
>
>
>


Re: Different bartype in different staffs

2020-07-21 Thread Pierre Perol-Schneider
Hi Andreas,
Try: \once\set Staff.whichBar = "||"
See enclosed, HTH.
Cheers,
Pierre

Le mar. 21 juil. 2020 à 11:37, Andreas Stenberg 
a écrit :

> Hi!
>
> Working on an semi-diplomatoric edition on a late 16-th centhury piece I
> have run in to a problem with bars.
>
> This time I have opted , not to use the mensurestricht layout but, to
> use "!" bar as the default barline setting   \set Timing.defaultBarType
> ="!" in \global.
>
> The original partbook-print does not, of course, have any regular
> baring. Double barlines (or some times singel prolonged barlines) are
> used to mark:
>
> Sections in the piece and or where a repeat should start.
>
> In the orginal these lines are not allways printed in the same place in
> the different parts. At times only one voice have such a marking.
>
> Where the doublebar doesn't concide with the regular editorial "!" bars
> this is not a problem. Inserting the \bar "||" in the voice where it is
> in the orig. and hiding it in other voices is a god work around hack.
>
> The problem comes when a \bar "||" in one only voice concides with the
> regular "!" baring in the other voices.
>
> I would like to have the doublebar show  in one voice and the reguar "!"
> bars in the others without having to muck around with the timing (This
> is not a question about different timing / barlengts in different voices).
>
> Example:
>
>
> \version "2.20.0"
>
> \include "deutsch.ly"
>
> %% Decima parte.
>
> globalX = {
>
>\override Staff.TimeSignature.style = #'mensural
>
>\key c \major
>
>\set Timing.defaultBarType ="!"
> }
>
>
>
> %% PDF p.73.
>
> sopranoOneX = \relative c' {
>
>\globalX
>
>\time 4/4
>
>\set Score.tempoHideNote = ##t
>
>\tempo 2 =120
>
>% Music follows here.
>
>\slurDashed
>
>\set Timing.measureLength = #(ly:make-moment 8/4)
>
>d'1 e2 c2
>
>h2. h4 h4 h4  c4 d4
>
>e2. e4 d4 \once \override Staff.BarLine.transparent =##t g,4 a4 h4
> %% need to get regular "!" bar here
>
> }
>
>
>
>
> %% PDF p.174.
>
> sopranoTwoX = \relative c' {
>
>\globalX
>
>\slurDashed
>
>% Music follows here.
>
>h'1 g2 a2
>
>gis2. gis4 gis4 gis4 a4 h4
>
>c2. c4 h4 \bar "||" h4 c4 d4  %% need to get regular "!" bar here
>
> }
>
> %% PDF p.278.
>
> bassX = \relative c {
>
>\clef "bass"
>
>\globalX
>
>\slurDashed
>
>% Music follows here.
>
>g1 c2 a2
>
>e'2. e4 e4 e4 a4 g4
>
>c,2. c4 g2*1/2  \once \override Staff.BarLine.transparent =##t s4 r2
> \bar "||"   %% hack to have no bar in midle of the "bar" and "||" bar at
> the end of it in this bar.
>
>
> }
>
>
>
>
> sopranoOneVerseX = \lyricmode {
>
>% Lyrics follow here.
>
>\set stanza = "10."
>
>Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
>
>Non cer -- chi~al
>
> }
>
>
> sopranoTwoVerseX = \lyricmode {
>
>% Lyrics follow here.
>
>\set stanza = "10."
>
>Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
>
>Non cer -- chi~al
>
> }
>
>
> bassVerseX = \lyricmode {
>
>% Lyrics follow here.
>
>\set stanza = "10."
>
>Più lar -- ga~à po -- ve -- ri -- se Ro -- ma veg -- ge -- mi,
>
> }
>
>
>
> choirPartX = \new ChoirStaff <<
>
>\new Staff \with {
>
>  midiInstrument = "choir aahs"
>
>  instrumentName = "S. I"
>
>  \consists "Ambitus_engraver"
>
>} { \sopranoOneX }
>
>\addlyrics { \sopranoOneVerseX }
>
>\new Staff \with {
>
>  midiInstrument = "choir aahs"
>
>  instrumentName = "S. II"
>
>  \consists "Ambitus_engraver"
>
>} { \sopranoTwoX }
>
>\addlyrics { \sopranoTwoVerseX }
>
>\new Staff \with {
>
>  midiInstrument = "choir aahs"
>
>  instrumentName = "B."
>
>  \consists "Ambitus_engraver"
>
>} { \bassX }
>
>\addlyrics { \bassVerseX }
>
>  >>
>
>
>
>
>
> \score {
>
>
><<
>
>  \choirPartX
>
>>>
>
>\layout { }
>\header {
>
>  dedication = ##f
>
>  title = ##f
>
>  subtitle = ##f
>
>  composer = ##f
>
>  piece = "Decima parte."
>
>  % Remove default LilyPond tagline
>
>  tagline = ##f
>}
> }
>
> Ys Andreas Stenberg
>
>
>
\version "2.20.0"
\include "deutsch.ly"
%% Decima parte.
globalX = {
   \override Staff.TimeSignature.style = #'mensural
   \key c \major
   \set Timing.defaultBarType ="!"
}

%% PDF p.73.
sopranoOneX = \relative c' {
   \globalX
   \time 4/4
   \set Score.tempoHideNote = ##t
   \tempo 2 =120
   % Music follows here.
   \slurDashed
   \set Timing.measureLength = #(ly:make-moment 8/4)
   d'1 e2 c2
   h2. h4 h4 h4  c4 d4
   e2. e4 d4 %\once \override Staff.BarLine.transparent =##t 
   g,4 a4 h4
%% need to get regular "!" bar here
}


%% PDF p.174.
sopranoTwoX = \relative c' {
   \globalX
   \slurDashed
   % Music follows here.
   h'1 g2 a2
   gis2. gis4 gis4 gis4 a4 h4
   c2. c4 h4 h4 c4 d4  %% need to get regular "!" bar here
}
%% PDF p.278.
bassX = \relative c {
   \clef "bass"
   \globalX
   \slurDashed
   % Music follows here.
   g1 c2 a2
 

Re: Version 2.21.3

2020-07-17 Thread Pierre Perol-Schneider
Thank you Han-Wen!
Cheers,
Pierre

Le ven. 17 juil. 2020 à 12:44, Han-Wen Nienhuys  a
écrit :

> On Fri, Jul 17, 2020 at 8:38 AM Jonas Hahnfeld  wrote:
> > > Test: \version "2.21.3" { c' }
> > > With this last version, the first compilation is OK, but the second is
> failing:
> > >
> > > Starting lilypond-windows.exe 2.21.3 [Untitled]...
> > > Processing
> `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-j9twxm1l/tmpm7q61u5n/
> document.ly'
> > > Parsing...
> > > Interpreting music...
> > > Preprocessing graphical objects...
> > > Finding the ideal number of pages...
> > > Fitting music on 1 page...
> > > Drawing systems...
> > > Converting to `document.pdf'...
> > > C:/Program Files (x86)/LilyPond
> 2-21-3_bis/usr/share/lilypond/current/scm/backend-library.scm:108:5: In
> procedure rename-file in expression (rename-file pdf-name dest):
> > > C:/Program Files (x86)/LilyPond
> 2-21-3_bis/usr/share/lilypond/current/scm/backend-library.scm:108:5: File
> exists
> > > Exited with return code 1.
> > >
> > > Does anyone have the same issue?
> >
> > Phil reported the same problem when trying another release build.
> > Han-Wen, are you looking into this?
>
> See
> https://gitlab.com/lilypond/lilypond/-/merge_requests/252
>
> you can apply this fix locally by overwriting the .scm file with the
> ones in the attached zipfile.
>
> --
> Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen
>


Version 2.21.3

2020-07-16 Thread Pierre Perol-Schneider
Hi,
Test: \version "2.21.3" { c' }
With this last version, the first compilation is OK, but the second is
failing:

Starting lilypond-windows.exe 2.21.3 [Untitled]...
Processing
`C:/Users/Pierre/AppData/Local/Temp/frescobaldi-j9twxm1l/tmpm7q61u5n/
document.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `document.pdf'...
C:/Program Files (x86)/LilyPond
2-21-3_bis/usr/share/lilypond/current/scm/backend-library.scm:108:5: In
procedure rename-file in expression (rename-file pdf-name dest):
C:/Program Files (x86)/LilyPond
2-21-3_bis/usr/share/lilypond/current/scm/backend-library.scm:108:5: File
exists
Exited with return code 1.

Does anyone have the same issue?
TIA, cheers,
Pierre


Re: Long dynamic spanners

2020-07-14 Thread Pierre Perol-Schneider
See also:
https://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00405.html
Cheers,
PIerre

Le mar. 14 juil. 2020 à 11:08, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Aberforth,
> Please check:
> http://lilypond.1069038.n5.nabble.com/Text-spanner-with-middle-text-td233523.html
> HTH, cheers,
> Pierre
>
> Le mar. 14 juil. 2020 à 11:04, Aberforth D - Instrumentals <
> aberfor...@gmail.com> a écrit :
>
>> Hello,
>>
>> Further to my yesterday's question I have figured out how to remove the
>> repeated words, so that's 1 of 2 problems solved. I would still be very
>> happy if somebody could show me how to get the dashes lined up correctly
>> between words because I have to do that now manually in InkScape. Below is
>> the amended script of my latest attempt.
>>
>> Thanks,
>> Aberforth D
>>
>> \version "2.20.0"
>> \language "english"
>>
>> spanText =
>>   \override TextSpanner.bound-details.left.text = \etc
>>
>> RH = \repeat unfold 19 { \relative c' { g8[ c e g c g e c] | } }
>>
>> LH = \transpose c c, { \clef F \RH }
>>
>> dyn = {
>>   \override TextSpanner #'(bound-details left-broken text) = ##f
>>   s1\pp
>>   \spanText "cresc."
>>   s4.\startTextSpan s8 s2
>>   s1
>>   \spanText "poi"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "a"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "poco"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "a"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "poco"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "sino"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "al"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   s2.. s8\stopTextSpan
>>   s1\ff
>> }
>>
>> \score { <<
>>   \new PianoStaff <<
>> \new Staff <<
>>   \new Voice \RH
>> >>
>>   \new Dynamics \dyn
>> \new Staff <<
>>   \new Voice \LH
>> >>
>>   >>
>> >> }
>>
>>
>>
>> -- Forwarded message -
>> From: Aberforth D - Instrumentals 
>> Date: Mon, 13 Jul 2020 at 11:55
>> Subject: Long dynamic spanners
>> To: lilypond-user 
>>
>>
>> Hello,
>>
>> I'm having problems inserting a long dynamic spanner. It spans a total of
>> about 16 bars starting with pp and ending with ff. In between I need dashes
>> with regular spaced words: "cresc. poi a poco a poco sino al".
>>
>> I know how to do this with only 2 words where the first word goes into
>> the TextSpanner.bound-details.lef.text and the other goes into the
>> .right.text property. But in this case I can't figure out how to do it.
>> Below is my best attempt so far but I'm pretty sure I'm doing it the wrong
>> way.
>>
>> There are 2 problems with my approach:
>> 1) The words are repeated after a line break;
>> 2) The dashes don't always vertically line up with the next word.
>>
>> Can somebody point me to a better way to get this done?
>>
>> Many thanks in advance,
>> Aberforth D
>>
>> 
>> \version "2.20.0"
>> \language "english"
>>
>> spanText =
>>   \override TextSpanner.bound-details.left.text = \etc
>>
>> RH = \repeat unfold 19 { \relative c' { g8[ c e g c g e c] | } }
>>
>> LH = \transpose c c,, { \clef F \RH }
>>
>> dyn = {
>>   s1\pp
>>   \spanText "cresc."
>>   s4.\startTextSpan s8 s2
>>   s1
>>   \spanText "poi"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "a"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "poco"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "a"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "poco"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "sino"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   \spanText "al"
>>   s4. s8\stopTextSpan s2\startTextSpan
>>   s1
>>   s2.. s8\stopTextSpan
>>   s1\ff
>> }
>>
>> \score { <<
>>   \new PianoStaff <<
>> \new Staff <<
>>   \new Voice \RH
>> >>
>> \new Dynamics \dyn
>> \new Staff <<
>>   \new Voice \LH
>> >>
>>   >>
>> >> }
>> 
>>
>>
>


Re: Long dynamic spanners

2020-07-14 Thread Pierre Perol-Schneider
Hi Aberforth,
Please check:
http://lilypond.1069038.n5.nabble.com/Text-spanner-with-middle-text-td233523.html
HTH, cheers,
Pierre

Le mar. 14 juil. 2020 à 11:04, Aberforth D - Instrumentals <
aberfor...@gmail.com> a écrit :

> Hello,
>
> Further to my yesterday's question I have figured out how to remove the
> repeated words, so that's 1 of 2 problems solved. I would still be very
> happy if somebody could show me how to get the dashes lined up correctly
> between words because I have to do that now manually in InkScape. Below is
> the amended script of my latest attempt.
>
> Thanks,
> Aberforth D
>
> \version "2.20.0"
> \language "english"
>
> spanText =
>   \override TextSpanner.bound-details.left.text = \etc
>
> RH = \repeat unfold 19 { \relative c' { g8[ c e g c g e c] | } }
>
> LH = \transpose c c, { \clef F \RH }
>
> dyn = {
>   \override TextSpanner #'(bound-details left-broken text) = ##f
>   s1\pp
>   \spanText "cresc."
>   s4.\startTextSpan s8 s2
>   s1
>   \spanText "poi"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "a"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "poco"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "a"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "poco"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "sino"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "al"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   s2.. s8\stopTextSpan
>   s1\ff
> }
>
> \score { <<
>   \new PianoStaff <<
> \new Staff <<
>   \new Voice \RH
> >>
>   \new Dynamics \dyn
> \new Staff <<
>   \new Voice \LH
> >>
>   >>
> >> }
>
>
>
> -- Forwarded message -
> From: Aberforth D - Instrumentals 
> Date: Mon, 13 Jul 2020 at 11:55
> Subject: Long dynamic spanners
> To: lilypond-user 
>
>
> Hello,
>
> I'm having problems inserting a long dynamic spanner. It spans a total of
> about 16 bars starting with pp and ending with ff. In between I need dashes
> with regular spaced words: "cresc. poi a poco a poco sino al".
>
> I know how to do this with only 2 words where the first word goes into the
> TextSpanner.bound-details.lef.text and the other goes into the .right.text
> property. But in this case I can't figure out how to do it. Below is my
> best attempt so far but I'm pretty sure I'm doing it the wrong way.
>
> There are 2 problems with my approach:
> 1) The words are repeated after a line break;
> 2) The dashes don't always vertically line up with the next word.
>
> Can somebody point me to a better way to get this done?
>
> Many thanks in advance,
> Aberforth D
>
> 
> \version "2.20.0"
> \language "english"
>
> spanText =
>   \override TextSpanner.bound-details.left.text = \etc
>
> RH = \repeat unfold 19 { \relative c' { g8[ c e g c g e c] | } }
>
> LH = \transpose c c,, { \clef F \RH }
>
> dyn = {
>   s1\pp
>   \spanText "cresc."
>   s4.\startTextSpan s8 s2
>   s1
>   \spanText "poi"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "a"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "poco"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "a"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "poco"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "sino"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   \spanText "al"
>   s4. s8\stopTextSpan s2\startTextSpan
>   s1
>   s2.. s8\stopTextSpan
>   s1\ff
> }
>
> \score { <<
>   \new PianoStaff <<
> \new Staff <<
>   \new Voice \RH
> >>
> \new Dynamics \dyn
> \new Staff <<
>   \new Voice \LH
> >>
>   >>
> >> }
> 
>
>


Re: Turn off some span bars in a score

2020-07-14 Thread Pierre Perol-Schneider
Hi Harm,

Le mar. 14 juil. 2020 à 02:26, Thomas Morley  a
écrit :


> I now added "SpanBar" to the snippets description.
> Alas, it still isn't found while searching for SpanBar, maybe some
> delay in LSR ...
>

 Yep, it works! Thank you Harm,
Cheers,
Pierre


Re: Turn off some span bars in a score

2020-07-13 Thread Pierre Perol-Schneider
Hi again,
Either "span bar" or "spanbar" in the LSR search box do not show this
snippet.
Could we change the snippet description and add those words?
TIA, cheers,
Pierre

Le lun. 13 juil. 2020 à 13:33, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> a écrit :

> Hi Harm,
> Ok, for some reason I could not find it.
> I'll delete the snippet.
> Cheers,
> Pierre
>
> Le lun. 13 juil. 2020 à 13:23, Thomas Morley  a
> écrit :
>
>> Am Mo., 13. Juli 2020 um 12:43 Uhr schrieb Pierre Perol-Schneider
>> :
>> >
>> > Added to the LSR: http://lsr.di.unimi.it/LSR/Item?id=1117
>> > Cheers,
>> > Pierre
>>
>> Hi Pierre,
>>
>> we've already the doc-tagged
>> http://lsr.di.unimi.it/LSR/Item?id=686
>> "Removing connecting bar lines on StaffGroup, PianoStaff, or GrandStaff"
>>
>> Cheers,
>>   Harm
>>
>


Re: Turn off some span bars in a score

2020-07-13 Thread Pierre Perol-Schneider
Hi Harm,
Ok, for some reason I could not find it.
I'll delete the snippet.
Cheers,
Pierre

Le lun. 13 juil. 2020 à 13:23, Thomas Morley  a
écrit :

> Am Mo., 13. Juli 2020 um 12:43 Uhr schrieb Pierre Perol-Schneider
> :
> >
> > Added to the LSR: http://lsr.di.unimi.it/LSR/Item?id=1117
> > Cheers,
> > Pierre
>
> Hi Pierre,
>
> we've already the doc-tagged
> http://lsr.di.unimi.it/LSR/Item?id=686
> "Removing connecting bar lines on StaffGroup, PianoStaff, or GrandStaff"
>
> Cheers,
>   Harm
>


Re: Turn off some span bars in a score

2020-07-13 Thread Pierre Perol-Schneider
Added to the LSR: http://lsr.di.unimi.it/LSR/Item?id=1117
Cheers,
Pierre


Re: Turn off some span bars in a score

2020-07-13 Thread Pierre Perol-Schneider
Hi Andrew,
How about:

\version "2.20.0"

\layout {
  \context {
\Score
\name Score
\accepts QuartetGroup
  }
  \context {
\StaffGroup
\name QuartetGroup
\accepts TrioGroup
  }

  \context {
\StaffGroup
\override SpanBar.transparent = ##f
\name TrioGroup
\remove System_start_delimiter_engraver
  }
}

\score {
  \new QuartetGroup <<
\new TrioGroup <<
  \new Staff { \repeat unfold 10 s1 }
  \new Staff { \repeat unfold 10 s1 }
  \new Staff \with { instrumentName = "Viola" } {
\repeat unfold 10 s1 }
>>
\new Staff \with { instrumentName = "Cello" }
  {
\repeat unfold 5 s1
\once\override QuartetGroup.SpanBar.transparent = ##t
\repeat unfold 5 s1
  }
  >>
}

HTH, cheers,
Pierre

Le lun. 13 juil. 2020 à 08:57, Andrew Bernard  a
écrit :

> I have a string quartet score. At one point for a certain time the
> cello goes into 3/4 and not strictly sync'd with the other strings
> which are in 7/4. Is it possible to turn off the span bars just and
> only between the viola and cello?
>
> I don't think this needs an MWE does it?
>
> Andrew
>
>


Re: System spacing in a markup score

2020-07-12 Thread Pierre Perol-Schneider
Harm, thank you very much for the tip!
Cheers,
Pierre

Le dim. 12 juil. 2020 à 10:31, Thomas Morley  a
écrit :

> Am So., 12. Juli 2020 um 06:22 Uhr schrieb Pierre Perol-Schneider
> :
> >
> > Hi Tomthy,
> > Thanks but no. This gives me access to the paper defs, ok, not the
> actual system spacing inside the markup score.
> > Cheers,
> > Pierre
> >
> > Le sam. 11 juil. 2020 à 22:47, Timothy Lanfear  a
> écrit :
> >>
> >> On 11/07/2020 08:44, Pierre Perol-Schneider wrote:
> >> > Hi List,
> >> >
> >> > How can I access the paper defs in a markup score?
> >> > E.g. system-system-spacing?
> >> >
> >> How about something like this?
> >>
> >> \version "2.20.0"
> >>
> >> \paper {
> >>system-system-spacing.basic-distance = 5
> >> }
> >>
> >> \markup {
> >>\score {
> >>  \new Staff { \repeat unfold 10  { c' d' e' f' } g' \bar "|." }
> >>  #(newline)
> >>  #(display (cdr (assoc 'basic-distance (ly:output-def-lookup
> >> $defaultpaper 'system-system-spacing
> >>  \layout {
> >>system-count = 3
> >>line-width = 90
> >>\context { \Score \override BarNumber.font-size = #-4 }
> >>\context { \Staff \magnifyStaff #5/8 }
> >>  }
> >>}
> >> }
> >>
> >>
> >>
> >> --
> >> Timothy Lanfear, Bristol, UK.
> >>
> >>
>
> Hi Pierre,
>
> internally the markup-list-command `score-lines' transforms the given
> score into a list of stencils.
> The markup-command `score' calls `score-lines' and via
> `stack-stencils' said list of stencils is spaced vertically.
>
> The list of stencils itself contains no spacing-information. Spacing
> in the markup-command `score' depends on `baseline-skip.
> As for every multiline markup, like \column, flexible vertical spacing
> \paper variables are ignored.
>
> To mimic system-system-spacing.basic-distance = 15 you could do
>
> \markup {
>   \override #'(baseline-skip . 9.5)
>   \score {
> \new Staff { \repeat unfold 10  { c' d' e' f' } g' \bar "|." }
> \layout {
>   system-count = 3
>   line-width = 90
>   \context { \Score \override BarNumber.font-size = #-4 }
>   \context { \Staff \magnifyStaff #5/8 }
> }
>   }
> }
>
> Alas, system-system-spacing is a _flexible_ setting, baseline-skip not.
>
> Cheers,
>   Harm
>


Re: System spacing in a markup score

2020-07-12 Thread Pierre Perol-Schneider
Strangely, I've tried to use Harm's scoreSystemSystemExtraOffset function,
but has no effect...:(

\version "2.20.0"
\markup {
  \score {
{ \repeat unfold 10  { c' d' e' f' } g' \bar "|." }
\layout {
  system-count = 3
  line-width = 90
  %% =>
http://lilypond.1069038.n5.nabble.com/Can-system-system-spacing-be-altered-within-a-score-block-td232348.html#a232426
  \scoreSystemSystemExtraOffset #20
  \context { \Score \override BarNumber.font-size = #-4 }
  \context { \Staff \magnifyStaff #5/8 }
}
  }
}


  1   2   3   4   5   6   7   8   9   10   >