Re: Lilypond-book problem

2022-09-04 Thread Rip _Mus
Good morning,
thanks for the reply!  You're right, I could have added a few more details.
The operating system is Windows 10. For using Lilypond on command line, I
followed the instructions on the site.
I added the folder "C:Program Files (x86)\LilyPond\usr\bin" to the
environmental variable “Path”.
 I think I followed them well, as the "ilypond" command works.  The other
commands "lilypond-book" and "convert-ly" instead give me the following
message:

'lilypond-book' is not recognized as an internal or external command

What I notice is that in the folder in question there are lilypond-book and
convert-ly scripts, but they are without extension (for example * .py)

What do you think about?


Il lun 5 set 2022, 02:13 Knute Snortum  ha scritto:

> On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus 
> wrote:
> >
> > Good morning,
> > I have installed the version 2.22.1, wich I used for a lot of big
> project.
> > A lot of times I tried to open terminal and run "lilypond-book" but
> without success. I already add the folder "...\usr\bin" to the
> environmental variabile path, in fact the command "lilypond" runs.
> > Someone could help me?
>
> It would be helpful to know exactly what is going wrong.  Do you get
> error messages?  Post them.  Not doing what you think it should?  Tell
> us what it's doing and what you think it should be doing.  Also, tell
> us the OS, is it linux?
>
> --
> Knute Snortum
>


Re: Lilypond-book problem

2022-09-04 Thread Knute Snortum
On Sun, Sep 4, 2022 at 9:06 AM Rip _Mus  wrote:
>
> Good morning,
> I have installed the version 2.22.1, wich I used for a lot of big project.
> A lot of times I tried to open terminal and run "lilypond-book" but without 
> success. I already add the folder "...\usr\bin" to the environmental 
> variabile path, in fact the command "lilypond" runs.
> Someone could help me?

It would be helpful to know exactly what is going wrong.  Do you get
error messages?  Post them.  Not doing what you think it should?  Tell
us what it's doing and what you think it should be doing.  Also, tell
us the OS, is it linux?

--
Knute Snortum



Getting point and click going with gvim on Alma Linux

2022-09-04 Thread Andrew Bernard
In response to the recent thread on alternatives to Frescobaldi on Alma 
Linux I have prepared this set of instructions. I have tested this and 
there are two points in addition to the notes below.


One, I am unable to get rid of the last line of the extensive status 
message gvim shows at the bottom when invoked with a remote call. This 
is puzzling - I am working on it.


Second, in 2.23.12 at least, there is an error, strangely only for gvim, 
in libexec/lilypond-invoke editor. Line 130 is missing a comma, and must 
be updated to:


    "gvim": [("gvim", "--remote", "+:%(line)s:norm%(column)s", 
"%(file)s")],


I have submitted a bug report request about this.

This is a variant of the document 'The Guide to getting Point and Click 
going with Gvim under Ubuntu 18' I submitted to the list some years ago, 
and the comments members made there may be useful to read still.


https://mail.gnu.org/archive/html/lilypond-user/2019-02/msg00536.html

These instructions are readily adaptable to other text editors that are 
supported in libexec/lilypond-invoke-editor. I used Alma Linux 9.0 to 
develop these notes.



Andrew




The Guide to getting Point and Click going with Gvim under Alma Linux 9
---

The NR has no detailed information about Lilypond point and click with 
gvim for
Alma Linux. This note attempts to remedy that. Some information from the 
NR is

copied here for ease of reference.

Requirements


Alma Linux 9.0
Document Viewer (evince)
Lilypond
gvim version 8.2 (vim-X11 package)
[assumes bash shell]


Setting the EDITOR variable
---

Lilypond uses the environment variable EDITOR to select which editor to 
use to

display point and click links. For gvim, simply use the value 'gvim':

export EDITOR=gvim

Setting LYEDITOR is not required.

You can start evince from a terminal command to view a PDF. But if you 
want to
click on a PDF in GNOME Nautilus to view it then just exporting this 
variable
from the various bash startup files is inadequate. Gnome is started by 
Xsession
in X11 before terminals and shells. Therefore it is unable to see 
environment

