Re: Problems with lilypond-invoke-editor

2024-04-11 Thread Ben Bradshaw
Sorry, I'll try and be more specific. I don't use a desktop environment
either, so I normally open emacs from a keybinding that uses the spawn
command in herbstluftwm (which I think is basically a bash exec). Then
after I compile a lilypond file with C-c C-c (and choose lilypond) then
choose view, zathura opens and when I point and click it gets those errors.
If I just close that instance of zathura, and then open a new one (from
dmenu), then point and click works.

I haven't had time to try xpdf yet, but knowing this I can adjust and open
zathura by itself instead of however emacs opens it through the command and
things work. Just a change of habit.

On Thu, Apr 11, 2024, 10:17 PM David Wright 
wrote:

> On Wed 10 Apr 2024 at 21:35:16 (-0600), Ben Bradshaw wrote:
> > Well I fixed having multiple lilyponds installed, and at first I thought
> it
> > worked. Zathura and xpdf at least work when I open them separately.
>
> I'm not sure exactly what you mean by open separately. Is this: typing
>  in a command line, or clicking on a viewer's icon, or (by file
> association) clicking on a PDF document?
>
> > I guess
> > it's a minor annoyance, but if I open zathura from the C-c C-c part of
> > emacs, then it doesn't work and I get those errors.
>
> Same again—how do you start emacs?
>
> > I have no clue why that
> > would make a difference, but it seems to be the case. Open the file in a
> > viewer separately and point and click works just fine. Use the lilypond
> > command view and it doesn't.
>
> I've only tested with xpdf and emacs, each one opened from the command
> line (because I don't use a desktop). Point-and-click works whether
> xpdf was started from the command line or from  ^C^C ViewPDF in emacs.
>
> > I guess I haven't tried to see if other pdf
> > viewers work from the command menu, but it seems like it wouldn't be a
> > zathura problem.
>
> I would try with xpdf, because it has a simpler configuration/mechanism
> than viewers like zathura and evince. If xpdf works correctly, I would
> suspect that there might by more Gnome-y stuff required to get zathura
> to work when launched by emacs with ^C^C, rather than by Gnome. But
> that's only a guess.
>
> Would you be able to adjust your workflow to begin by running zathura
> on the PDF, and just clicking on an item in the score to launch emacs?
> (Perhaps that's what you're already doing.)
>
> Cheers,
> David.
>


Re: Problems with lilypond-invoke-editor

2024-04-11 Thread David Wright
On Wed 10 Apr 2024 at 21:35:16 (-0600), Ben Bradshaw wrote:
> Well I fixed having multiple lilyponds installed, and at first I thought it
> worked. Zathura and xpdf at least work when I open them separately.

I'm not sure exactly what you mean by open separately. Is this: typing
 in a command line, or clicking on a viewer's icon, or (by file
association) clicking on a PDF document?

> I guess
> it's a minor annoyance, but if I open zathura from the C-c C-c part of
> emacs, then it doesn't work and I get those errors.

Same again—how do you start emacs?

> I have no clue why that
> would make a difference, but it seems to be the case. Open the file in a
> viewer separately and point and click works just fine. Use the lilypond
> command view and it doesn't.

