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: Wed, 08 Sep 2021 20:31:55 +0300

Yes. This is what I need. Thank you very much.


 
С уважением,
Виноградов Юрий.



08.09.2021, 20:23, "Knute Snortum" <ksnortum@gmail.com>:

(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

reply via email to

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