variables set in .bashrc (or .bash_profile, etc). To resolve this matter,
recall that Xsession uses the startup file $HOME/.xsessionrc. For 
environment
variables that are to be shared between GNOME applications and terminal 
shells,
do the following. Create a file for variable declarations, of arbitrary 
name.


Add the EDITOR setting to that file:

 $ echo 'export EDITOR=gvim' > ~/.my_env_vars

Then edit ~/.xsessionrc to contain:

if [ -f ~/.my_env_vars ]; then
    . ~/.my_env_vars
fi

Now also add these same lines to ~/.bashrc. Some like to use 
.bash_profile or

other mechanisms, but the principle is the same. Manage any shared variables
that Nautilus and a bash shell both need in this third file. To make 
this take

effect, logout and login again so that a new Xsession is started.


Installing Gvim
---

Gvim is in the following package, not a package called gvim.

# dnf install vim-X11


Configuring the GNOME 3 Desktop
---

Create the file 'lilypond-invoke-editor.desktop':

[Desktop Entry]
Version=1.0
Name=lilypond-invoke-editor
GenericName=Textedit URI handler
Comment=URI handler for textedit:
Exec=lilypond-invoke-editor %u
Terminal=false
Type=Application
MimeType=x-scheme-handler/textedit;
Categories=Editor
NoDisplay=true

Run:

$ xdg-desktop-menu install ./lilypond-invoke-editor.desktop
$ xdg-mime default lilypond-invoke-editor.desktop x-scheme-handler/textedit

Check that this works. Install the xdg-open program:

# dnf install xdg-utils

Then:

$ xdg-open textedit:///etc/os-release:1:0:0

If all is correct lilypond-invoke-editor will run and display the file.


Configuring Gvim


Not all users see this problem, but if you do, it is hard to solve if 
you don't

know. On a plain new gvim install, every time you click on a lilypond grob
under the setup described here, a rather daunting status message is 
shown, and

you have to press ENTER to continue, each time. This is just an example:

:if !exists('+acd')||!|if haslocaldir()|cd -|lcd -|elseif getcwd() 
==# '/home/andro'|cd -|endif|endif

::1898:norm3|cal foreground()|if |star|en|redr|f

And also 'Press ENTER or type command to continue'.

The solution to this is to change the size of the message display in 
gvim. Add

the following to ~/.gvimrc:

if exists('+cmdheight') && ( < 2)
  set ch=2
endif

You may need to set the height to 3, depending on various sizes.
[As for why some people do not see this issue, I am unclear.]

[n.b. this is from the previous issue of this document for Ubuntu 18 but the
messsage in Alma Linux persists despite this fix. I am currently working on
it.]

A Personal Preference
-

Because gvim comes by default with mouse enabled, and this is a useful 
feature,

if you click in the 

Re: Alternative to Frescobaldi

2022-09-04 Thread Andrew Bernard
I have compiled a set of step by step instructions for getting point and 
click going with gvim on Alma Linux. I'll start a new thread as this one 
is becoming longish.


Andrew




custom chord

2022-09-04 Thread Stan Sanderson
(Using LP 2.23.12)
This has me flummoxed- I’m trying to reproduce a score for my own use. I have 
run out of ideas about reproducing the (unusual) chord name- the “4 over 2” 
part in particular. I’ve included a screen shot.
I assume a markup column with 4 over 2, squeezed together, is part of the 
solution, but I would be grateful for some help. (key E maj)


Thanks,

Stan

Lilypond-book problem

2022-09-04 Thread Rip _Mus
Good morning,
I have installed the version 2.22.1, wich I used for a lot of big project.
A lot of times I tried to open terminal and run "lilypond-book" but without
success. I already add the folder "...\usr\bin" to the environmental
variabile path, in fact the command "lilypond" runs.
Someone could help me?

Thank you

Rip_mus


Re: Create 16th-century microtonal accidental

2022-09-04 Thread Hans Åberg
The Harvard Concise says that in the 15th century, the term diesis was used to 
denote the sharp, and that the microtonal interpretations are modern.


