Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-15 Thread Thomas Morley
Am Fr., 14. Dez. 2018 um 17:12 Uhr schrieb Luca Danieli :
>
> Hi Thomas,
>
> your analysis has been very good.
> I have almost solved the issue.
> I just don't know what's the glyph name for the SEMI-SHARP and SEMI-FLAT
>
> In the following code, I should add the ones for SEMI-SHARP and SEMI-FLAT.
> Do you know what's the name of the glyph? I already tried (e.g. SEMI-SHARP) 
> "accidentals.semi-sharp", "accidentals.semisharp" and 
> "accidentals.sharp.semi".

Well, you change the note-names, scales, accidental-glyphs etc. So
it's up to you to decide which glyph you want to assign to a which
alteration.
Available are:
http://lilypond.org/doc/v2.19/Documentation/notation/the-emmentaler-font#accidental-glyphs

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-14 Thread Luca Danieli
Hi Thomas,

your analysis has been very good.
I have almost solved the issue.
I just don't know what's the glyph name for the SEMI-SHARP and SEMI-FLAT

In the following code, I should add the ones for SEMI-SHARP and SEMI-FLAT.
Do you know what's the name of the glyph? I already tried (e.g. SEMI-SHARP) 
"accidentals.semi-sharp", "accidentals.semisharp" and "accidentals.sharp.semi".
They didn't work, but it might be a problem of refreshing.

Best
Luca

arrowGlyphs = #`(
(,DOUBLE-SHARP . "accidentals.doublesharp")
(,SHARP-RAISE  . "accidentals.sharp.arrowup")
(,SHARP. "accidentals.sharp")
(,SHARP-LOWER  . "accidentals.sharp.arrowdown")
(,NATURAL-RAISE . "accidentals.natural.arrowup")
(  0. "accidentals.natural")
(,NATURAL-LOWER . "accidentals.natural.arrowdown")
(,FLAT-RAISE   . "accidentals.flat.arrowup")
(,FLAT . "accidentals.flat")
(,FLAT-LOWER   . "accidentals.flat.arrowdown")
(,DOUBLE-FLAT  . "accidentals.flatflat")
)


____________
From: Thomas Morley 
Sent: 13 December 2018 23:20
To: Luca Danieli
Cc: David Kastrup; lilypond-user
Subject: Re: Problem with accidentals.ly and Lilypond 2.19.82

Am Do., 13. Dez. 2018 um 23:11 Uhr schrieb Luca Danieli :

> What it did was to replace the line #(ly:parser-set-note-names parser 
> pitchnames)
> with #(ly:parser-set-note-names pitchnames)

convert-ly, correctly applied, would have done it for you ;)

> So I have got the same problem of before. Some accidentals are replaced with 
> a X. Don't know how to solve it.

Well, first I made an experiment.
I included your code and tried to compile the most simple:

{ ceseh1 }

With 2.18.2 and 2.19.82 (converted)

In both version I get:
warning: Could not find glyph-name for alteration -3/4
2.18.2 is done with this warning
2.19.82 additionally prints some dummy accidental

> Am I the only one to have this problem?

Likely, but I have a hard time imagening your file ever worked:

Obviously you took
http://lsr.di.unimi.it/LSR/Item?id=786
and changed it.
But while defining your pitchnames in 'arrowedPitchNames', you use
alterations like
(* FLAT 3/2)
(/ FLAT 2)
(/ SHARP 2)
(* SHARP 3/2)
There is no corresponding entry in 'arrowGlyphs' for those alterations, though.
Thus LilyPond-2.19.82 does not find any accidental-glyph to print,
warns you and (to make it more obvious) it prints the dummy instead.

Create additional entries in 'arrowGlyphs' for the alterations listed
above and it should work.

Cheers,
  Harm
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-13 Thread Thomas Morley
Am Do., 13. Dez. 2018 um 23:11 Uhr schrieb Luca Danieli :

> What it did was to replace the line #(ly:parser-set-note-names parser 
> pitchnames)
> with #(ly:parser-set-note-names pitchnames)

convert-ly, correctly applied, would have done it for you ;)

> So I have got the same problem of before. Some accidentals are replaced with 
> a X. Don't know how to solve it.

Well, first I made an experiment.
I included your code and tried to compile the most simple:

{ ceseh1 }

With 2.18.2 and 2.19.82 (converted)

In both version I get:
warning: Could not find glyph-name for alteration -3/4
2.18.2 is done with this warning
2.19.82 additionally prints some dummy accidental

> Am I the only one to have this problem?

Likely, but I have a hard time imagening your file ever worked:

Obviously you took
http://lsr.di.unimi.it/LSR/Item?id=786
and changed it.
But while defining your pitchnames in 'arrowedPitchNames', you use
alterations like
(* FLAT 3/2)
(/ FLAT 2)
(/ SHARP 2)
(* SHARP 3/2)
There is no corresponding entry in 'arrowGlyphs' for those alterations, though.
Thus LilyPond-2.19.82 does not find any accidental-glyph to print,
warns you and (to make it more obvious) it prints the dummy instead.

