Re: Misunderstanding \footnote

2021-09-08 Thread Hans Aikema


> On 8 Sep 2021, at 03:33, Kevin Cole  wrote:
> 
> I am once again dipping my foot in the shallow end of the LilyPond.
> 
> I added a footnote to the title. It puts the superscript "*" at the end, but 
> then the footnote never appears anywhere.  What am I missing? (This isn't for 
> a book or anything fancy like that. And, initially I tried it without \concat 
> as just a single very long line, to the same effect.)
> 
> \header {
>   title = \markup {
> "The Song of the Heather"
> \footnote "*" \concat {
>   "* This song has been translated by the leading Irish,"
>   " Scotch Gaelic, Manx, Welsh, Breton, and Cornish poets"
>   " into their native languages for singing in each Celtic"
>   " country and at Pan-Celtic Festivals."
> }
>   }
> }
> 
> \score {
>   …
> }
> 

From the looks of it footnotes are only supported in the musical context and in 
**standalone text**, so not in markup of header fields.

Note how the example in the notation manual has the footnoted markup as a 
direct child of the \book, outside the header and outside the music.

kind regards,
Hans


change custom notehead for different stem direction

2021-09-08 Thread Orm Finnendahl
Hi,

 for flute pizzicato in contemporary music, it is quite common to use
a ">" as a notehead. With a stem down, the ">" should be changed to a
"<" as visible in the attached png.

I know how to change the notehead by overriding the NoteHead stencil
with an eps file, but can't find any information about automatically
changing the glyph depending on stem direction. Is that possible in
lilypond and does anybody have advice?

It's cumbersome to do this by hand each time stem direction is
changed.

--
Orm


Re: change custom notehead for different stem direction

2021-09-08 Thread Lukas-Fabian Moser

Hi Orm,


  for flute pizzicato in contemporary music, it is quite common to use
a ">" as a notehead. With a stem down, the ">" should be changed to a
"<" as visible in the attached png.

I know how to change the notehead by overriding the NoteHead stencil
with an eps file, but can't find any information about automatically
changing the glyph depending on stem direction. Is that possible in
lilypond and does anybody have advice?

It's cumbersome to do this by hand each time stem direction is
changed.


Unfortunately you didn't provide a working example, hence my cumbersome 
and ugly choice of > or < for "note-heads".


\version "2.22.0"

