lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeats with alternative endings and MIDI


From: Federico Bruni
Subject: Re: Repeats with alternative endings and MIDI
Date: Sun, 09 Dec 2012 11:49:17 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.10) Gecko/20121028 Icedove/10.0.10

Il 09/12/2012 11:18, Olivier Biot ha scritto:
And I am using articulate.ly <http://articulate.ly> as in the documentation:
http://lilypond.org/doc/v2.16/Documentation/notation/the-articulate-script

However I can't get the MIDI to do what is expected.


The problem is not with articulate.ly
Have you read the warning message in the terminal output? Have you seen that the second volta is missing?

The problem is here, but I can't see it:

\version "2.16.1"

theMusic =
  \new Staff \with {midiInstrument = #"cello"} {
    \relative g, {
      \key c \major
      \clef "bass"
      \repeat volta 2 {
        << { g4 ( c ) d ( g, ) } \\ { c,2 g'4 s } >>
        d2 d            |
      } \alternative {
{ << { fis'8 ( d e fis ) } \\ { g,2 } >> <g g'>8 ( g f! d ) } | % 12
        { e'4 ( c8 a ) b4 ( d8 g ) }        |
      }
      e4 ( c8 a ) b4 ( d8 g )        |
      b r r b ( b ) r r b            |
    }
  }

\score {
  \theMusic
  \layout {
  }
  \midi{}
}

% \include "articulate.ly"
% \score {
%   \unfoldRepeats \articulate \theMusic
%   \midi {}
% }



If you wonder why I import articulate.ly <http://articulate.ly> at the
end, it's because of some strange side-effect it has on music
expressions even without calling the articulate command, which I posted
in another thread:
http://lilypond.1069038.n5.nabble.com/Unexpected-side-effect-of-articulate-ly-on-aftergrace-tp137289.html

You can put the include anywhere just before using the \articulate command. It's actually better in case you need to comment the score block with midi settings.

--
Federico



reply via email to

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