Re: MacOS Ventura Quick Look not working for .ly files

2023-05-02 Thread Mark Harris
Thanks. I’ve tried changing the program that opens them, as you suggest, but it 
still doesn’t work, and gives the same error message.

> On 2/05/2023, at 11:48 PM, Jeff Kopmanis  wrote:
> 
> Try Get Info on one of the files and change the program used for all.
> 
> I have the same issue, but haven't dug into it yet.
> 
> On Tue, May 2, 2023, 4:24 AM Mark Harris  > wrote:
>> Hi, I’ve recently tried to use Lilypond on a MacBook Air M2 with Ventura. 
>> Quick Look is a vital part of my workflow, as I work with hundreds of .ly 
>> files, and always used to work on my old Mac with an older operating system. 
>> Now when I try to Quick Look a .ly file, I get the message:
>> 
>> “The extension com.apple.tips.TipsAppQuicklook-macOS does not implement file 
>> previews”
>> 
>> Can anyone help me solve this?
>> 
>> Many thanks,
>> 
>> Mark



Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Andrew Bernard
As said, I have 30-40 include files. And lilypond compiles fines, albeit 
slowly as it is single threaded. It's Frescobaldi that is slow. I can 
live without Frescobaldi, but I do really like two way point and click.


Andrew


On 2/05/2023 11:11 pm, Jeff Kopmanis wrote:
You should look into include files if you've got that much code.  
Lilipond can handle it, and it'll make your project much more managable.






Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Jeff Kopmanis
You should look into include files if you've got that much code.  Lilipond
can handle it, and it'll make your project much more managable.

On Tue, May 2, 2023, 8:58 AM Andrew Bernard 
wrote:

> The work is about 40,000 lines of lilypond code, but split into about ten
> sections. There are only about 30 include files. Frescobaldi is unusable,
> then and still now. Of the order of 30 seconds to do any operation, on a
> linux VM on a very fast computer. I will say that the score is a work of
> the New Complexity School by my colleague and the music is pretty dense,
> and I think this may have something to do with it (altho as I write that it
> sounds stupid).
>
> I'm sorry to say this is why  I had to move over to Dorico. But I need to
> complete this work in Lilypond and hence I am back to looking for a good
> working environment again.
>
> Andrew
>
>
> On 2/05/2023 8:37 pm, Federico Bruni wrote:
>
> This is:
> https://github.com/frescobaldi/frescobaldi/issues/473
>
> ...
>
> I don't have a large score to do a test.
>
>


Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Andrew Bernard
The issue thread does not explain what the output document variable is. 
What is it and how do you set it?


I don't think this issue has been fixed, from what I read. It would be 
nice if it were.


Andrew

On 2/05/2023 8:37 pm, Federico Bruni wrote:
Il giorno mar 2 mag 2023 alle 19:30:46 +1000, Andrew Bernard 
 ha scritto:
Trying to use gvim, due to the problem that Frescobaldi becomes 
unreasonably sluggish with my very large scores, no matter what 
clever tricks I use to chop them up.


This is:
https://github.com/frescobaldi/frescobaldi/issues/473

Wilbert suggested a workaround:

"""
the freeze happens because Frescobaldi looks in all the included 
documents for things like set output-suffix etc. You can avoid this by 
setting the output document variable.

"""

I don't have a large score to do a test.


Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Andrew Bernard
The work is about 40,000 lines of lilypond code, but split into about 
ten sections. There are only about 30 include files. Frescobaldi is 
unusable, then and still now. Of the order of 30 seconds to do any 
operation, on a linux VM on a very fast computer. I will say that the 
score is a work of the New Complexity School by my colleague and the 
music is pretty dense, and I think this may have something to do with it 
(altho as I write that it sounds stupid).


I'm sorry to say this is why  I had to move over to Dorico. But I need 
to complete this work in Lilypond and hence I am back to looking for a 
good working environment again.


Andrew


On 2/05/2023 8:37 pm, Federico Bruni wrote:

This is:
https://github.com/frescobaldi/frescobaldi/issues/473

...

I don't have a large score to do a test.


Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Andrew Bernard
From work on this in the past, it's a gvim issue. Nothing to do with 
lilypond. Don't spend any time on it. When following this a few years 
ago various gvim forums indicated this is a kind of difficulty, not 
exactly a bug.


I just thought I can't be the only one in the world wanting to use gvim 
on Fedora with lilypond pDF point and click. Perhaps I am!


The unwanted junk is unintelligible lines of gvim internal 
program/macro/function code at the status line area.



Andrew


On 2/05/2023 7:57 pm, Jean Abou Samra wrote:


What did you already do, so we can reproduce?