> On 4 Sep 2022, at 17:44, Johannes Keller  wrote:
> 
> Thank you for these thoughts. I'm aware of the Helmholtz-Ellis notation
> and decided not to use it (or any other contemporary approach to
> microtonality). My thesis is that Vicentino's notation is in fact a
> tabulature for his Archicembalo / Arciorgano (keyboard instruments with
> up to 36 keys per octave), so they are a reference to a location on the
> keyboard, not to a specific pitch (be it relative or absolute). Since
> the tuning of those instruments is context-dependent it would be
> confusing to define the 'meaning' of the notation in terms of exact
> interval sizes. I'm happy to discuss this further in case you are
> interested, but maybe we better do that off the lilypond-list.
> 
> 
> Hans Åberg  writes:
> 
>>> On 2 Sep 2022, at 10:24, Johannes Keller  wrote:
>>> 
>>> I would like to use Lilypond for a critical edition of Nicola
>>> Vicentino's treatise "L'antica musica" (Rome 1555). The original
>>> notation uses an unconventional accidental to indicate a pitch
>>> modification of a "Diesis" (ca. 1/5 of a whole tone).
>> …
>>> Examples of the original notation can be found here, see for example
>>> fol. 12v (PDF p. 24):
>>> 
>>> http://vmirror.imslp.org/files/imglnks/usimg/9/94/IMSLP114662-PMLP210243-lantica_musica.pdf
>> 
>> In case you would want to translate into modern microtonal notation:
>> 
>> The enharmonic diesis 128/125, the difference between an octave 2 and
>> three Just Intonation major thirds 5/4, is actually an interval of
>> relative scale degree 1, not an accidental, or an interval of relative
>> scale degree 0.
>> 
>> So this means that if this old manuscript, where the enharmonic diesis
>> is written as an accidental, is translated into modern Helmholtz-Ellis
>> notation, the note ends on the position one above in the staff
>> notation, with a triple raised syntonic comma 81/80, combined with
>> some other accidental like a flat or double flat.




Re: Create 16th-century microtonal accidental

2022-09-04 Thread Johannes Keller
Thank you for these thoughts. I'm aware of the Helmholtz-Ellis notation
and decided not to use it (or any other contemporary approach to
microtonality). My thesis is that Vicentino's notation is in fact a
tabulature for his Archicembalo / Arciorgano (keyboard instruments with
up to 36 keys per octave), so they are a reference to a location on the
keyboard, not to a specific pitch (be it relative or absolute). Since
the tuning of those instruments is context-dependent it would be
confusing to define the 'meaning' of the notation in terms of exact
interval sizes. I'm happy to discuss this further in case you are
interested, but maybe we better do that off the lilypond-list.


Hans Åberg  writes:

>> On 2 Sep 2022, at 10:24, Johannes Keller  wrote:
>>
>> I would like to use Lilypond for a critical edition of Nicola
>> Vicentino's treatise "L'antica musica" (Rome 1555). The original
>> notation uses an unconventional accidental to indicate a pitch
>> modification of a "Diesis" (ca. 1/5 of a whole tone).
> …
>> Examples of the original notation can be found here, see for example
>> fol. 12v (PDF p. 24):
>>
>> http://vmirror.imslp.org/files/imglnks/usimg/9/94/IMSLP114662-PMLP210243-lantica_musica.pdf
>
> In case you would want to translate into modern microtonal notation:
>
> The enharmonic diesis 128/125, the difference between an octave 2 and
> three Just Intonation major thirds 5/4, is actually an interval of
> relative scale degree 1, not an accidental, or an interval of relative
> scale degree 0.
>
> So this means that if this old manuscript, where the enharmonic diesis
> is written as an accidental, is translated into modern Helmholtz-Ellis
> notation, the note ends on the position one above in the staff
> notation, with a triple raised syntonic comma 81/80, combined with
> some other accidental like a flat or double flat.



Re: Alternative to Frescobaldi

2022-09-04 Thread David Wright
TL;DR

You need to follow Usage, §4.1.1 for evince to call
lilypond-invoke-editor successfully.