\relative
{
  \override NoteHead.stencil = #ly:text-interface::print
  \override NoteHead.text =
  #(lambda (grob)
 (let*
  ((notecolumn (ly:grob-parent grob X))
   (stem (ly:grob-object notecolumn 'stem))
   (direction (ly:grob-property stem 'direction)))
  (markup #:general-align
  Y CENTER
  (if (positive? direction) ">" "<"
  c'4 d e f g a b c d e f
}

Of course, one might adapt the general logic to either use glyphs better 
suited than ">"/"<", or even conditionally rotate/mirror _any_ note-head 
depending on the direction. (One might use grob-transformer for that.)


Lukas




Re: change custom notehead for different stem direction

2021-09-08 Thread Orm Finnendahl
Hi Lukas,

 thanks, that's perfect! I'll provide a working example to share as
soon as I've finished the code.

Best,
Orm

Am Mittwoch, den 08. September 2021 um 10:32:35 Uhr (+0200) schrieb 
Lukas-Fabian Moser:
> Hi Orm,
> 
> >   for flute pizzicato in contemporary music, it is quite common to use
> > a ">" as a notehead. With a stem down, the ">" should be changed to a
> > "<" as visible in the attached png.
> > 
> > I know how to change the notehead by overriding the NoteHead stencil
> > with an eps file, but can't find any information about automatically
> > changing the glyph depending on stem direction. Is that possible in
> > lilypond and does anybody have advice?
> > 
> > It's cumbersome to do this by hand each time stem direction is
> > changed.
> 
> Unfortunately you didn't provide a working example, hence my cumbersome and
> ugly choice of > or < for "note-heads".
> 
> \version "2.22.0"
> 
> \relative
> {
>   \override NoteHead.stencil = #ly:text-interface::print
>   \override NoteHead.text =
>   #(lambda (grob)
>  (let*
>   ((notecolumn (ly:grob-parent grob X))
>    (stem (ly:grob-object notecolumn 'stem))
>    (direction (ly:grob-property stem 'direction)))
>   (markup #:general-align
>   Y CENTER
>   (if (positive? direction) ">" "<"
>   c'4 d e f g a b c d e f
> }
> 
> Of course, one might adapt the general logic to either use glyphs better
> suited than ">"/"<", or even conditionally rotate/mirror _any_ note-head
> depending on the direction. (One might use grob-transformer for that.)
> 
> Lukas
> 



The code of the domra tremolo part.

2021-09-08 Thread Виноградов Юрий
arkup as a direct child of the \book, outside the header and outside the music.kind regards,Hans--Message: 4Date: Wed, 8 Sep 2021 10:18:42 +0200From: Orm Finnendahl <orm.finnend...@selma.hfmdk-frankfurt.de>To: lilypond-user@gnu.orgSubject: change custom notehead for different stem directionMessage-ID: <YThx4v8fILMTKz9X@t14s-orm.localdomain>Content-Type: text/plain; charset="utf-8"Hi, for flute pizzicato in contemporary music, it is quite common to usea ">" as a notehead. With a stem down, the ">" should be changed to a"<" as visible in the attached png.I know how to change the notehead by overriding the NoteHead stencilwith an eps file, but can't find any information about automaticallychanging the glyph depending on stem direction. Is that possible inlilypond and does anybody have advice?It's cumbersome to do this by hand each time stem direction ischanged.-- Orm-- next part --A non-text attachment was scrubbed...Name: pizz.pngType: image/pngSize: 858 bytesDesc: not availableURL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20210908/c430f2a9/attachment.png>--Message: 5Date: Wed, 8 Sep 2021 10:32:35 +0200From: Lukas-Fabian Moser <l...@gmx.de>To: lilypond-user@gnu.org, orm.finnend...@selma.hfmdk-frankfurt.deSubject: Re: change custom notehead for different stem directionMessage-ID: <b06a0e7a-ebe8-633c-2d97-2541087a0...@gmx.de>Content-Type: text/plain; charset=utf-8; format=flowedHi Orm,   for flute pizzicato in contemporary music, it is quite common to use a ">" as a notehead. With a stem down, the ">" should be changed to a "<" as visible in the attached png. I know how to change the notehead by overriding the NoteHead stencil with an eps file, but can't find any information about automatically changing the glyph depending on stem direction. Is that possible in lilypond and does anybody have advice? It's cumbersome to do this by hand each time stem direction is changed.Unfortunately you didn't provide a working example, hence my cumbersome and ugly choice of > or < for "note-heads".\version "2.22.0"\relative{   \override NoteHead.stencil = #ly:text-interface::print   \override NoteHead.text =   #(lambda (grob)  (let*   ((notecolumn (ly:grob-parent grob X))    (stem (ly:grob-object notecolumn 'stem))    (direction (ly:grob-property stem 'direction)))   (markup #:general-align   Y CENTER   (if (positive? direction) ">" "<"   c'4 d e f g a b c d e f}Of course, one might adapt the general logic to either use glyphs better suited than ">"/"<", or even conditionally rotate/mirror _any_ note-head depending on the direction. (One might use grob-transformer for that.)Lukas--Message: 6Date: Wed, 8 Sep 2021 10:47:11 +0200From: Orm Finnendahl <orm.finnend...@selma.hfmdk-frankfurt.de>To: lilypond-user@gnu.orgSubject: Re: change custom notehead for different stem directionMessage-ID: <YTh4j4EFm6ok5hg8@t14s-orm.localdomain>Content-Type: text/plain; charset=utf-8Hi Lukas, thanks, that's perfect! I'll provide a working example to share assoon as I've finished the code.Best,OrmAm Mittwoch, den 08. September 2021 um 10:32:35 Uhr (+0200) schrieb Lukas-Fabian Moser: Hi Orm,  >   for flute pizzicato in contemporary music, it is quite common to use > a ">" as a notehead. With a stem down, the ">" should be changed to a > "<" as visible in the attached png. >  > I know how to change the notehead by overriding the NoteHead stencil > with an eps file, but can't find any information about automatically > changing the glyph depending on stem direction. Is that possible in > lilypond and does anybody have advice? >  > It's cumbersome to do this by hand each time stem direction is > changed.  Unfortunately you didn't provide a working example, hence my cumbersome and ugly choice of > or < for "note-heads".  \version "2.22.0"  \relative {   \override NoteHead.stencil = #ly:text-interface::print   \override NoteHead.text =   #(lambda (grob)  (let*   ((notecolumn (ly:grob-parent grob X))    (stem (ly:grob-object notecolumn 'stem))    (direction (ly:grob-property stem 'direction)))   (markup #:general-align   Y CENTER   (if (positive? direction) ">" "<"   c'4 d e f g a b c d e f }  Of course, one might adapt the general logic to either use glyphs better suited than ">"/"<", or even conditionally rotate/mirror _any_ note-head depending on the direction. (One might use grob-transformer for that.)  Lukas --Subject: Digest Footer___lilypond-user mailing listlilypond-user@gnu.orghttps://lists.gnu.org/mailman/listinfo/lilypond-user--End of lilypond-user Digest, Vol 226, Issue 40**

Re: The code of the domra tremolo part.

2021-09-08 Thread Lukas-Fabian Moser

Hi Yuri,

Am 08.09.21 um 10:54 schrieb Виноградов Юрий:
Hello. Help please. I need to enter a tremolo in the domra part. It 
looks like in the screenshot. I don't know how to write it in code. 
Help please.


For example:

\version "2.22.0"

{
  % Uncomment to get slanted beams:
  % \once \override Beam.positions = #'(1 . 2)
  \repeat tremolo 16 { e''32  }

}

To be honest, I think the appearance of tremolo-repeats is not 
LilyPond's strongest suit. If you uncomment the \override in my example, 
you get something that approximates your manuscript.


Lukas




Re: Misunderstanding \footnote

2021-09-08 Thread Aaron Hill

On 8 Sep 2021, at 03:33, Kevin Cole  wrote:
\footnote "*" \concat {
  "* This song has been translated by the leading Irish,"
  " Scotch Gaelic, Manx, Welsh, Breton, and Cornish poets"
  " into their native languages for singing in each Celtic"
  " country and at Pan-Celtic Festivals."


And though not related to footnotes, you should avoid \concatenating 
strings because it will result in single line of text.  Granted, if your 
font size is small compared to the paper size, it is possible all that 
text could fit within the page margins.  In general, though, you should 
consider using \wordwrap or \wordwrap-string:



\markup \override #'(line-width . 40)
\left-column {
  \bold \typewriter "\\wordwrap"
  \wordwrap {
  * This song has been translated by the leading Irish,
Scotch Gaelic, Manx, Welsh, Breton, and Cornish poets
into their native languages for singing in each Celtic
country and at Pan-Celtic Festivals.
  }
  \vspace #1 \draw-hline
  \bold \typewriter "\\wordwrap-string"
  \wordwrap-string
  #"* This song has been translated by the leading Irish,
  Scotch Gaelic, Manx, Welsh, Breton, and Cornish poets
  into their native languages for singing in each Celtic
  country and at Pan-Celtic Festivals."
}



-- Aaron Hill



Re: Ensemble of two instruments in the code

2021-09-08 Thread Lukas-Fabian Moser

Hi Yuri,

(Please keep the list in CC, so everybody can follow the discussions and 
chime in.)


Am 08.09.21 um 12:39 schrieb Виноградов Юрий:
Hello. You've been very helpful. Thank you very much. Please tell me 
how to register an ensemble of two instruments in the code, where one 
of them starts playing 5 bars before the second instrument enters.

I am grateful to you in advance for your attention.


I don't quite understand what the result is supposed to look like.

Can you give a working example of your file or (that might be helpful in 
your case) a picture outlining your desired score?


Lukas




Re: Misunderstanding \footnote

2021-09-08 Thread Kevin Cole
On Wed, Sep 8, 2021 at 6:12 AM Aaron Hill  wrote:

> >> On 8 Sep 2021, at 03:33, Kevin Cole  wrote:
> >> \footnote "*" \concat {
> >>   "* This song has been translated by the leading Irish,"
> >>   " Scotch Gaelic, Manx, Welsh, Breton, and Cornish poets"
> >>   " into their native languages for singing in each Celtic"
> >>   " country and at Pan-Celtic Festivals."
>
> And though not related to footnotes, you should avoid \concatenating
> strings because it will result in single line of text.  Granted, if your
> font size is small compared to the paper size, it is possible all that
> text could fit within the page margins.  In general, though, you should
> consider using \wordwrap or \wordwrap-string:
>
> 
> \markup \override #'(line-width . 40)
> \left-column {
>\bold \typewriter "\\wordwrap"
>\wordwrap {
>* This song has been translated by the leading Irish,
>  Scotch Gaelic, Manx, Welsh, Breton, and Cornish poets
>  into their native languages for singing in each Celtic
>  country and at Pan-Celtic Festivals.
>}
>\vspace #1 \draw-hline
>\bold \typewriter "\\wordwrap-string"
>\wordwrap-string
>#"* This song has been translated by the leading Irish,
>Scotch Gaelic, Manx, Welsh, Breton, and Cornish poets
>into their native languages for singing in each Celtic
>country and at Pan-Celtic Festivals."
> }
> 
>

Thanks. \wordwrap (or \wordwrap-string) is actually what I wanted to
achieve -- albeit as a footnote to a title. I just find that searching the
manual often turns up the most obtuse results first, and I saw an example
of something else that used \concat, and made an uneducated guess as to how
it worked.

For my purposes, I have another, less-satisfactory way to get a
footnote-like effect: I'm blending LilyPond and reStructuredText a la
Sphinx with the sphinxnotes-lilypond package. So, I'll just move the
footnote to the .rst document. But a guy can hope. 😉


Re: change custom notehead for different stem direction

2021-09-08 Thread Orm Finnendahl
Hi all,

 below is a working example for the record. You can tweak the
linewidth changing "setlinewidth 1" in flpizzleft and flpizzright or
the angles/proportions of the lines in the line containing the moveto,
lineto and stroke. Even if you don't know Postscript it should be
fairly obvious. When changing the linewidth you might have to adjust
the connection points for the stems accordingly.

Thanks again, Lukas!

--
Orm

8<---

flpizzleft = \markup { \with-dimensions #'(0 . 0.9) #'(0 . 0.8)
   \postscript #"0 setgray
1 setlinecap
1 setlinejoin
0.2 setlinewidth
0.9 0.8 moveto 0 0.4 lineto 0.9 0 lineto stroke
" }

flpizzright = \markup { \with-dimensions #'(0 . 0.9) #'(0 . 0.8)
   \postscript #"0 setgray
1 setlinecap
1 setlinejoin
0.2 setlinewidth
0 0.8 moveto 0.9 0.4 lineto 0 0 lineto stroke
" }

flutepizz = {
 \override NoteHead.stencil = #ly:text-interface::print
  \override NoteHead.text =
  #(lambda (grob)
(let*
 ((notecolumn (ly:grob-parent grob X))
  (stem (ly:grob-object notecolumn 'stem))
  (direction (ly:grob-property stem 'direction)))
 (markup #:general-align
  Y CENTER
  (if (positive? direction) flpizzright flpizzleft

\override NoteHead.stem-attachment =
  #(lambda (grob)
(let*
 ((notecolumn (ly:grob-parent grob X))
  (stem (ly:grob-object notecolumn 'stem))
  (direction (ly:grob-property stem 'direction)))
 (if (positive? direction) '(1.223 . -0.1) '(1.223 . -0.1
  }

{ \flutepizz c''4 f'16 c' d' cis''}
8<---


Am Mittwoch, den 08. September 2021 um 10:32:35 Uhr (+0200) schrieb 
Lukas-Fabian Moser:
> Hi Orm,
> 
> >   for flute pizzicato in contemporary music, it is quite common to use
> > a ">" as a notehead. With a stem down, the ">" should be changed to a
> > "<" as visible in the attached png.
> > 
> > I know how to change the notehead by overriding the NoteHead stencil
> > with an eps file, but can't find any information about automatically
> > changing the glyph depending on stem direction. Is that possible in
> > lilypond and does anybody have advice?
> > 
> > It's cumbersome to do this by hand each time stem direction is
> > changed.
> 
> Unfortunately you didn't provide a working example, hence my cumbersome and
> ugly choice of > or < for "note-heads".
> 
> \version "2.22.0"
> 
> \relative
> {
>   \override NoteHead.stencil = #ly:text-interface::print
>   \override NoteHead.text =
>   #(lambda (grob)
>  (let*
>   ((notecolumn (ly:grob-parent grob X))
>    (stem (ly:grob-object notecolumn 'stem))
>    (direction (ly:grob-property stem 'direction)))
>   (markup #:general-align
>   Y CENTER
>   (if (positive? direction) ">" "<"
>   c'4 d e f g a b c d e f
> }
> 
> Of course, one might adapt the general logic to either use glyphs better
> suited than ">"/"<", or even conditionally rotate/mirror _any_ note-head
> depending on the direction. (One might use grob-transformer for that.)
> 
> Lukas
> 



Re: Ensemble of two instruments in the code

2021-09-08 Thread Knute Snortum
On Wed, Sep 8, 2021 at 3:49 AM Lukas-Fabian Moser  wrote:
>
> Hi Yuri,
>
> (Please keep the list in CC, so everybody can follow the discussions and
> chime in.)
>
> Am 08.09.21 um 12:39 schrieb Виноградов Юрий:
> > Hello. You've been very helpful. Thank you very much. Please tell me
> > how to register an ensemble of two instruments in the code, where one
> > of them starts playing 5 bars before the second instrument enters.
> > I am grateful to you in advance for your attention.
>
> I don't quite understand what the result is supposed to look like.
>
> Can you give a working example of your file or (that might be helpful in
> your case) a picture outlining your desired score?
>
> Lukas

Do you mean something like this?

%%%
\version "2.22.1"

instrOne = \relative c' { \repeat unfold 8 { c4 c c c } }

instrTwo = \relative c' { R1 * 5 \repeat unfold 3 { c4 c c c } }

\score {
  <<
\new Staff \with { instrumentName = "Instr 1" } \instrOne
\new Staff \with { instrumentName = "Instr 2" } \instrTwo
  >>
}
%%%

--
Knute Snortum



Re: change custom notehead for different stem direction

2021-09-08 Thread Lukas-Fabian Moser

Hi Orm,

Am 08.09.21 um 13:23 schrieb Orm Finnendahl:

  below is a working example for the record. You can tweak the
linewidth changing "setlinewidth 1" in flpizzleft and flpizzright or
the angles/proportions of the lines in the line containing the moveto,
lineto and stroke. Even if you don't know Postscript it should be
fairly obvious. When changing the linewidth you might have to adjust
the connection points for the stems accordingly.


Motivated in part by recent discussions on -devel on whether or not 
there's a long-term need for \postscript support, I rewrote your code 
without postscript, stream-lining a bit along the way:


\version "2.22.0"

flpizz =
\markup
\with-dimensions #'(0 . 0.9) #'(-0.4 . 0.4)
\path #0.2 #'((moveto 0.9 0.4)
  (lineto 0 0)
  (lineto 0.9 -0.4))

%{
% Uncomment if \flpizzleft and \flpizzright are both needed e.g. in markups

#(define-markup-command (Xflip layout props arg) (markup?)
   "Flips a markup horizontally keeping its extents (absolute positions)"
   (let* ((orig (interpret-markup layout props arg))
  (extent (ly:stencil-extent orig X)))
 (ly:stencil-translate-axis
  (ly:stencil-scale orig -1 1)
  (+ (car extent) (cdr extent))
  X)))

flpizzleft = \flpizz
flpizzright = \markup \Xflip \flpizzleft
%}

flutepizz = \temporary {
  \override NoteHead.stencil =
  #(lambda (grob)
 (let*
  ((notehead (grob-interpret-markup grob flpizz))
   (notecolumn (ly:grob-parent grob X))
   (stem (ly:grob-object notecolumn 'stem))
   (direction (ly:grob-property stem 'direction)))
  (if (positive? direction)
  (ly:stencil-scale notehead -1 1)
  notehead)))
  \override NoteHead.stem-attachment = #'(1.223 . -0.1)
}

flutepizzOff = \undo\flutepizz

{
  \flutepizz c''4 f'16 c' d' cis'' \flutepizzOff d''4
}

Lukas




Re: Ensemble of two instruments in the code

2021-09-08 Thread Knute Snortum
(Remember the "reply all" so that the list is included in your reply.)

It seems like \RemoveAllEmpyStaves is what you want:

%%%
\version "2.22.1"

instrOne = \relative c' { \repeat unfold 16 { c4 c c c } }
instrTwo = \relative c' { R1 * 8 \repeat unfold 8 { c4 c c c } }

\score {
  <<
\new Staff \with { instrumentName = "Instr 1" } \instrOne
\new Staff \with { instrumentName = "Instr 2" } \instrTwo
  >>
  \layout {
\context {
  \Staff
  \RemoveAllEmptyStaves
}
  }
}
%%%

--
Knute Snortum


On Wed, Sep 8, 2021 at 8:47 AM Виноградов Юрий  wrote:
>
> No. Not so. On the screen there is an ensemble of domra and piano. Point 
> 1-the piano enters on two lines, without domra. Point 2-domra enters the 
> piano. I do not know how to write a code for the piano intro without domra 
> and then the domra intro together with the piano.
>
>
> С уважением,
> Виноградов Юрий.
>
>
>
> 08.09.2021, 16:41, "Knute Snortum" :
>
> On Wed, Sep 8, 2021 at 3:49 AM Lukas-Fabian Moser  wrote:
>
>
>  Hi Yuri,
>
>  (Please keep the list in CC, so everybody can follow the discussions and
>  chime in.)
>
>  Am 08.09.21 um 12:39 schrieb Виноградов Юрий:
>  > Hello. You've been very helpful. Thank you very much. Please tell me
>  > how to register an ensemble of two instruments in the code, where one
>  > of them starts playing 5 bars before the second instrument enters.
>  > I am grateful to you in advance for your attention.
>
>  I don't quite understand what the result is supposed to look like.
>
>  Can you give a working example of your file or (that might be helpful in
>  your case) a picture outlining your desired score?
>
>  Lukas
>
>
> Do you mean something like this?
>
> %%%
> \version "2.22.1"
>
> instrOne = \relative c' { \repeat unfold 8 { c4 c c c } }
>
> instrTwo = \relative c' { R1 * 5 \repeat unfold 3 { c4 c c c } }
>
> \score {
>   <<
> \new Staff \with { instrumentName = "Instr 1" } \instrOne
> \new Staff \with { instrumentName = "Instr 2" } \instrTwo
>   >>
> }
> %%%
>
>
> --
> Knute Snortum



Re: Ensemble of two instruments in the code

2021-09-08 Thread Виноградов Юрий
Yes. This is what I need. Thank you very much. С уважением,Виноградов Юрий.08.09.2021, 20:23, "Knute Snortum" :(Remember the "reply all" so that the list is included in your reply.)It seems like \RemoveAllEmpyStaves is what you want:%%%\version "2.22.1"instrOne = \relative c' { \repeat unfold 16 { c4 c c c } }instrTwo = \relative c' { R1 * 8 \repeat unfold 8 { c4 c c c } }\score {  <<\new Staff \with { instrumentName = "Instr 1" } \instrOne\new Staff \with { instrumentName = "Instr 2" } \instrTwo  >>  \layout {\context {  \Staff  \RemoveAllEmptyStaves}  }}%%%-- Knute SnortumOn Wed, Sep 8, 2021 at 8:47 AM Виноградов Юрий  wrote: No. Not so. On the screen there is an ensemble of domra and piano. Point 1-the piano enters on two lines, without domra. Point 2-domra enters the piano. I do not know how to write a code for the piano intro without domra and then the domra intro together with the piano. С уважением, Виноградов Юрий. 08.09.2021, 16:41, "Knute Snortum" : On Wed, Sep 8, 2021 at 3:49 AM Lukas-Fabian Moser  wrote:  Hi Yuri,  (Please keep the list in CC, so everybody can follow the discussions and  chime in.)  Am 08.09.21 um 12:39 schrieb Виноградов Юрий:  > Hello. You've been very helpful. Thank you very much. Please tell me  > how to register an ensemble of two instruments in the code, where one  > of them starts playing 5 bars before the second instrument enters.  > I am grateful to you in advance for your attention.  I don't quite understand what the result is supposed to look like.  Can you give a working example of your file or (that might be helpful in  your case) a picture outlining your desired score?  Lukas Do you mean something like this? %%% \version "2.22.1" instrOne = \relative c' { \repeat unfold 8 { c4 c c c } } instrTwo = \relative c' { R1 * 5 \repeat unfold 3 { c4 c c c } } \score {   << \new Staff \with { instrumentName = "Instr 1" } \instrOne \new Staff \with { instrumentName = "Instr 2" } \instrTwo   >> } %%% -- Knute Snortum

Re: Ensemble of two instruments in the code

2021-09-08 Thread Виноградов Юрий
Yes. This is what I need. Thank you very much.  С уважением,Виноградов Юрий.   08.09.2021, 20:23, "Knute Snortum" :(Remember the "reply all" so that the list is included in your reply.)It seems like \RemoveAllEmpyStaves is what you want:%%%\version "2.22.1"instrOne = \relative c' { \repeat unfold 16 { c4 c c c } }instrTwo = \relative c' { R1 * 8 \repeat unfold 8 { c4 c c c } }\score {  <<\new Staff \with { instrumentName = "Instr 1" } \instrOne\new Staff \with { instrumentName = "Instr 2" } \instrTwo  >>  \layout {\context {  \Staff  \RemoveAllEmptyStaves}  }}%%% --Knute SnortumOn Wed, Sep 8, 2021 at 8:47 AM Виноградов Юрий  wrote: No. Not so. On the screen there is an ensemble of domra and piano. Point 1-the piano enters on two lines, without domra. Point 2-domra enters the piano. I do not know how to write a code for the piano intro without domra and then the domra intro together with the piano. С уважением, Виноградов Юрий. 08.09.2021, 16:41, "Knute Snortum" : On Wed, Sep 8, 2021 at 3:49 AM Lukas-Fabian Moser  wrote:  Hi Yuri,  (Please keep the list in CC, so everybody can follow the discussions and  chime in.)  Am 08.09.21 um 12:39 schrieb Виноградов Юрий:  > Hello. You've been very helpful. Thank you very much. Please tell me  > how to register an ensemble of two instruments in the code, where one  > of them starts playing 5 bars before the second instrument enters.  > I am grateful to you in advance for your attention.  I don't quite understand what the result is supposed to look like.  Can you give a working example of your file or (that might be helpful in  your case) a picture outlining your desired score?  Lukas Do you mean something like this? %%% \version "2.22.1" instrOne = \relative c' { \repeat unfold 8 { c4 c c c } } instrTwo = \relative c' { R1 * 5 \repeat unfold 3 { c4 c c c } } \score {   << \new Staff \with { instrumentName = "Instr 1" } \instrOne \new Staff \with { instrumentName = "Instr 2" } \instrTwo   >> } %%% -- Knute Snortum

Re: change custom notehead for different stem direction

2021-09-08 Thread Orm Finnendahl
Hi Lukas,

 thanks, looks excellent, will adopt to that style!

Best,
Orm
--
Prof. Orm Finnendahl
Komposition
Hochschule für Musik und Darstellende Kunst
Eschersheimer Landstr. 29-39
60322 Frankfurt am Main

https://www.youtube.com/watch?v=2rWha1HTfFE&list=PLiGfneJSWmNw6dTUvcTHbTkCYOOTiB_N6

Am Mittwoch, den 08. September 2021 um 16:49:00 Uhr (+0200) schrieb 
Lukas-Fabian Moser:
> Hi Orm,
> 
> Am 08.09.21 um 13:23 schrieb Orm Finnendahl:
> >   below is a working example for the record. You can tweak the
> > linewidth changing "setlinewidth 1" in flpizzleft and flpizzright or
> > the angles/proportions of the lines in the line containing the moveto,
> > lineto and stroke. Even if you don't know Postscript it should be
> > fairly obvious. When changing the linewidth you might have to adjust
> > the connection points for the stems accordingly.
> 
> Motivated in part by recent discussions on -devel on whether or not there's
> a long-term need for \postscript support, I rewrote your code without
> postscript, stream-lining a bit along the way:
> 
> \version "2.22.0"
> 
> flpizz =
> \markup
> \with-dimensions #'(0 . 0.9) #'(-0.4 . 0.4)
> \path #0.2 #'((moveto 0.9 0.4)
>   (lineto 0 0)
>   (lineto 0.9 -0.4))
> 
> %{
> % Uncomment if \flpizzleft and \flpizzright are both needed e.g. in markups
> 
> #(define-markup-command (Xflip layout props arg) (markup?)
>    "Flips a markup horizontally keeping its extents (absolute positions)"
>    (let* ((orig (interpret-markup layout props arg))
>   (extent (ly:stencil-extent orig X)))
>  (ly:stencil-translate-axis
>   (ly:stencil-scale orig -1 1)
>   (+ (car extent) (cdr extent))
>   X)))
> 
> flpizzleft = \flpizz
> flpizzright = \markup \Xflip \flpizzleft
> %}
> 
> flutepizz = \temporary {
>   \override NoteHead.stencil =
>   #(lambda (grob)
>  (let*
>   ((notehead (grob-interpret-markup grob flpizz))
>    (notecolumn (ly:grob-parent grob X))
>    (stem (ly:grob-object notecolumn 'stem))
>    (direction (ly:grob-property stem 'direction)))
>   (if (positive? direction)
>   (ly:stencil-scale notehead -1 1)
>   notehead)))
>   \override NoteHead.stem-attachment = #'(1.223 . -0.1)
> }
> 
> flutepizzOff = \undo\flutepizz
> 
> {
>   \flutepizz c''4 f'16 c' d' cis'' \flutepizzOff d''4
> }
> 
> Lukas
> 



Copyright on all pages

2021-09-08 Thread Carlos R Martinez
Hi, setup a copyright and would like to for it to show on all pages. How can I 
achieve that?

Thanks!

[Carlos R 
Martinez](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=174m7w)   
[174m7w]
Carlos R. Martinez
270.850.5650
car...@newsoundmusicstudio.com
www.essentialmusic.org
www.newsoundmusicstudio.com