denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Paste Lilypond notes


From: Richard Shann
Subject: Re: [Denemo-devel] Paste Lilypond notes
Date: Fri, 10 May 2019 09:55:00 +0100

Dear Andreas,

As you may have noticed from the bug report I've stumbled on the origin
of this problem. There are some .scm files generated to lex and parse
LilyPond syntax and these are stored in .denemo-x.y.z/actions. This
step is failing with Guile 2.n - something I didn't notice because I
have versions created years ago.
I've just tested whether installing them in
/usr/local/share/denemo/actions would work and it seems not - it will
require lyimport.scm to be modified to look for them there. (The
alternative would be to try and reconcile the SIlex code with Guile 2.n
...)
Meanwhile putting the relevant *.scm files in ~/denemo-2.2.11/actions
solves the problem. I've attached the files here in case they aren't
readily available to all.

Richard


On Wed, 2019-03-13 at 23:29 +0100, Andreas Schneider wrote:
> On 3/13/19 9:36 AM, Richard Shann wrote:
> > On Tue, 2019-03-12 at 21:30 +0100, Andreas Schneider wrote:
> > > On 3/12/19 10:00 AM, Richard Shann wrote:
> > > > On Mon, 2019-03-11 at 20:54 +0100, Andreas Schneider wrote:
> > > > > Hi,
> > > > > 
> > > > > Edit > Paste Lilypond notes does not work for me. After
> > > > > answering
> > > > > yes
> > > > > to
> > > > > the question "Paste from Selection",
> > > > 
> > > > What is in the Denemo Display when you get this dialog? It
> > > > should
> > > > be
> > > > showing a new, (*Untitled), tab containing just the notes that
> > > > you
> > > > have
> > > > tried to paste from the system clipboard (not, of course,
> > > > Denemo's
> > > > own
> > > > clipboard of Denemo Objects). (I expected it to show them
> > > > already
> > > > selected, but they appear un-selected, however, they do then
> > > > get
> > > > copied
> > > > and pasted into the original tab if you respond with "Yes" to
> > > > the
> > > > dialog. Which means the wording of the dialog is bad :( ...)
> > > 
> > > Attached you find two screenshots of a simple test. The first
> > > shows
> > > the
> > > test file before I Paste Lilypond notes. The second one shows
> > > what it
> > > looks like directly after invoking the command, and after
> > > selecting
> > > yes
> > > from the dialog it goes back to the first screenshot. The text in
> > > the
> > > clipboard was "f2" (without the quotes).
> > 
> > What is being output to the terminal? The first time I used it I
> > got a
> > lot of stuff from the Guile interpreter commenting on the compiling
> > of
> > the script into bytecode (I'm running Guile version 2) but
> > subsequent
> > use gives this output:
> > 
> > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8
> > ><8>
> > Using existing lexer file
> > Using existing lexer file
> > Using existing lexer file
> > Using existing lexer file
> > 
> > :::::::: Parser Start ::::::::::
> > ((x_CHORD (x_NOTE ("d" . 0) "" "" "" "" "") . ""))
> > 
> > :::::::: Parser Finished ::::::::::
> > 
> > ============= Here is the final list =============
> > ============= ====================== =============
> > ((x_MOVEMENT
> >    (((x_SEQUENTIAL
> >        (x_CHORD (x_NOTE ("d" . 0) "" "" "" "" "") . ""))))))
> > 
> > ============= ====================== =============
> > 
> > Now to execute the creation script
> > 
> > 8><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 with "d" on the system clipboard.
> > 
> > What do you have?
> 
> With "f4" on the clipboard, I get the following:
> 
> <8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>
> <8>
> Lex error:
> /usr/share/denemo/actions/notes.l:1:2: white space expected.
> 
> Lex error:
> /usr/share/denemo/actions/quote.l:1:2: white space expected.
> 
> Lex error:
> /usr/share/denemo/actions/block.l:1:2: white space expected.
> 
> Lex error:
> /usr/share/denemo/actions/incl.l:1:2: white space expected.
> 
> ;;; Stat of /home/andreas/.denemo-2.2.11/actions/notes.l.scm failed:
> ;;; ERROR: In procedure stat: No such file or directory:
> "/home/andreas/.denemo-2.2.11/actions/notes.l.scm"
> Denemo - WARNING :
>                    A script error for file/script (lyimport::load-
> file
> "/home/andreas/.denemo-2.2.11/" "denemopaste.ly"); the throw
> arguments are
> 
> (open-file ~A: ~S (No such file or directory
> /home/andreas/.denemo-2.2.11/actions/notes.l.scm) (2))
> Denemo - WARNING :
>                    The tag is
> 
> system-error
> 
> Log level set to 287
> <8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>
> <8>
> 
> With "d" on the clipboard, the result is the same.
> 
> Andreas

Attachment: block.l.scm
Description: Text Data

Attachment: incl.l.scm
Description: Text Data

Attachment: notes.l.scm
Description: Text Data

Attachment: quote.l.scm
Description: Text Data


reply via email to

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