lilypond-user
[Top][All Lists]
Advanced

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

Re: Markup & Midi output


From: james
Subject: Re: Markup & Midi output
Date: Sat, 1 Sep 2012 22:08:23 +0200

On Sep 1, 2012, at 1:48 PM, Andreas Pavlogiannis wrote:

> Hi,
> 
> I 'm a new lilypond user, pretty excited so far. I 'm having the following 
> difficulties, on the following code.
> 
> [1] In order to align scores on a line, I use the \markup environment, which 
> seems to suppress the midi output. When removing the \markup (and \line), 
> midi output is produced.
> 
> [2] Even in that case, the midi is empty. I suspect this has to do with the 
> multiple voices, as once I remove the "\\", the midi sounds correct.
> 
> Any help is appreciated.
> Andreas

I'm going to reply to this post because the mixture of top-posting and bottom 
posting is annoying.

You'll probably be better off if you use variables. With variables, you can 
define the musical material separately, and then have separate instances for 
creating a print score and a midi score.
\version "2.16.0"

topPart =  \drums { \time 2/4 \bar "|:"<<{hh8 hh <hh sn> hh }\\ { bd4 r16 bd8. 
}>> \bar":|" }

bottomPart =  \drums { \time 2/4 \bar "|:"<<{hh8 hh <hh sn> hh }\\ { bd4 r16 
bd8. }>> \bar":|" }

\markup{
   \line{
      \score{
         \topPart
         \layout{}
      }
      \score{
         \bottomPart
         \layout{}
      }%Score
   }%Line
}%Markup
\score{
   \topPart
   \midi{}
}
\score{
   \bottomPart
   \midi{}
}%MIDI





reply via email to

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