lilypond-user
[Top][All Lists]
Advanced

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

Re: DiceWaltz-1.2


From: wjm
Subject: Re: DiceWaltz-1.2
Date: Thu, 28 Mar 2013 22:05:43 +1300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

Hi Martin,
You wrote:-
+++
I have updated/re-written my Python implementation of Mozart's Musical Dice Game
http://imslp.org/wiki/Musikalisches_W%C3%BCrfelspiel,_K.516f_%28Mozart,_Wolfgang_Amadeus%29
+++
I found the program DiceWaltz interesting and amusing. Many thanks!
However, when I open the generated file in Frescobaldi and run it, to produce the pdf and midi files, Frescobaldi produces the following error message:-
+++
Parsing.../usr/local/lilypond/usr/share/lilypond/current/ly/articulate.ly:446:13: In procedure map in expression (map (lambda # #)): /usr/local/lilypond/usr/share/lilypond/current/ly/articulate.ly:446:13: Wrong number of arguments to #<primitive-generic map>
Exited with return code 1.
+++
Commenting out the references to articulate.ly in the generated file cause the error message to go away. If I make a simple musical example including articulate.ly there is no problem.
Can you cast any light on this strange behaviour?
Regards
Bill
Here follows an example with the 'simple' bit commented out...

\version "2.17.0"
\pointAndClickOff
\include "articulate.ly"
\header {
dedication = "Musikalisches Würfelspiel K.V. Anhang 294d (516f), Wien 1778"
  title = "WALZER"
  composer = \markup {\epsfile #X #20 #"signature.eps"}
  copyright = "Auto-created using DiceWaltz 1.2 (20130327)"
}

\paper {
  #(set-paper-size "a4")
  top-margin = 2\cm
}

%DICE: 9, 10, 4, 7, 5, 4, 8, 7, 6, 7, 5, 10, 6, 6, 5, 6
%TABLE DE MUSIQUE: 119, 142, 158, 167, 161, 55, 21, 91, 25, 71, 7, 82, 76, 136, 52, 93
DiceWaltz = {
  \new PianoStaff <<
\new Staff = "RH acoustic grand" { \clef treble \time 3/8 \key c \major \tempo 4. = 45
   %beginning of rh music
 %  { a8 b c  } }
 %%{
 \repeat volta 2 {
        e''16 c'' g'' e'' c''' g'' |
        c''8 g' e'' |
        b'8 d''16 b' a' g' |
        c''8 c''16 d'' e''8 |
        <fis' d''>8 <fis' d''> <fis' d''> |
        g''8 b'' d'' |
        c''16 e'' g'' d'' a' fis'' |
      }
      \alternative {
        { <g' b' d'' g''>4 r8 } { <g' b' d'' g''>4 r8 }
      }
      \repeat volta 2 {
        d'16 fis' a' d'' fis'' a'' |
        g''16 b'' d''' b'' g''8 |
        e''16 c'' e'' g'' c''' g'' |
        d''16[ b' g'8] g'' |
        c'''16 b'' c''' g'' e'' c'' |
        c'''16 b'' c''' g'' e'' c'' |
        d''16( cis'') d'' f'' g' b' |
        c''4 r8 |
      }
    } % end of right hand %}
    \new Staff = "LH acoustic grand" {
      \clef bass      \time 3/8      \key c \major
      %beginning of lh music
   %   { a8 b c  } }
  %%{
   { \repeat volta 2 {
        <c e>4 r8 |
        <c e>4 r8 |
        g,4 r8 |
        <c e>4 r8 |
        c8 c c |
        <b, d>4 r8 |
        c8 d d, |
      }
      \alternative {
        { g,8 g16 f! e d } { g,8 b16 g fis e }
      }
      \repeat volta 2 {
        d4 c8 |
        <b, d>4 <b, d>8  |
        <c g>4 r8 |
        <b, g>4 <b, d>8 |
        <c e>4 <c g>8 |
        <c e>4 r8 |
        f4 g8 |
        c8 g, c, |
      }
    } %end of lh music
    } %end of left hand %}
  >>
}

\score {
 % \articulate
 <<
  \DiceWaltz >>
  \layout { }
}
%%{

\score {
  \unfoldRepeats
  \articulate
  <<
    \DiceWaltz
  >>
  \midi {%\tempo 8=150}
}
}
%}




reply via email to

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