Can you be more specific on your problem? What's the “unwanted junk”?


Re: MacOS Ventura Quick Look not working for .ly files

2023-05-02 Thread Jeff Kopmanis
Try Get Info on one of the files and change the program used for all.

I have the same issue, but haven't dug into it yet.

On Tue, May 2, 2023, 4:24 AM Mark Harris  wrote:

> Hi, I’ve recently tried to use Lilypond on a MacBook Air M2 with Ventura.
> Quick Look is a vital part of my workflow, as I work with hundreds of .ly
> files, and always used to work on my old Mac with an older operating
> system. Now when I try to Quick Look a .ly file, I get the message:
>
> “The extension com.apple.tips.TipsAppQuicklook-macOS does not implement
> file previews”
>
> Can anyone help me solve this?
>
> Many thanks,
>
> Mark
>


Re: Separate dynamics from notes

2023-05-02 Thread Leo Correia de Verdier
If not too late, here is an example, based on Jeans code in 
https://lists.gnu.org/archive/html/lilypond-user/2021-09/msg00209.html

%%
convertToSkips =
#(define-music-function (music) (ly:music?)
   (music-map
 (lambda (m)
   (if (or (music-is-of-type? m 'rest-event) 
   (music-is-of-type? m 'note-event))
   (make-music 'SkipEvent m)
   m))
 music))

\convertToSkips { r2\p  c'4( d)\ff s4 r4 }

%%

Take care with things that ar still interpreted, like Scripts.

> 26 apr. 2023 kl. 22:55 skrev Leo Correia de Verdier 
> :
> 
> You can do like this if it’s useful to you, removing the engravers that read 
> what you don’t want at a specific place.
> %%
> \version "2.25.1"
> 
> rh = \fixed c' {c4\pp d\p e\f f\ff}
> 
> \score {
>  << 
>\new Voice \with {
>\remove Dynamic_engraver }
>  \rh
>  \new Dynamics %Dynamics context doesn’t have the Note_Heads_Engraver anyway
>  \rh
>>> 
> }
> %%
> 
> Otherwise it is possible to create music functions that replace notes and 
> rests with spacers or remove dynamics, but I can’t do that for you at the 
> moment. While they’re not difficult functions they’re not ”built-in”.
> 
> The second question is also probably not too hard to write a function for, 
> but you’ll probably need to be a little more specific about the use case, 
> perhaps also supply example code.
> 
> Best wishes
> /Leo
>> 26 apr. 2023 kl. 22:23 skrev Gianmaria Lari :
>> 
>> First question
>> Suppose I wrote this score:
>> 
>> \version "2.25.2"
>> rh = \fixed c' {c4\pp d\p e\f f\ff}
>> 
>> \score {
>>  \new Staff \rh
>> }
>> 
>> Is there any "automatic" way to extract the dynamics in the score (maybe 
>> assigning it to a variable)? 
>> At the end I would like to easily transform the previous code in the 
>> following one:
>> 
>> \version "2.25.2"
>> rh = \fixed c' {c4 d e f}
>> dy = {s4\pp s4\p s4\f s4\ff}
>> \score {
>>  <<
>>\new Staff \rh
>>\new Dynamics \dy
 
>> }
>> 
>> Second question
>> Sometimes I copy a long score without the dynamic and add them separately 
>> later. For this operation I need to establish the dynamic location in the 
>> score counting and adding the notes length. This is tedious and error prone. 
>> Is there any way to make it?
>> 
>> Thanks,
>> Gianmaria
> 




Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Federico Bruni
Il giorno mar 2 mag 2023 alle 19:30:46 +1000, Andrew Bernard 
 ha scritto:
Trying to use gvim, due to the problem that Frescobaldi becomes 
unreasonably sluggish with my very large scores, no matter what 
clever tricks I use to chop them up.


This is:


Wilbert suggested a workaround:

"""
the freeze happens because Frescobaldi looks in all the included 
documents for things like set output-suffix etc. You can avoid this by 
setting the output document variable.

"""

I don't have a large score to do a test.




Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Jean Abou Samra
Le mardi 02 mai 2023 à 17:44 +1000, Andrew Bernard a écrit :
> A few years ago I penned a guide to getting lilypond PDF point and click 
> going with gvim under Ubuntu.
> 
> Time has moved on and that guide is no longer right for Fedora 38.
> 
> Does anybody have gvim going with Fedora and if so, could they outline 
> some pointers?
> 
> It sort of works but shows unwanted junk at the bottom of the window, 
> worse than it used to in Ubuntu.



What did you already do, so we can reproduce?

Can you be more specific on your problem? What's the “unwanted junk”?



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


Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Andrew Bernard
Fedora 38, Gnome 44, Evince works fine. No problem at all and nothing to 
configure. That's the environment.


Trying to use gvim, due to the problem that Frescobaldi becomes 
unreasonably sluggish with my very large scores, no matter what clever 
tricks I use to chop them up.


I have been using emacs since forever, but as far as I know the lilypond 
mode is _still_ very buggy and I don't know enough to fix it.



Andrew


On 2/05/2023 6:37 pm, Federico Bruni wrote:
IIRC Evince (GNOME) doesn't allow point and click anymore. Maybe 
there's a way to unlock it, but I'm not motivated to investigate.

Which desktop environment and PDF viewer are you using?

Re: Point and click with gvim under Fedora 38

2023-05-02 Thread Federico Bruni



Il giorno mar 2 mag 2023 alle 17:44:04 +1000, Andrew Bernard 
 ha scritto:
A few years ago I penned a guide to getting lilypond PDF point and 
click going with gvim under Ubuntu.


Time has moved on and that guide is no longer right for Fedora 38.

Does anybody have gvim going with Fedora and if so, could they 
outline some pointers?


It sort of works but shows unwanted junk at the bottom of the window, 
worse than it used to in Ubuntu.




IIRC Evince (GNOME) doesn't allow point and click anymore. Maybe 
there's a way to unlock it, but I'm not motivated to investigate.


Which desktop environment and PDF viewer are you using?




MacOS Ventura Quick Look not working for .ly files

2023-05-02 Thread Mark Harris
Hi, I’ve recently tried to use Lilypond on a MacBook Air M2 with Ventura. Quick 
Look is a vital part of my workflow, as I work with hundreds of .ly files, and 
always used to work on my old Mac with an older operating system. Now when I 
try to Quick Look a .ly file, I get the message:

“The extension com.apple.tips.TipsAppQuicklook-macOS does not implement file 
previews”

Can anyone help me solve this?

Many thanks,

Mark


Cross-nesting \repeat segno and \repeat volta

2023-05-02 Thread Huanyu Liu
Hi,

I am trying to write something tricky (but not rare, in my opinion) with both 
`\repeat segno` and `\repeat volta`. Here is an illustration of what I want to 
achieve:

A   ||:   B   |(Segno)   C   |(Coda)(Volta 1 start)   D1   (Volta 1 end):||
(Volta 2 start)   D2   (Volta 2 end)(DS)||(Coda)   D3   ||

The order should be A-B-C-D1-B-C-D2-C-D3.

The attached code is really close to my desired output, but the closing repeat 
bar line is printed at the end, instead of the end of Volta 1. I think this is 
because the inner layer of `\alternative` should have paired the outer layer 
of `\repeat volta` (which I call "cross-nesting"), but since there is an outer 
layer of `\alternative` between them, the inner layer of `\alternative` is not 
recognized by `\repeat volta`.

So how can I achieve that without manual placement of all those signs? Or is 
there any better method instead of using nested `\repeat segno  ` and `\repeat 
volta`?

Thanks!
Huanyu\version "2.25.4"
\relative {
  a1 | % A
  \repeat volta 2 {
b1 | % B
\repeat segno 2 {
  c1 | % C
  \alternative {
\volta 1 {
  \alternative {
\volta 1 {
  d1 | % D1
}
\volta 2 {
  d2 d2 | % D2
}
  }
}
\volta 2 {
  \section
  d4 d4 d4 d4 | % D3
}
  }
}
  }
}


Point and click with gvim under Fedora 38

2023-05-02 Thread Andrew Bernard
A few years ago I penned a guide to getting lilypond PDF point and click 
going with gvim under Ubuntu.


Time has moved on and that guide is no longer right for Fedora 38.

Does anybody have gvim going with Fedora and if so, could they outline 
some pointers?


It sort of works but shows unwanted junk at the bottom of the window, 
worse than it used to in Ubuntu.



Andrew





Re: Missing documentation archives for 2.24 and 2.25

2023-05-02 Thread Jean Abou Samra
Le mardi 02 mai 2023 à 07:05 +0200, Thomas Weißschuh a écrit :
> Hi,
> 
> it seems the documenation archives for 2.24 (and 2.25) are missing from
> https://lilypond.org/downloads/binaries/documentation/ .



This is our old downlod site, as mentioned on 
https://lilypond.org/old-downloads.html . For current releases, visit GitLab 
instead.

By the way, I had to approve your post manually because you are not subscribed 
to the list. Please consider subscribing on 
https://lists.gnu.org/mailman/listinfo/lilypond-user

Regards,

Jean





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