denemo-devel
[Top][All Lists]
Advanced

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

Re: creating .ly files


From: Michael Wossog
Subject: Re: creating .ly files
Date: Mon, 20 Jun 2022 06:25:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

"http://lilypond.org/download/binaries/linux-x86/lilypond-2.19.49-1.linux-x86.sh


Using that you should be able to install it in your home directory and
then test if you can compile the files."

This was a good idea, many thanks again, it works.

Michael


This was a good idea

Am 19.06.22 um 13:11 schrieb Richard Shann:
On Sun, 2022-06-19 at 11:41 +0200, Michael Wossog wrote:
You wrote: "I see that by compiling zither-tab-01.ly after omitting
zither-tab-layout.ly you get that PDF with the error messages: ..."

The reason for this errors are the omitted file, which of course is
missing.
yes, so it is that file that would need to be looked at by someone with
good LilyPond skills - the lilypond-user@gnu.org is always very prompt
and very helpful in this respect.
You wrote: "... if the files compile correctly
against a LilyPond version that you have you could always tell Denemo
to use that version..."

Unfortunately, you cannot install an outdated version on Linux.
I think you may be installing from the repository provided by your
distro ... I have two versions of LilyPond installed on my machine, one
in /usr/bin:

/usr/bin/lilypond --version
GNU LilyPond 2.22.0

Which comes from Debian.
The other in my home directory:

lilypond --version
GNU LilyPond 2.22.1

this last one I will have installed using the installer from
lilypond.org. The 2.19.49 installer is at

http://lilypond.org/download/binaries/linux-x86/lilypond-2.19.49-1.linux-x86.sh


Using that you should be able to install it in your home directory and
then test if you can compile the files.

Richard


(P.S.: Last time I forgot to send to everyone.)
Am 19.06.22 um 11:23 schrieb Richard Shann:
In addition to what I wrote below, if the files compile correctly
against a LilyPond version that you have you could always tell Denemo
to use that version (via Edit->Change Preferences->Externals-
lilypond)
though at some point you may be forced to upgrade...
Richard
On Sat, 2022-06-18 at 22:49 +0200, Michael Wossog wrote:
So, I have copied the 4 include files
zither-tab-default-bar-lines.ly
zither-tab-functions.ly
zither-tab-layout.ly
zither-tab-titling.ly
in /usr/share/lilypond/2.22.0/ly
The content of zither-tab-01.ly comes at the end of "Temporary
Score
Layout".
Well, if you comment out the line \include "zither-tab-layout.ly"
and
then do "Typeset", comes a small window "Spurious line number" and
after "Close" it, you have the attached PDF.
Maybe you can narrow down the errors that way. Shurely you should
inspect the file zither-tab-layout.ly first.
There is no need to squeeze the LilyPond text into Denemo in order to
get that PDF, I see that by compiling zither-tab-01.ly after omitting
zither-tab-layout.ly you get that PDF with the error messages:

8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><

Starting lilypond 2.22.0 [zither-tab-01.ly]...
Processing `/tmp/frescobaldi-yr9zy20f/tmpvwg9aijl/zither-tab-01.ly'
Parsing...
/home/rshann/Desktop/zither-tab-functions.ly:671:17: error: unknown
escaped string: `\akkord-zither-layout'
       \layout {
                 \akkord-zither-layout }
/home/rshann/Desktop/zither-tab-functions.ly:671:39: error: syntax
error, unexpected '}', expecting '.' or '='
       \layout { \akkord-zither-layout
                                       }
/tmp/frescobaldi-yr9zy20f/tmpvwg9aijl/zither-tab-01.ly:123:4: error:
error in #{ ... #}
   \akkordZitherTab
Interpreting music...
warning: forced break was overridden by some other event, should you
be
using bar checks?
Preprocessing graphical objects...
Calculating line breaks...
Drawing systems...
Finding the ideal number of pages...
Fitting music on 1 or 2 pages...
Drawing systems...
Converting to `zither-tab-01.pdf'...
fatal error: failed files: "/tmp/frescobaldi-
yr9zy20f/tmpvwg9aijl/zither-tab-01.ly"
Exited with return code 1.

8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><

(this is after running convert-ly). As I say, fixing this will
require
some LilyPond expertise - the most likely place to get help is the
original author of those files, but if they are not available I
suggest
you put the problem to the LilyPond user mailing list. Once you know
the LilyPond syntax that you want to generate you could use Denemo to
enter the music you want and get it to output the PDF you want by
wrapping the output syntax with the needed incantations.

HTH

Richard

Greetings and nice evening, Michael


Am 18.06.22 um 18:42 schrieb Richard Shann:
On Sat, 2022-06-18 at 17:07 +0100, Richard Shann wrote:
On Sat, 2022-06-18 at 16:26 +0200, Michael Wossog wrote:
I managed to open and include the files in Denemo. In Denemo
comes
the same error as you described from Frescobaldi (attached)

  Typesetting ...Done/usr/share/lilypond/2.22.0/ly/init.ly:74:2:
Fehler: falscher Typ für Argument 1; duration erwartet, "4"
gefunden
  #
   (let ((book-handler (if (defined? 'default-toplevel-book-
handler)
/usr/share/lilypond/2.22.0/scm/parser-ly-from-scheme.scm:24:18:
In
procedure reverse! in expression (ly:parse-string-expression
clone
lily-string ...):
/usr/share/lilypond/2.22.0/scm/parser-ly-from-scheme.scm:24:18:
Wrong
type argument in position 1: (1 "4" . #...

The files probably need an upgrade.
Running the upgrade from within Frescobaldi gives:

convert-ly (GNU LilyPond) 2.22.0

convert-ly: Processing `'...
Applying conversion: 2.19.49,
Not smart enough to convert "output-attributes".
Previously the "id" grob property (string) was used for SVG
output.
Now "output-attributes" (association list) is used instead.
Please refer to the manual for details, and update manually.
2.20.0, 2.21.0, 2.21.2, 2.22.0

so you would need to understand the syntax around output-
attributes
strangely output-attributes is not part of the original syntax, but
part of the conversion:

%    \override Glissando.id = #(lambda (g) "foo")

in zither-tab-01.ly has become

%    \override Glissando.output-attributes = #(lambda (g) "foo")

after conversion. But as this is just a comment, it cannot matter.

But sadly, the error message persists. This is something for the
lilypond-user@gnu.org mailing list...

Richard







reply via email to

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