lilypond-user
[Top][All Lists]
Advanced

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

problem with the script extract music


From: Stefan Thomas
Subject: problem with the script extract music
Date: Sat, 26 Jan 2013 12:38:57 +0100

Dear community,
I have a problem with the script extraxtMusic, which I have downloaded at  http://gillesth.free.fr/Lilypond/extractMusic/extractMusic.ly
I think, it has to do with the fact, that the file consists of more files.
I get the error message
mmR = {
        R1*1000000 \tag #'mmWarning R1 } % The \tag is a way to be recognized
And a message, that a barcheck has failed.
Has someone an idea how to make it work?
This is the score file:
\version "2.16.2"
\include "rhythmen.ly" % there is my definition of extractMusic
% the parts
\include "partA.ly"
\include "partB.ly"
% putting it together
global =  {
  \globalA
  \globalB
}

Hornpart = {
  \HornA
  \HornB
}

Trombonepart = {
  \TromboneA
  \TromboneB
}
% defining the score
\score {
  <<
  \new Devnull \global
  \new StaffGroup <<
        \new Staff \Hornpart
        \new Staff \Trombonepart >>
 
>>
}
%%%%%%%%%%% part A
\version "2.16.2"
globalA = {
  \time 5/4 s4*5 %1
  \time 4/4 s1*10 %2-11
 
}

HornA = \relative c'' {
  r2 r2 d4\f
  \extractMusic \mmR \upToMeasure #2 { \upToMeasure #11 s1 }
 
}

TromboneA = \relative c {
  \repeat "unfold" 5 { c4 }
  \repeat "unfold" 40 { c4  }

}
% %%%%%%%%%%%%%%%%%%%5 partB
\version "2.16.2"
globalB = {
  \time 2/4 s2*3 %12-14
  \time 5/8 s8*15 %15-17
}

HornB = \relative {
  \extractMusic \mmR \upToMeasure #12 { \upToMeasure #15 s8*5 }
  d4. e4
  R8*5
}

TromboneB = \relative c {
   \repeat "unfold" 6 { c4 }
   \repeat "unfold" 15 { c8 }
}


reply via email to

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