On Sat 03 Sep 2022 at 08:49:11 (+0100), J Martin Rushton wrote:
> On Fri, 2022-09-02 at 19:53 -0500, David Wright wrote:
> > On Fri 02 Sep 2022 at 22:46:01 (+0100), J Martin Rushton wrote:
> > > On Fri, 2022-09-02 at 16:17 -0500, David Wright wrote:
> > > > On Fri 02 Sep 2022 at 21:43:25 (+0100), J Martin Rushton wrote:
> > > > > I've just spent another couple of hours clearing out previous
> > > > > attempts
> > > > > to get Frescobaldi running and attempting to sort out its
> > > > > dependency
> > > > > hell.
> > > > > 
> > > > > Is there any alternative to Frescobaldi?
> > > > 
> > > > An editor (emacs) + LilyPond + PDF viewer (xpdf).
> > > > (My choices in parentheses.)
> > > > 
> > > > > I'm running AlmaLinux 8.6 if that helps.
> > > > 
> > > > Not a great deal; does it mean that F~ isn't part of the
> > > > distribution?
> > > > 
> > > My preference is for vi, but yes, that's what I've been using for
> > > the
> > > last couple of years since F~ stopped working.  What I miss though
> > > is
> > > the back link from the score to the source, and the MIDI playback.
> > 
> > 0. Which PDF viewer, and which version of LP?
> 
> Evince
> $ lilypond -v
> GNU LilyPond 2.22.1
> ...
> 
> > 
> > 1. Does the PDF have the textedit URLs?
> >$ grep -a textedit foo.pdf
> >/URI(textedit:///tmp/restpos.ly:4:16:17)>>
> >  ………
> 
> Yes
> 
> > 2. Does the PDF viewer see them? Look for cursor to change as you
> >move over a notehead.
> 
> Yes
> 
> > 3. Run the PDF viewer from the commandline. Click on an active
> >notehead. What appears on the console? Anything like:
> >  lilypond-invoke-editor (GNU LilyPond) 2.22.0
> 
> "textedit:///BlowAwayTheMorningDew.ly:35:16:17"

Is than on the console, or in the evince window itself?

Because I don't use evince, and haven't set it up, I get
"Unable to open external link". But your message starts with
"textedit" rather than "lilypond-invoke-editor", which might
be a similar problem.

I think you need to set up the GNOME section in Usage §4.1.1.
Whether you also need the following section, "Extra
configuration for Evince", depends on whether Alma has
configured apparmor or not. Repost if you get permission errors.

> > 4. Is lilypond-invoke-editor defined?
> >$ which lilypond-invoke-editor
> >/usr/bin/lilypond-invoke-editor
> 
> $ command -v lilypond
> /opt/bin/lilypond
> $ ls -l /opt/bin/lilypond
> -rwxr-xr-x 1 root root 112 Feb 13  2022 /opt/bin/lilypond
> $ ls -l /opt/bin/lilypond-invoke-editor
> lrwxrwxrwx 1 root root 31 Feb 13  2022 /opt/bin/lilypond-invoke-editor
> -> /opt/bin/lilypond-wrapper.guile
> 
> 
> > 5. Can lilypond-invoke-editor open a file in an editor,
> >preferably the one you want?
> >$ lilypond-invoke-editor textedit:///tmp/foo.txt:2:4:6
> >/tmp/foo.txt is the full path to any old text file with
> >more than a couple of lines in it. The cursor should land
> >on the second line, four chars along.
> 
> $ lilypond-invoke-editor
> textedit:BlowAwayTheMorningDew.ly:2:4:6
> lilypond-invoke-editor (GNU LilyPond) 2.22.1
> sh: emacsclient: command not found
> sh: emacs: command not found

5a. Try:

$ LYEDITOR=gvim lilypond-invoke-editor 
textedit:BlowAwayTheMorningDew.ly:2:4:6

If that works, you need to set LYEDITOR in your startup file.
That might be as above or, in view of your answer below, to:

  LYEDITOR="vi --servername gvim"

Or start editing with:

$ vi --servername gvim BlowAwayTheMorningDew.ly

If vi isn't running when you point and click, you should just get an
extra message, like 'E247: no registered server named "GVIM":
Send failed. Trying to execute locally', which should be harmless.

(The benefit of starting vi yourself is that you get to control where
it runs, rather than it just popping up when you click the first time.)

If 5a doesn't work, substitute EDITOR for LYEDITOR. (The benefit of
LYEDITOR is that EDITOR usually has a meaning across the entire OS,
rather than just this application.)

