denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Compiling denemo under fedora


From: Roy Rankin
Subject: Re: [Denemo-devel] Compiling denemo under fedora
Date: Tue, 15 Jul 2008 22:37:09 +1000
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Richard,

I first saw curobj NULL when I created a test with two staffs, but notes in only one staff and then asked to save it in Lilypond format. I have also seen it happen trying to read Lilypond files.

As I have said before, my objective is that Denemo can read back in Lilypond files that it has written. I have done a test of writing a Lilypond file from an old version of Denemo for a simple case. I have been able to successfully read this file in with the my version of Denemo from Git. However, this version cannot read back in Lilypond files it has written.

I have identified that the new version of Denemo writes Lilypond files with identifiers 3 levels deep rather than 1 level for the old version. The reading part of the Denemo cannot cope with this new Lilypond structure. There may also be an issue with an extra {} around the top level identifier.

For comparison here are the Lilypond files for the same music generated by and old version and Current version of Denemo follow.

Regards,
Roy  Rankin

% LilyPond file generated by Denemo version 0.7.7

%http://denemo.sourceforge.net/

\version ""
\header{
        title = ""
        subtitle = ""
        poet = ""
        composer = ""
        meter = ""
        opus = ""
        arranger = ""
        instrument = ""
        dedication = ""
        piece = ""
        head = ""
        copyright = ""
        footer = ""
        tagline = ""
}

#(set-global-staff-size 16)
#(set-default-paper-size "a4")


VoiceI = \context Voice = VoiceI {
        \set Staff.midiInstrument = "acoustic grand"
        \time 4/4
        \key c \major
        \clef treble
        c'4 d' e' f' \bar "|."
}
\score {
 <<
         \new Staff <<
                \VoiceI
 >>
        >>
        \layout {
        }
        \midi {
                \tempo 4 = 60
        }
}

% LilyPond file generated by Denemo version 0.7.8

%http://www.gnu.org/software/denemo/

\version "2.8.7"
\paper {printallheaders = ##t }
#(set-global-staff-size 16)
#(set-default-paper-size "a4")

% The music follows

        MvmntIVoiceITimeSig = \time 4/4
        MvmntIVoiceIKeySig = \key c \major
        MvmntIVoiceIClef = \clef treble
MvmntIVoiceIProlog = {\MvmntIVoiceITimeSig \MvmntIVoiceIKeySig \MvmntIVoiceIClef}
MvmntIVoiceI = {
          c'4 d' e' f' \bar "|."
}
MvmntIVoiceIMusic = {\MvmntIVoiceIProlog \MvmntIVoiceI}



\score {
<<\transpose c c <<
\new Staff << {
                \MvmntIVoiceIMusic
                }
                >>
>>
>>
        \layout {
        }
\header{
        breakbefore = ##f
        }

}


Richard Shann wrote:
The following failed to get on the list (because of the attachments I guess)
here it is without them:


I am getting zero time to work on this just now, but your patch must go
in, (I don't know how you manage to get curobj NULL, but if it can be
done we must defend against it).
Meanwhile, attached are the files that I have been playing with on a
branch - there is some new debug output, and it parses the tiny junk.ly
file, still with some problems in the result. My aim is to get it to put
everything between the notes which it doesn't understand in to LilyPond
directives. From what I can make out the nodes in the parse tree which
are hold actual DenemoObjects have type==0.






reply via email to

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