Create additional entries in 'arrowGlyphs' for the alterations listed
above and it should work.

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-13 Thread Luca Danieli
4 . ,SHARP-LOWER) (1 . ,SHARP-LOWER) 
(5 . ,SHARP-LOWER) (2 . ,SHARP-LOWER) (6 . ,SHARP-LOWER) (6 . ,SHARP-RAISE)
(3 . ,NATURAL-RAISE) (0 . ,NATURAL-RAISE) (4 . ,NATURAL-RAISE) (1 . 
,NATURAL-RAISE) (5 . ,NATURAL-RAISE) (2 . ,NATURAL-RAISE) (6 . ,NATURAL-RAISE)
(6 . ,NATURAL-LOWER) (2 . ,NATURAL-LOWER) (5 . ,NATURAL-LOWER) (1 . 
,NATURAL-LOWER) (4 . ,NATURAL-LOWER) (0 . ,NATURAL-LOWER) (3 . ,NATURAL-LOWER)
)
\override KeySignature.glyph-name-alist = \arrowGlyphs
\override KeySignature.padding-pairs = #'(
(("accidentals.natural.arrowdown" . "accidentals.natural.arrowdown") . 0.5)
(("accidentals.natural.arrowdown" . "accidentals.sharp.arrowdown") . 0.2)
(("accidentals.natural.arrowdown" . "accidentals.flat.arrowdown") . 0.7)
(("accidentals.natural.arrowup" . "accidentals.natural.arrowup") . 0.5)
(("accidentals.natural.arrowup" . "accidentals.sharp.arrowup") . 0.2)
(("accidentals.natural.arrowup" . "accidentals.flat.arrowup") . 0.7)
(("accidentals.flat.arrowup" . "accidentals.flat.arrowup") . 0.3))
\override Accidental.glyph-name-alist = \arrowGlyphs
\override AccidentalCautionary.glyph-name-alist = \arrowGlyphs
\override TrillPitchAccidental.glyph-name-alist = \arrowGlyphs
\override AmbitusAccidental.glyph-name-alist = \arrowGlyphs
  }
}
  % MIDI implements microtones as a pitch bend, with one bend per channel.
  % These lines below assign one channel to each Voice, in case there are
  % multiple voices on a staff, so that each voice can have its correct
  % pitch bend.


From: Thomas Morley 
Sent: 13 December 2018 21:33
To: Luca Danieli
Cc: David Kastrup; lilypond-user
Subject: Re: Problem with accidentals.ly and Lilypond 2.19.82

Am Do., 13. Dez. 2018 um 21:59 Uhr schrieb Luca Danieli :
>
> Thank you David.
> I tried to you convert-ly, but I got the following error:
>
> >convert-ly: error: accidentals.ly: Unable to determine version.  Skipping
>
> what can I do?

Then there is no \version-statement in the file.
Insert the version it was originally was created for, probably temporary.
Or do
convert-ly --from=2.18.2 --to=2.19.82 file.ly
Note, this will only show what would be changed . To actually do it, add -e

Anyway, you can't expect much effect on guile-code, although I think
we have a convert rule whch eliminates superfluos 'parser'-arguments
for 2.19.


> Luca Danieli  writes:
>
> > Hi there.
> >
> > I have got a problem. In my score, I have included the library 
> > accidentals.ly
> > With Lilypond 2.19.82 I have the error:
> >
> >
> > 163:2<0>: error: GUILE signaled an error for the expression beginning here
> >
> > #
> >
> > (ly:parser-set-note-names parser pitchnames)
> >
> > If I change the line #(ly:parser-set-note-names parser pitchnames)
> > with #(ly:parser-set-note-names pitchnames)
> >
> > the program compiles, but some notes present a X instead of the
> > correct accidental.

Well, first try convert-ly.
If it's not sufficient. You need to post your accidental.ly, otherwise
nobody can help.

And please, _no_ inline images. Attach them, link to them, but not inline.
Meanwhile I've got notifications from more and more companies dropping
any plain text, doing _all_ via html:
It lookes all bright and shiny like one brothel door next to more of
them. The content is hidden, though. Going on my nerves.
Thus I decided to disable _any_ html in mails.
So I can't see inline images, and I will not allow them being displayed, again.


Cheers,
  Harm
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-13 Thread Thomas Morley
Am Do., 13. Dez. 2018 um 21:59 Uhr schrieb Luca Danieli :
>
> Thank you David.
> I tried to you convert-ly, but I got the following error:
>
> >convert-ly: error: accidentals.ly: Unable to determine version.  Skipping
>
> what can I do?

Then there is no \version-statement in the file.
Insert the version it was originally was created for, probably temporary.
Or do
convert-ly --from=2.18.2 --to=2.19.82 file.ly
Note, this will only show what would be changed . To actually do it, add -e

Anyway, you can't expect much effect on guile-code, although I think
we have a convert rule whch eliminates superfluos 'parser'-arguments
for 2.19.


