lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ensemble of two instruments in the code


From: Виноградов Юрий
Subject: Re: Ensemble of two instruments in the code
Date: Fri, 17 Sep 2021 08:39:26 +0300

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


Hello. Thanks for the help. But another problem has opened up. This command removes empty bars in the entire product. And I need to delete the bars only at the beginning. Help please.

Юрий Виноградов

5:37, 9 сентября 2021 г., "lilypond-user-request@gnu.org" <lilypond-user-request@gnu.org>:

Send lilypond-user mailing list submissions to
        lilypond-user@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.gnu.org/mailman/listinfo/lilypond-user
or, via email, send a message with subject or body 'help' to
        lilypond-user-request@gnu.org

You can reach the person managing the list at
        lilypond-user-owner@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-user digest..."


Today's Topics:

   1. Re: Ensemble of two instruments in the code (Knute Snortum)
   2. Re: Ensemble of two instruments in the code
      (Виноградов Юрий)
   3. Re: Ensemble of two instruments in the code
      (Виноградов Юрий)
   4. Re: change custom notehead for different stem direction
      (Orm Finnendahl)
   5. Copyright on all pages (Carlos R Martinez)


----------------------------------------------------------------------

Message: 1
Date: Wed, 8 Sep 2021 10:22:59 -0700
From: Knute Snortum <ksnortum@gmail.com>
To: Виноградов Юрий <hagrid.vgs@yandex.ru>,
        lilypond-user@gnu.org
Subject: Re: Ensemble of two instruments in the code
Message-ID:
        <CALmeJxSGF5pawJw4-nvkPd7k=R5=H4dUSD-+figNiyonD3zMEA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

(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 Виноградов Юрий <hagrid.vgs@yandex.ru> 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" <ksnortum@gmail.com>:

 On Wed, Sep 8, 2021 at 3:49 AM Lukas-Fabian Moser <lfm@gmx.de> 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




------------------------------

Message: 2
Date: Wed, 08 Sep 2021 20:31:55 +0300
From: Виноградов Юрий <hagrid.vgs@yandex.ru>
To: Knute Snortum <ksnortum@gmail.com>, "lilypond-user@gnu.org"
        <lilypond-user@gnu.org>
Subject: Re: Ensemble of two instruments in the code
Message-ID: <920051631122225@mail.yandex.ru">920051631122225@mail.yandex.ru>
Content-Type: text/plain; charset="utf-8"

An HTML attachment was scrubbed...
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20210908/703cf1db/attachment.html>

------------------------------

Message: 3
Date: Wed, 08 Sep 2021 20:41:46 +0300
From: Виноградов Юрий <hagrid.vgs@yandex.ru>
To: Knute Snortum <ksnortum@gmail.com>, "lilypond-user@gnu.org"
        <lilypond-user@gnu.org>
Subject: Re: Ensemble of two instruments in the code
Message-ID: <948081631122870@mail.yandex.ru">948081631122870@mail.yandex.ru>
Content-Type: text/plain; charset="utf-8"

An HTML attachment was scrubbed...
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20210908/95f51c72/attachment.html>

------------------------------

Message: 4
Date: Wed, 8 Sep 2021 21:01:28 +0200
From: Orm Finnendahl <orm.finnendahl@selma.hfmdk-frankfurt.de>
To: lilypond-user@gnu.org
Subject: Re: change custom notehead for different stem direction
Message-ID: <YTkIiDEUkqw+rlV4@t14s-orm.localdomain>
Content-Type: text/plain; charset=utf-8

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
 




------------------------------

Message: 5
Date: Thu, 9 Sep 2021 02:35:18 +0000
From: Carlos R Martinez <carlos@newsoundmusicstudio.com>
To: lilypond-user@gnu.org
Subject: Copyright on all pages
Message-ID: <c-cbf6d-ktcbimc4-vayjvq=13gujsh@2.gethop.com>
Content-Type: text/plain; charset="utf-8"

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
carlos@newsoundmusicstudio.com
www.essentialmusic.org
www.newsoundmusicstudio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20210909/8b36913e/attachment.html>

------------------------------

Subject: Digest Footer

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


------------------------------

End of lilypond-user Digest, Vol 226, Issue 44
**********************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]