> > How many of those steps work?
> > 
> > And at the other end of the process, are you starting vi as
> > a server, with something like:
> > 
> > $ gvim
> > $ vim --servername GVIM
> > $ vi --servername gvim
> > 
> > (letter-case unimportant), else you might see:
> > E247: no registered server named "GVIM": Send failed.
> 
> $ vi BlowAwayTheMorningDew.ly
> 
> FYI
> $ command -v vi
> /usr/bin/vi
> bash-4.4$ ls -l /usr/bin/vi
> -rwxr-xr-x 1 root root 1180368 Aug  2 17:57 /usr/bin/vi

Cheers,
David.



Re: tremolo w/dots

2022-09-04 Thread Thomas Morley
Am So., 4. Sept. 2022 um 15:46 Uhr schrieb bobr...@centrum.is
:
>
> Does LilyPond know how to do this without resorting to using  \markup?  The 
> dots over the stemDown note also looks too far right.  I could adjust it on a 
> case-by-case basis but that seems rather tedious if LilyPond can do the dots 
> itself without using \markup.
>
> -David
>
> \version "2.22.2"
>
> \relative c' {
>   \time 2/4
>   \repeat tremolo 4 { c16^\markup{ ""}}
>   \repeat tremolo 4 { c'16^\markup{ ""}}
> }
>

https://lsr.di.unimi.it/LSR/Item?id=772

Cheers,
 Harm



tremolo w/dots

2022-09-04 Thread bobr...@centrum.is
Does LilyPond know how to do this without resorting to using  \markup?  The 
dots over the stemDown note also looks too far right.  I could adjust it on a 
case-by-case basis but that seems rather tedious if LilyPond can do the dots 
itself without using \markup.

-David

\version "2.22.2"

\relative c' {
  \time 2/4
  \repeat tremolo 4 { c16^\markup{ ""}} 
  \repeat tremolo 4 { c'16^\markup{ ""}} 
}



Re: Alternative to Frescobaldi

2022-09-04 Thread Adam M. Griggs
How about Elysium?

http://elysium.thsoft.hu/getting-started

I have never tried it, but it is suggested on the Lilypond website:

http://lilypond.org/easier-editing.html

On Sun, 4 Sep 2022, 17:52 Thomas Morley,  wrote:

> Am So., 4. Sept. 2022 um 08:51 Uhr schrieb Silvain Dupertuis
> :
> >
> > As far as editing music sheet is concerned,Io remember having been using
> jEdit, a text editor written in Java, with a Lilypond extension displaying
> the PDF with links to the Lilypond code like Frescobaldi does it.
> >
> > That was a long time ago, maybe before I even had Frescobaldi, but it
> would be worthwhile exploring...
> >
> > Silvain Dupertuis
>
> I'm still using jEdit, though the LilyPondTool plugin is not
> maintained for a decade:
>
> http://lilypondtool.blogspot.com/2012/09/lilypondtool-2149-release-last-for.html
>
> Personally I don't care about it, though therefore I'd not recommend
> jEdit for starters.
>
> Cheers,
>   Harm
>
>


Re: Alternative to Frescobaldi

2022-09-04 Thread Thomas Morley
Am So., 4. Sept. 2022 um 08:51 Uhr schrieb Silvain Dupertuis
:
>
> As far as editing music sheet is concerned,Io remember having been using 
> jEdit, a text editor written in Java, with a Lilypond extension displaying 
> the PDF with links to the Lilypond code like Frescobaldi does it.
>
> That was a long time ago, maybe before I even had Frescobaldi, but it would 
> be worthwhile exploring...
>
> Silvain Dupertuis

I'm still using jEdit, though the LilyPondTool plugin is not
maintained for a decade:
http://lilypondtool.blogspot.com/2012/09/lilypondtool-2149-release-last-for.html

Personally I don't care about it, though therefore I'd not recommend
jEdit for starters.

Cheers,
  Harm



Re: Alternative to Frescobaldi

2022-09-04 Thread Silvain Dupertuis
As far as editing music sheet is concerned,Io remember having been using jEdit, a text 
editor written in Java, with a Lilypond extension displaying the PDF with links to the 
Lilypond code like Frescobaldi does it.


That was a long time ago, maybe before I even had Frescobaldi, but it would be worthwhile 
exploring...


Silvain Dupertuis

.



J Martin Rushton MBCS



--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org