> Luca Danieli  writes:
>
> > Hi there.
> >
> > I have got a problem. In my score, I have included the library 
> > accidentals.ly
> > With Lilypond 2.19.82 I have the error:
> >
> >
> > 163:2<0>: error: GUILE signaled an error for the expression beginning here
> >
> > #
> >
> > (ly:parser-set-note-names parser pitchnames)
> >
> > If I change the line #(ly:parser-set-note-names parser pitchnames)
> > with #(ly:parser-set-note-names pitchnames)
> >
> > the program compiles, but some notes present a X instead of the
> > correct accidental.

Well, first try convert-ly.
If it's not sufficient. You need to post your accidental.ly, otherwise
nobody can help.

And please, _no_ inline images. Attach them, link to them, but not inline.
Meanwhile I've got notifications from more and more companies dropping
any plain text, doing _all_ via html:
It lookes all bright and shiny like one brothel door next to more of
them. The content is hidden, though. Going on my nerves.
Thus I decided to disable _any_ html in mails.
So I can't see inline images, and I will not allow them being displayed, again.


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-13 Thread Luca Danieli
I have been able to run it!

What it did was to replace the line #(ly:parser-set-note-names parser 
pitchnames)
with #(ly:parser-set-note-names pitchnames)

So I have got the same problem of before. Some accidentals are replaced with a 
X. Don't know how to solve it. Am I the only one to have this problem?

Best
Luca

From: lilypond-user  on 
behalf of Luca Danieli 
Sent: 13 December 2018 20:58
To: David Kastrup
Cc: lilypond-user@gnu.org
Subject: Re: Problem with accidentals.ly and Lilypond 2.19.82

Thank you David.
I tried to you convert-ly, but I got the following error:

>convert-ly: error: accidentals.ly: Unable to determine version.  Skipping

what can I do?

Best
Luca


From: David Kastrup 
Sent: 13 December 2018 13:49
To: Luca Danieli
Cc: lilypond-user@gnu.org
Subject: Re: Problem with accidentals.ly and Lilypond 2.19.82

Luca Danieli  writes:

> Hi there.
>
> I have got a problem. In my score, I have included the library accidentals.ly
> With Lilypond 2.19.82 I have the error:
>
>
> 163:2<0>: error: GUILE signaled an error for the expression beginning here
>
> #
>
> (ly:parser-set-note-names parser pitchnames)
>
> If I change the line #(ly:parser-set-note-names parser pitchnames)
> with #(ly:parser-set-note-names pitchnames)
>
> the program compiles, but some notes present a X instead of the
> correct accidental.
>
> [cid:b8369fdb-4dc3-4778-96bf-3cf7ffb201d7]
>
> I am stuck between these two things and not know how to solve the
> issues and use accidentals.ly with Lilypond 2.19.82

<http://lilypond.org/doc/v2.18/Documentation/usage/updating-files-with-convert_002dly.en.html>


--
David Kastrup
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-13 Thread Luca Danieli
Thank you David.
I tried to you convert-ly, but I got the following error:

>convert-ly: error: accidentals.ly: Unable to determine version.  Skipping

what can I do?

Best
Luca


From: David Kastrup 
Sent: 13 December 2018 13:49
To: Luca Danieli
Cc: lilypond-user@gnu.org
Subject: Re: Problem with accidentals.ly and Lilypond 2.19.82

Luca Danieli  writes:

> Hi there.
>
> I have got a problem. In my score, I have included the library accidentals.ly
> With Lilypond 2.19.82 I have the error:
>
>
> 163:2<0>: error: GUILE signaled an error for the expression beginning here
>
> #
>
> (ly:parser-set-note-names parser pitchnames)
>
> If I change the line #(ly:parser-set-note-names parser pitchnames)
> with #(ly:parser-set-note-names pitchnames)
>
> the program compiles, but some notes present a X instead of the
> correct accidental.
>
> [cid:b8369fdb-4dc3-4778-96bf-3cf7ffb201d7]
>
> I am stuck between these two things and not know how to solve the
> issues and use accidentals.ly with Lilypond 2.19.82

<http://lilypond.org/doc/v2.18/Documentation/usage/updating-files-with-convert_002dly.en.html>


--
David Kastrup
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with accidentals.ly and Lilypond 2.19.82

2018-12-13 Thread David Kastrup
Luca Danieli  writes:

> Hi there.
>
> I have got a problem. In my score, I have included the library accidentals.ly
> With Lilypond 2.19.82 I have the error:
>
>
> 163:2<0>: error: GUILE signaled an error for the expression beginning here
>
> #
>
> (ly:parser-set-note-names parser pitchnames)
>
> If I change the line #(ly:parser-set-note-names parser pitchnames)
> with #(ly:parser-set-note-names pitchnames)
>
> the program compiles, but some notes present a X instead of the
> correct accidental.
>
> [cid:b8369fdb-4dc3-4778-96bf-3cf7ffb201d7]
>
> I am stuck between these two things and not know how to solve the
> issues and use accidentals.ly with Lilypond 2.19.82




-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user