I've only tested with xpdf and emacs, each one opened from the command
line (because I don't use a desktop). Point-and-click works whether
xpdf was started from the command line or from  ^C^C ViewPDF in emacs.

> I guess I haven't tried to see if other pdf
> viewers work from the command menu, but it seems like it wouldn't be a
> zathura problem.

I would try with xpdf, because it has a simpler configuration/mechanism
than viewers like zathura and evince. If xpdf works correctly, I would
suspect that there might by more Gnome-y stuff required to get zathura
to work when launched by emacs with ^C^C, rather than by Gnome. But
that's only a guess.

Would you be able to adjust your workflow to begin by running zathura
on the PDF, and just clicking on an item in the score to launch emacs?
(Perhaps that's what you're already doing.)

Cheers,
David.



Re: Installing 2.24.1

2024-04-11 Thread David Wright
On Thu 11 Apr 2024 at 21:14:14 (+0100), Wol wrote:
> On 07/04/2024 11:50, Werner LEMBERG wrote:
> > 
> > > > There is a web page that deals with command-line installation, if
> > > > that's what you want:
> > > > 
> > > > https://lilypond.org/doc/v2.24/Documentation/learning/command-line-setup
> > > > 
> > > Thanks. So basically "yes", I guessed as much.
> > > 
> > > I just need to re-associate the new version of lilypond with .ly
> > > files...
> > 
> > If you have a chance please check these instructions for correctness;
> > I'm not a regular Windows user, and there might be errors and/or
> > problems due to my clumsy testing.
> > 
> Well, it doesn't appear to work ...
> 
> Bear in mind I'm running Windows, so I don't want to run lilypond from
> the command line. I double-click a .ly file, it runs lilypond, and my
> pdf appears (or at least it does, running the old version).
> 
> What I did was open a command shell as administrator, and extracted
> lilypond into Program Files. I then opened a .ly file and - nothing
> happened!
> 
> Or rather, nothing useful happened. A popup window opened, and
> disappeared. No log files, no output, no nothing.
> 
> Okay. Tried to run it the un-windows way of using the command line.
> Complete pain in the ass, I'm afraid. And at least I can see the error
> messages ...
> 
> D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso>"c:\Program
> Files\lilypond-2.24.3\bin\lilypond.exe" partTromboneB.ly
> GNU LilyPond 2.24.3 (running Guile 2.2)
> Processing `partTromboneB.ly'
> Parsing...
> partTromboneB.ly:6:10: error: cannot find file: `voiceTromboneB.ily'
> (search path: `c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/ly;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/ps;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/scm;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/fonts/otf/;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/fonts/svg/;')
> \include
>  "voiceTromboneB.ily"
> partTromboneB.ly:23:41: error: unknown escaped string: `\voiceTromboneB'
> 
> \voiceTromboneB
> partTromboneB.ly:23:41: error: string outside of text script or \lyricmode
> 
> \voiceTromboneB
> 

What's odd about this log is that the errors occur on lines 6 and 23,
and yet there's no error concerning voiceStaff.ily, nor the variables
voiceTimeSig and voiceMarkup, defined therein. That suggests (but does
not prove) that voiceStaff.ily was found.

Of course, these line numbers may be coincidental.

> Note: compilation failed and \version outdated, did you
> update input syntax with convert-ly?
> 
> 
> https://lilypond.org/doc/v2.24/Documentation/usage/updating-files-with-convert_002dly
> 
> Interpreting music...[8]
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Converting to `partTromboneB.pdf'...
> fatal error: failed files: "partTromboneB.ly"
> 
> D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso>
> 
> 
> So it looks like it's searching the program directory for my include
> files, and not the current directory where they actually are! Note
> that running the older lilypond correctly compiles the file.

Cheers,
David.



Re: Installing 2.24.1

2024-04-11 Thread Wol

On 11/04/2024 21:37, Jean Abou Samra wrote:

Is voiceTromboneB.ily really in the*current*  directory? Namely
D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso\ (and not, e.g.,
D:\Users\Anthony\My Git\music\GBB-Concert\)?


Well, if voiceTromboneB.ily was in the parent directory, it would really 
mess things up. I split the notes, the layout etc into separate files in 
the same directory, and there's no way things would work if I tried to 
have multiple files, each with the the notes for their piece, all with 
the same name, and all in the same folder ... !!!


> > Bear in mind I'm running Windows, so I don't want to run lilypond
> > from the command line. I double-click a .ly file, it runs lilypond,
> > and my pdf appears (or at least it does, running the old version).

> That particular workflow however is not supported out of the box
> anymore, since the distributed artifacts are no longer .exe
> installers.

???

> It might be possible to recreate it, but I don't know if Windows will
> let you associate a file extension with an arbitrary program or if it 
> only supports associating with a GUI app.


Given that it works fine for the previous version of lilypond (which 
once installed is pretty much identical) why wouldn't it work for this 
version?


I'll have to try Aaron's instructions to see if they work.

Cheers,
Wol



Re: Installing 2.24.1

2024-04-11 Thread Aaron Hill

On 2024-04-11 1:14 pm, Wol wrote:
So it looks like it's searching the program directory for my include 
files, and not the current directory where they actually are! Note that 
running the older lilypond correctly compiles the file.



I am having trouble reproducing the behavior you are seeing.  On a 
Windows 10 machine (22H2, 19045.4170) that does not have Frescobaldi nor 
any prior LilyPond installation, I took the following steps:


1) Download LilyPond for Windows (version 2.24.3, also 2.25.14 from the 
development page)
2) Unzip to my Downloads folder (produced subfolders lilypond-2.24.3 and 
lilypond-2.25.14)

3) Opened a terminal window within the Downloads folder...
4) Ran "lilypond-2.24.3/bin/lilypond --version" to verify the download 
and extraction worked

5) Created two files on my Desktop:

%% test.ily %%
\version "2.24.0"
test = { b'4 4 2 }


%% test.ly %%
\version "2.24.0"
\include "test.ily"
{ \test \test }


6) Opened a terminal window within the Desktop folder...
7) Ran "..\..\Downloads\lilypond-2.24.3\bin\lilypond --version" to 
verify pathing worked
8) Ran "..\..\Downloads\lilypond-2.24.3\bin\lilypond test.ly" to verify 
compilation


At this point, test.pdf was created without any issues.  (Well, 
actually, it did fail due to a wrong version number, but that was 
because I was running on autopilot and had mistyped the \version 
statements in my test documents as 2.25.14, since I was also testing 
against that version as well.  Correcting the \version statements as 
noted above resolved that.)


9) From an *elevated* command prompt...
10) Ran "assoc .ly=LilyPond"
11) Ran "ftype LilyPond=\lilypond-2.24.3\bin\lilypond.exe 
%1"


NOTE: The path above was to my user's Downloads folder from which I had 
been running LilyPond during testing.


12) Back in a normal command prompt from the Desktop folder...
13) Ran "test.ly" to verify file association and compilation.

No issues.

14) Double-clicked "test.ly" from my Desktop.

No issues.


-- Aaron Hill



Re: Installing 2.24.1

2024-04-11 Thread Jean Abou Samra
> Is there any reason for expecting me to install an unwanted program, in 
> order to get a program I do want? Or are you trying to force everybody 
> to use Frescobaldi? Why?


The default installation tutorial use Frescobaldi because it's a
newcomer-friendly IDE. That doesn't mean we're trying to "force"
people to use Frescobaldi. You may use the command line, or Emacs,
or VS Code, or whatever way of running an executable.


> Well, it doesn't appear to work ...
> 
> Bear in mind I'm running Windows, so I don't want to run lilypond from
> the command line. I double-click a .ly file, it runs lilypond, and my
> pdf appears (or at least it does, running the old version).


That particular workflow however is not supported out of the box anymore,
since the distributed artifacts are no longer .exe installers.

It might be possible to recreate it, but I don't know if Windows will let
you associate a file extension with an arbitrary program or if it only
supports associating with a GUI app.

In any case, you would need to write a script to redirect the log
to a separate file (since the -dgui option has disappeared as well,
commit 602c391915).


> What I did was open a command shell as administrator, and extracted
> lilypond into Program Files. I then opened a .ly file and - nothing
> happened!


Well, merely extracting a ZIP archive somewhere will just... create files
on your computer, that's all. It doesn't change file associations.


> Or rather, nothing useful happened. A popup window opened, and
> disappeared. No log files, no output, no nothing.
> 
> Okay. Tried to run it the un-windows way of using the command line.
> Complete pain in the ass, I'm afraid. And at least I can see the error
> messages ...
> 
> D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso>"c:\Program
> Files\lilypond-2.24.3\bin\lilypond.exe" partTromboneB.ly
> GNU LilyPond 2.24.3 (running Guile 2.2)
> Processing `partTromboneB.ly'
> Parsing...
> partTromboneB.ly:6:10: error: cannot find file: `voiceTromboneB.ily'
> (search path: `c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/ly;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/ps;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/scm;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/fonts/otf/;c:/Program
> Files/lilypond-2.24.3/share/lilypond/2.24.3/fonts/svg/;')
> \include
>   "voiceTromboneB.ily"
> partTromboneB.ly:23:41: error: unknown escaped string: `\voiceTromboneB'
> 
>  \voiceTromboneB
> partTromboneB.ly:23:41: error: string outside of text script or \lyricmode
> 
>  \voiceTromboneB
> 
> Note: compilation failed and \version outdated, did you
> update input syntax with convert-ly?
> 
>  
> https://lilypond.org/doc/v2.24/Documentation/usage/updating-files-with-convert_002dly
> 
> Interpreting music...[8]
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Converting to `partTromboneB.pdf'...
> fatal error: failed files: "partTromboneB.ly"
> 
> D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso>
> 
> 
> So it looks like it's searching the program directory for my include
> files, and not the current directory where they actually are! Note that
> running the older lilypond correctly compiles the file.


Is voiceTromboneB.ily really in the *current* directory? Namely
D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso\ (and not, e.g.,
D:\Users\Anthony\My Git\music\GBB-Concert\)?

Note that the search path ends in a ';' which means that there is actually
an empty entry at the end, which should search the current directory (in other
words, LilyPond is not searching only its internal directories, it's searching
both these and the current directory, and that's perfectly normal).




signature.asc
Description: This is a digitally signed message part


Re: Installing 2.24.1

2024-04-11 Thread Wol




On 07/04/2024 11:50, Werner LEMBERG wrote:



There is a web page that deals with command-line installation, if
that's what you want:

https://lilypond.org/doc/v2.24/Documentation/learning/command-line-setup


Thanks. So basically "yes", I guessed as much.

I just need to re-associate the new version of lilypond with .ly
files...


If you have a chance please check these instructions for correctness;
I'm not a regular Windows user, and there might be errors and/or
problems due to my clumsy testing.


Well, it doesn't appear to work ...

Bear in mind I'm running Windows, so I don't want to run lilypond from 
the command line. I double-click a .ly file, it runs lilypond, and my 
pdf appears (or at least it does, running the old version).


What I did was open a command shell as administrator, and extracted 
lilypond into Program Files. I then opened a .ly file and - nothing 
happened!


Or rather, nothing useful happened. A popup window opened, and 
disappeared. No log files, no output, no nothing.


Okay. Tried to run it the un-windows way of using the command line. 
Complete pain in the ass, I'm afraid. And at least I can see the error 
messages ...


D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso>"c:\Program 
Files\lilypond-2.24.3\bin\lilypond.exe" partTromboneB.ly

GNU LilyPond 2.24.3 (running Guile 2.2)
Processing `partTromboneB.ly'
Parsing...
partTromboneB.ly:6:10: error: cannot find file: `voiceTromboneB.ily'
(search path: `c:/Program 
Files/lilypond-2.24.3/share/lilypond/2.24.3/ly;c:/Program 
Files/lilypond-2.24.3/share/lilypond/2.24.3/ps;c:/Program 
Files/lilypond-2.24.3/share/lilypond/2.24.3/scm;c:/Program 
Files/lilypond-2.24.3/share/lilypond/2.24.3/fonts/otf/;c:/Program 
Files/lilypond-2.24.3/share/lilypond/2.24.3/fonts/svg/;')

\include
 "voiceTromboneB.ily"
partTromboneB.ly:23:41: error: unknown escaped string: `\voiceTromboneB'

\voiceTromboneB
partTromboneB.ly:23:41: error: string outside of text script or \lyricmode

\voiceTromboneB

Note: compilation failed and \version outdated, did you
update input syntax with convert-ly?


https://lilypond.org/doc/v2.24/Documentation/usage/updating-files-with-convert_002dly

Interpreting music...[8]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `partTromboneB.pdf'...
fatal error: failed files: "partTromboneB.ly"

D:\Users\Anthony\My Git\music\GBB-Concert\_Grandioso>


So it looks like it's searching the program directory for my include 
files, and not the current directory where they actually are! Note that 
running the older lilypond correctly compiles the file.


Cheers,
Wol



afterGrace, glissando, and hidenotes

2024-04-11 Thread Walt North

Hello, I would appreciate some help with this music function.

The end goal is have a define function produce a glissando after a note 
going either up or down to


undetermined second note.  For example a guitar slide down off the note.

I can get the behavior I want with a line of code directly in the score 
but not by using a function.


Below is sample code along with log output and a screenshot.



% The end goal of this is two have a function that will produce a slide out
% a given either up or down depending need.  The actual grace note is not
% needed except to give the slide an up or down direction.

\version "2.24.2"
slideOutOf =
#(define-music-function (startNote endNote)
   (ly:music? ly:music?)
   #{
 \afterGrace 1 #startNote \glissando
 { \hideNotes #endNote \unHideNotes }
   #})

%this works as I want.
notesOne = {
  \relative {
    r4
    \afterGrace 1 d''4 \glissando
    { \hideNotes c16 \unHideNotes }
    r2 |
  }
}

%This does not work. Two issues. Barcheck fail and no glissando
notesTwo = { r4 \slideOutOf d''4 c16 r2 |}

\score {
  {
    \notesOne
    \notesTwo
  }
}



Starting lilypond.exe 2.24.2 [test.ly]...

Processing `G:/My Drive/Sheet Music/Dobro/test.ly'

Parsing...

Interpreting music...

G:/My Drive/Sheet Music/Dobro/test.ly:25:41: warning: barcheck failed 
at: 1/16


notesTwo = { r4 \slideOutOf d''4 c16 r2

|}


Preprocessing graphical objects...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Converting to `test.pdf'...

Success: compilation successfully completed

Completed successfully in 1.0".



Re:

2024-04-11 Thread Hans Aikema


> On 11 Apr 2024, at 16:59, Gian Paolo Renello  wrote:
> 
> Hi, i have a question:
> ho can i add a 5th voice (for soprano) in a SATB choral work. The 4 voices 
> are all under the staff. I need the fifth one to be over the Soprano staff 
> while the second soprano voices sings the part under the staff. See attached 
> image. Thank you.

There are some examples on lyrics placement documented at 
https://lilypond.org/doc/v2.24/Documentation/notation/techniques-specific-to-lyrics
 


For your score you would put two voices (Solo and Sopranos) in the Sopranos 
staff 
https://lilypond.org/doc/v2.24/Documentation/notation/multiple-voices#single_002dstaff-polyphony

and put the lyrics attached to the Solo above that staff, and the lyrics 
attached to the Sopranos below it. The location of each lyric can be controlled 
individually as documented on that page at 
https://lilypond.org/doc/v2.24/Documentation/notation/techniques-specific-to-lyrics#placing-lyrics-vertically

The preferred way is by coding the '\with { alignAboveContext = “” }` to the Lyrics assigned to the Solo in your piece.


HTH

Hans



Re: computer compatible

2024-04-11 Thread Jean Abou Samra
> Is Lilypond compatible with iMac sonoma 14.2?


Yes. As written on https://lilypond.org/download.html , current
versions of LilyPond are compatible with macOS 10.15 Catalina
and higher.




signature.asc
Description: This is a digitally signed message part


Re: computer compatible

2024-04-11 Thread Robert Garrigos
True, they took the X out from the system name, but the numbers stay as one 
should expect. 10.14 is not system 14 but 10.

(https://en.wikipedia.org/wiki/MacOS_version_history)

Robert

> El 11 abr. 2024, a les 17:59, Leo Correia de Verdier 
>  va escriure:
> 
> MacOS 14 (Sonoma) is not the same as OSX 14 (Mojave, would be 10.14 in a more 
> straightforward numbering). I don’t know about compatibility, though. 
> 
>> 11 apr. 2024 kl. 16:57 skrev Robert Garrigos :
>> 
>> I’m using it with macosx 14.4.1 since 14.1
>> 
>> Robert
>> 
>>> El 11 abr. 2024, a les 16:28, Lydia Westerberg  va 
>>> escriure:
>>> 
>>> 
>>> Is Lilypond compatible with iMac sonoma 14.2?
>>> Thanks.
>>> Lydia Westerberg
>>> 
>>> 
>>> 
>> 
>> 




Re: computer compatible

2024-04-11 Thread Leo Correia de Verdier
MacOS 14 (Sonoma) is not the same as OSX 14 (Mojave, would be 10.14 in a more 
straightforward numbering). I don’t know about compatibility, though. 

> 11 apr. 2024 kl. 16:57 skrev Robert Garrigos :
> 
> I’m using it with macosx 14.4.1 since 14.1
> 
> Robert
> 
>> El 11 abr. 2024, a les 16:28, Lydia Westerberg  va 
>> escriure:
>> 
>> 
>> Is Lilypond compatible with iMac sonoma 14.2?
>> Thanks.
>> Lydia Westerberg
>> 
>> 
>> 
> 
> 



Re: nested beaming

2024-04-11 Thread Hans Åberg


> On 11 Apr 2024, at 17:14, Carl Sorensen  wrote:
> 
>> On Thu, Apr 11, 2024 at 6:44 AM Hans Åberg  wrote:
>> 
>> > On 10 Apr 2024, at 16:54, Carl Sorensen  wrote:
>> > 
>> > On Tue, Apr 9, 2024 at 10:23 AM Hans Åberg  wrote:
>> > 
>> >> In the past, it was possible to give 9/16 the beat structure [[2 2] [2 
>> >> 3]], as a 2/4 with an extra 1/16 at the end, like in the Bulgarian 
>> >> Daichovo, but currently it is only possible with [4 2 3] as in:
>> >>  \time 9/16
>> >>  \set beatStructure = #'(4 2 3)
>> >> Or [2 2 2 3]. But [[2 2] [2 3]] is easier to read.
>> >> 
>> > Can you tell me a version where you could do this, and provide some sample 
>> > code that uses it?
>> 
>> I have an old comment in a .ly file that I once wrote, but it does not tell 
>> the LilyPond version it was usable in, as the file has been updated:
>> 
>>   \tempo 4 = 120
>>   \time 11/16
>>   \set beatStructure = #'(4 3 4)
>> 
>> %  Old beam settings:
>> %  \overrideBeamSettings #'Score #'(11 . 16) #'end #'((* . (4 3 4)))
>> %  \set beatGrouping = #'(2 2 3 2 2)
>> %  \set subdivideBeams = ##t
>> %  #(override-auto-beam-setting '(end * * 11 16) 4 16)
>> %  #(override-auto-beam-setting '(end * * 11 16) 7 16)
>> %  #(set-time-signature 11 16 '(4 3 4))
>> 
> Thank you for this file.  This syntax makes sense to me (but I haven't 
> verified that it still works).  I have never known the nested square brackets 
> for nested beams as an input syntax to work.
> 
> I'll do some more investigation.

This link says override-auto-beam-setting got removed probably in LilyPond 2.13.

https://github.com/nsceaux/nenuvar/issues/7





Re: nested beaming

2024-04-11 Thread Carl Sorensen
On Thu, Apr 11, 2024 at 6:44 AM Hans Åberg  wrote:

>
> > On 10 Apr 2024, at 16:54, Carl Sorensen 
> wrote:
> >
> > On Tue, Apr 9, 2024 at 10:23 AM Hans Åberg  wrote:
> >
> >> In the past, it was possible to give 9/16 the beat structure [[2 2] [2
> 3]], as a 2/4 with an extra 1/16 at the end, like in the Bulgarian
> Daichovo, but currently it is only possible with [4 2 3] as in:
> >>  \time 9/16
> >>  \set beatStructure = #'(4 2 3)
> >> Or [2 2 2 3]. But [[2 2] [2 3]] is easier to read.
> >>
> > Can you tell me a version where you could do this, and provide some
> sample code that uses it?
>
> I have an old comment in a .ly file that I once wrote, but it does not
> tell the LilyPond version it was usable in, as the file has been updated:
>
>   \tempo 4 = 120
>   \time 11/16
>   \set beatStructure = #'(4 3 4)
>
> %  Old beam settings:
> %  \overrideBeamSettings #'Score #'(11 . 16) #'end #'((* . (4 3 4)))
> %  \set beatGrouping = #'(2 2 3 2 2)
> %  \set subdivideBeams = ##t
> %  #(override-auto-beam-setting '(end * * 11 16) 4 16)
> %  #(override-auto-beam-setting '(end * * 11 16) 7 16)
> %  #(set-time-signature 11 16 '(4 3 4))
>
> Thank you for this file.  This syntax makes sense to me (but I haven't
verified that it still works).  I have never known the nested square
brackets for nested beams as an input syntax to work.

I'll do some more investigation.

Thanks,

Carl


[no subject]

2024-04-11 Thread Gian Paolo Renello
Hi, i have a question:ho can i add a 5th voice (for soprano) in a SATB choral work. The 4 voices are all under the staff. I need the fifth one to be over the Soprano staff while the second soprano voices sings the part under the staff. See attached image. Thank you. Gian Paolo  

Re: computer compatible

2024-04-11 Thread Robert Garrigos
I’m using it with macosx 14.4.1 since 14.1

Robert

> El 11 abr. 2024, a les 16:28, Lydia Westerberg  va 
> escriure:
> 
> 
> Is Lilypond compatible with iMac sonoma 14.2?
> Thanks.
> Lydia Westerberg
> 
> 
> 




computer compatible

2024-04-11 Thread Lydia Westerberg


Is Lilypond compatible with iMac sonoma 14.2?
Thanks.
Lydia Westerberg





Re: nested beaming

2024-04-11 Thread Hans Åberg


> On 10 Apr 2024, at 23:29, Carl Sorensen  wrote:
> 
>> On Wed, Apr 10, 2024 at 2:02 PM Hans Åberg  wrote:
>> 
>> There is actually one example of a naturally occurring meter, meaning it is 
>> used regularly, where such a sub-beaming might be useful, namely, a form of 
>> the Čoček in 9/8, 9 = 2+2+2+3, where 3 = 1+2. I wrote it as 2+2+2+1+2, but 
>> it would be nice to write it as 2+2+2+(1+2).
>> 
>> If I write
>>   \time 9/8
>>   \set beatStructure = 2,2,2,3
>>   \set subdivideBeams = ##t
>> then it ends up with all 2 = 1+1, and 3 = 1+1+1.
>> 
>> So such examples may occur even if there is not a composer trying to do 
>> something special.
> 
> So in the following, I think I get what you call 2+2+2+3, but unfortunately I 
> don't get 3 = 1+2.  Do you agree with this statement?
> 
> I have made it a little better, because the 2 are all 2, but the three is 
> just 3 (not 1+2)
> 
> \version "2.25.11"
> {
>\time 9/8
>\set beatStructure =  #'(2 2 2 3)
>\set subdivideBeams = ##t
>\set minimumBeamSubdivisionInterval = \musicLength 4
>\repeat unfold 18 a'16
> }

There is also the syntax
  \time 2,2,2,3 9/16
instead of
  \time 9/16
  \set beatStructure = #'(2 2 2 3)

Perhaps it should be extended somehow.





Re: nested beaming

2024-04-11 Thread Hans Åberg


> On 10 Apr 2024, at 16:54, Carl Sorensen  wrote:
> 
> On Tue, Apr 9, 2024 at 10:23 AM Hans Åberg  wrote:
> 
>> In the past, it was possible to give 9/16 the beat structure [[2 2] [2 3]], 
>> as a 2/4 with an extra 1/16 at the end, like in the Bulgarian Daichovo, but 
>> currently it is only possible with [4 2 3] as in:
>>  \time 9/16
>>  \set beatStructure = #'(4 2 3)
>> Or [2 2 2 3]. But [[2 2] [2 3]] is easier to read.
>> 
> Can you tell me a version where you could do this, and provide some sample 
> code that uses it?

I have an old comment in a .ly file that I once wrote, but it does not tell the 
LilyPond version it was usable in, as the file has been updated:

  \tempo 4 = 120
  \time 11/16
  \set beatStructure = #'(4 3 4)

%  Old beam settings:
%  \overrideBeamSettings #'Score #'(11 . 16) #'end #'((* . (4 3 4)))
%  \set beatGrouping = #'(2 2 3 2 2)
%  \set subdivideBeams = ##t
%  #(override-auto-beam-setting '(end * * 11 16) 4 16)
%  #(override-auto-beam-setting '(end * * 11 16) 7 16)
%  #(set-time-signature 11 16 '(4 3 4))




Re: nested beaming

2024-04-11 Thread Hans Åberg


> On 10 Apr 2024, at 23:29, Carl Sorensen  wrote:
> 
>> On Wed, Apr 10, 2024 at 2:02 PM Hans Åberg  wrote:
>> 
>> 
>> There is actually one example of a naturally occurring meter, meaning it is 
>> used regularly, where such a sub-beaming might be useful, namely, a form of 
>> the Čoček in 9/8, 9 = 2+2+2+3, where 3 = 1+2. I wrote it as 2+2+2+1+2, but 
>> it would be nice to write it as 2+2+2+(1+2).
>> 
>> If I write
>>   \time 9/8
>>   \set beatStructure = 2,2,2,3
>>   \set subdivideBeams = ##t
>> then it ends up with all 2 = 1+1, and 3 = 1+1+1.
>> 
>> So such examples may occur even if there is not a composer trying to do 
>> something special.
>> 
>> So in the following, I think I get what you call 2+2+2+3, but unfortunately 
>> I don't get 3 = 1+2.  Do you agree with this statement?

Correct.

>> I have made it a little better, because the 2 are all 2, but the three is 
>> just 3 (not 1+2)
>> 
>> \version "2.25.11"
>> {
>>\time 9/8
>>\set beatStructure =  #'(2 2 2 3)
>>\set subdivideBeams = ##t
>>\set minimumBeamSubdivisionInterval = \musicLength 4
>>\repeat unfold 18 a'16
>> }

If I write
{
  \time 9/8
  \set beatStructure =  #'(2 2 2 3)
  \set subdivideBeams = ##t
  \set minimumBeamSubdivisionInterval = \musicLength 8
  \repeat unfold 18 a'16
}
then I get the sub-beams, but should only be applied to the last 3, and between 
the first 1/8 and the last 2/8.