Re: ANN: Frescobaldi 3.3.0

2023-04-10 Thread Davide Liessi
Il giorno lun 10 apr 2023 alle ore 09:00 Michael Hendry
 ha scritto:
> “Frescobaldi.app” cannot be opened because the developer cannot be verified.

This is expected: as we write in the release page, "The application
bundles are not signed with an Apple Developer certificate".

> https://support.apple.com/en-us/HT202491

Correct.

> Several warnings came up,

LilyPond warnings or Frescobaldi/Python warnings?
Given that you tried to use convert-ly to solve them, I suppose you
were referring to LilyPond warnings.

> “python3.10” cannot be opened because the developer cannot be verified.

I didn't think about this, but indeed that's expected, for the same
reason as above.

> …but haven’t been able to get round this using the same method.

Is python3.10 not listed in the System preferences -> Security &
Privacy tab when the error message appears?
You can try to run python3.10 manually: right-click on the Frescobaldi
application bundle, choose "show package contents" and navigate to
Contents/MacOS, which should contain a Frescobaldi and a python3.10
binaries.
Try applying the suggestions of the Apple support page to the python3.10 binary.
Please let me know if this works: I'll update the notes on the release page.

> During this time my OS has lost 32-bit support.

I think that Gatekeeper's checks would apply to both 32 bit and 64 bit
applications.

Best wishes.
Davide



ANN: Frescobaldi 3.3.0

2023-04-09 Thread Davide Liessi
We are glad to announce the availability of Frescobaldi 3.3.0. macOS
and Windows installers are available from

 https://github.com/frescobaldi/frescobaldi/releases/tag/v3.3.0

Linux users can install Frescobaldi from Flathub via Flatpak:

 https://flathub.org/apps/details/org.frescobaldi.Frescobaldi

Unlike Frescobaldi 3.2, this release ships with an application bundle
for macOS users. In fact, there are two, one for x86_64 (Intel) and
one for arm64 (Apple silicon).

Among the most visible improvements: the score wizard has been
enhanced; there is a new option to reformat on save; a number of bugs,
crashes, internal errors and packaging problems have been fixed;
translations have been updated; and various updates make this version
of Frescobaldi work better with LilyPond 2.24.

A full list of the improvements in this release can be found in the Changelog.

 
https://github.com/frescobaldi/frescobaldi/blob/master/CHANGELOG.md#330---2023-03-26

Many thanks to all contributors to this release: Peter Bjuhr, Federico
Bruni, Davide Liessi, Benjamin Johnson, mr-bronson, listentolist,
Alejandro G. Peregrina, Lukas-Fabian Moser, and Jean Abou Samra.
Thanks to the translators Jun Tamura, Federico Bruni, Olivier
Miakinen, Rémy Claverie, Raphaël Hardy, Emmanuel Franquemagne, Martial
Rameaux, Nicolas Lehembre, Jean Abou Samra. Thanks to Davide Liessi,
Jacques Menu and Jörg Hoffmann for building the installers. Thanks to
Marnen Laibow-Koser for providing a remote macOS machine to debug
macOS-specific issues. Also, thanks to all the people who reported
bugs and contributed ideas.

We hope you enjoy this release. We are still looking for more hands,
especially when it comes to keeping Frescobaldi working on macOS and
Windows. If you enjoy Frescobaldi, please consider volunteering
yourself to help with its development.

With our best wishes (also of a happy Easter),
Wilbert and the Frescobaldi development team



Re: Alternative to Frescobaldi

2022-09-03 Thread Davide Liessi
Dear all,

I answered elsewhere
(https://github.com/frescobaldi/frescobaldi/issues/1454,
https://groups.google.com/g/frescobaldi/c/dUQPO85jUL0), but for the
sake of completeness:

Il giorno sab 3 set 2022 alle ore 03:24 Andrew Bernard
 ha scritto:
> Part of the process to install PyQt4
> is to install enough of Qt4 to get qmake and that's a nightmare. It's
> absurdly complicated. And Qt4 has been obsoleted anyway, making this all
> that much harder.

Frescobaldi moved to Qt5 with version 3.0.0 (released 17 February 2017).
It currently does not support Qt6.

Best wishes.
Davide



Re: [was: Re: ANN: Frescobaldi 3.2]

2022-08-18 Thread Davide Liessi
Dear Jean Louis,

I agree with Jean-Julien's message.
I just want to add a couple of points.

Il giorno gio 18 ago 2022 alle ore 03:10 Jean Louis THIRY
 ha scritto:
> I think I have made quite a bit of progress in the great forest of my 
> ignorance. I took your advice first and installed Macport 
> (https://www.macports.org/install.php) and invoked "sudo port install 
> frescobaldi". Installation stopped when asked to install Xcode. It took me 
> trying to figure out what Xcode was for and finding the huge 
> "Xcode_11.3.1.xip" file and installing it.

The page you link (https://www.macports.org/install.php) has a
step-by-step installation guide, including the instructions to get
Xcode and the Command Line Tools.

> is it possible to uninstall Frescobaldi using some magic formula like "sudo 
> port uninstall frescobaldi" and do an install again so that the installer 
> finds the sdk file.

I agree with Jean-Julien that uninstalling Frescobaldi should not be necessary.
Anyway, if you have doubts on using MacPorts, please see the guide at
https://guide.macports.org

It seems to me that now your immediate problems are solved.
If that's not true or if anything else arises you can write to either
the LilyPond or the Frescobaldi list.
I admit I tend to disappear for long periods (due to personal and
professional reasons) and I'm very sorry for that: if that happens you
can write to me directly to get my attention.

Best wishes.
Davide



Re: [was: Re: ANN: Frescobaldi 3.2]

2022-08-18 Thread Davide Liessi
Il giorno gio 18 ago 2022 alle ore 11:48 Jean Louis THIRY
 ha scritto:
> Being on Mojave (10.14)

This explains also why you were not hit by the 'use_xcode' problem,
since it does not affect 10.13 and 10.14.

> Everything around qt5 seems to be a weak point of Frescobaldi,

Indeed: I appreciate greatly that it is easy to build applications
with Qt and Python, but the combination makes distributing the
software for Mac a nightmare.

The prebuilt application (not yet available for Frescobaldi 3.2 due to
personal reasons) cannot include the documentation browser and the SVG
viewer because packaging some components of Qt with Python is
impossible on Mac.
I asked for help on the PyQt mailing list a couple of times and got no answer.
If anyone is interested, details can be found at
https://github.com/frescobaldi/frescobaldi/issues/1244

Best wishes.
Davide



Re: [was: Re: ANN: Frescobaldi 3.2]

2022-08-18 Thread Davide Liessi
Dear Jean-Julien,

Il giorno gio 18 ago 2022 alle ore 08:52 Jean-Julien Fleck
 ha scritto:
> Well, it’s unlikely. I happen to have frescobaldi installed via a fresh new 
> MacPort procedure (after upgrading to MacOs Monterey) just last week and the 
> missing sdk message I encountered was related to all the qt5 stuff that 
> frescobaldi needed in order to be built. You were lucky it was not a stopper 
> as it was in my case: I had to manually add `use_xcode yes` in the 
> corresponding PortFile of py310-poppler-qt5 in order to make it build 
> properly. Perhaps it has since been corrected so that if the «standard» way 
> for qt5 to find the sdk won't work, they try the `use_xcode yes` trick 
> (whatever it does) before giving up.

I have just opened a PR at MacPorts with the fix:
https://github.com/macports/macports-ports/pull/15773

Best wishes.
Davide



Re: Part of staff does not obey alignAboveContext

2022-07-09 Thread Davide Liessi
Dear David,

Il giorno sab 9 lug 2022 alle ore 13:13 David Kastrup  ha scritto:
> There is no "second part of the ossia staff" in the second example:
> there is a second, independent ossia staff.
> [...]

thanks for the explanation.

I overlooked the fact that there were spacer rests for the whole
length of the piece (in order to keep the context alive) in the \new
Staff = "ossia" in the following example taken from NR 1.6.2:

<<
  \new Staff = "ossia" \with {
\remove Time_signature_engraver
\hide Clef
\magnifyStaff #2/3
  }
  { \stopStaff s1*6 }

  \new Staff \relative {
c'4 b c2
<<
  { e4 f e2 }
  \context Staff = "ossia" {
\startStaff e4 g8 f e2 \stopStaff
  }
>>
g4 a g2 \break
c4 b c2
<<
  { g4 a g2 }
  \context Staff = "ossia" {
\startStaff g4 e8 f g2 \stopStaff
  }
>>
e4 d c2
  }
>>

Of course adding spacer rests in the \new Staff = "ossia" in my
example does not work, as it pushes all the following music forward.

In NR 5.1.2 I read the following description of \context:

\context with a name specified will create a distinct context only if
a context of the same type with the same name in the same context
hierarchy does not already exist. Otherwise it will be taken as a
reference to that previously created context, and its music expression
will be passed to that context for interpretation.

This is correct, but gave me the wrong impression that \context could
reference any context that existed at some previous point in the music
and, if needed, prolong it to include the specified music.
Maybe the words "at the current moment" or similar could be added at
the end of the first sentence.

Best wishes.
Davide



Part of staff does not obey alignAboveContext

2022-07-09 Thread Davide Liessi
Dear all,

in the second example below, the second part of the ossia staff jumps
below the main staff.
Am I doing something wrong or is it a bug in LilyPond?

Best wishes.
Davide

%

\version "2.23.4"

\score {
  \new Staff = "main" <<
\new Voice {
  <<
{ a'8 }
\new Staff = "ossia"
\with { alignAboveContext = "main" }
{ a'8 \stopStaff }
  >>
  a'8 a'8 a'8 a'2
  <<
{ a'1 }
\context Staff = "ossia"
{ \startStaff a'1 }
  >>
}
  >>
}

\score {
  \new Staff = "main" <<
\new Voice {
  <<
{ a'8 a'8 }
\new Staff = "ossia"
\with { alignAboveContext = "main" }
{ a'4 \stopStaff }
  >>
  a'8 a'8 a'2
  <<
{ a'1 }
\context Staff = "ossia"
{ \startStaff a'1 }
  >>
}
  >>
}



Re: ANN: Frescobaldi 3.2

2022-05-05 Thread Davide Liessi
Dear Mario,

Il giorno gio 5 mag 2022 alle ore 15:25 Mario Bolognani
 ha scritto:
> many thanks for updating Frescobaldi but an inexperienced user like me gets 
> lost into the tricky steps fo obtaining a .dmg package to install as in 
> version 3.1.3.

the standalone .app bundle for Mac, distributed as .dmg package, has
not been prepared yet.
I'll try to do it soon, although there may be some difficulties (see
my answer to Omer Katzir
https://lists.gnu.org/archive/html/lilypond-user/2022-05/msg00065.html
a few minutes ago).

Best wishes.
Davide



Re: ANN: Frescobaldi 3.2

2022-05-05 Thread Davide Liessi
Dear Hraban,

Il giorno gio 5 mag 2022 alle ore 15:18 Henning Hraban Ramm
 ha scritto:
> The app bundle installed by MacPorts doesn’t work, it says "Frescobaldi
> error" and lets you open the Console – I didn’t find anything useful in
> the plethora of messages there.
> This was already the same in previous versions.

That is strange: I haven't tried recently, but I seem to remember that
on my machine it works as expected.
I'll check when I update the Portfile.

> Do you think it could be a problem that I also installed the
> downloadable version? (3.1.3 at the moment)

I don't think so.

Best wishes.
Davide



Re: ANN: Frescobaldi 3.2

2022-05-05 Thread Davide Liessi
Dear Omer,

Il giorno gio 5 mag 2022 alle ore 15:02 Omer Katzir
 ha scritto:
> Will there be files for MacOS like in 3.1.3 or I’ll have to compile it from 
> source?

I plan to (try to) release a standalone application bundle soon.
However, distributing applications based on Qt and Python for Mac has
been increasingly difficult as Qt evolved: there are components (in
particular the web browser based ones, namely the documentation
browser and the SVG viewer) that have not been working since the
switch to Qt5 (or slightly later) despite my efforts.
I strongly recommend installing Frescobaldi with MacPorts (the .app
bundle provided there is just a lightweight launcher for the command
line version, so it does not suffer from the same issues).
Anyway, I'll do my best to provide the standalone .app bundle,
although limited in functionality, as soon as I can.

Best wishes.
Davide



Re: ANN: Frescobaldi 3.2

2022-05-05 Thread Davide Liessi
Dear Jacques,

Il giorno gio 5 mag 2022 alle ore 10:16 Jacques Menu
 ha scritto:
> I’ve installed Frescobaldi 3.2 with MacPorts on Mac OS Monterey (12.3.1), and 
> the first tests show it works fine.

did you edit the Portfile yourself?
I think I'll be able to update it before tomorrow evening at the
latest (my main machine is not a Mac, lately).

> One problem, though: it’s name is displayed as “Python” in the menu bar, and 
> there’s no Preferences item.

As Hraban wrote, this is not only normal, but unavoidable, unless an
.app bundle is created.
If you installed with MacPorts, there should be such an application
bundle in /Applications/MacPorts: launching Frescobaldi from there
should give you the Frescobaldi menu containing also the Preferences
item.
If not, please let me know.

Regarding

Il giorno gio 5 mag 2022 alle ore 10:38 Jacques Menu
 ha scritto:
> qt.qpa.fonts: Populating font family aliases took 118 ms. Replace uses of 
> missing font family "Century Schoolbook L" with one that exists to avoid this 
> cost.

I am already aware of them (they have been there at least since the
switch to Qt5), but since they are harmless and seem to originate from
Qt itself and not Frescobaldi specifically, I haven't invested time on
them (yet).

Best wishes.
Davide



Re: ANN: Frescobaldi 3.1.3

2021-01-05 Thread Davide Liessi
Dear friends,

Il giorno sab 26 dic 2020 alle ore 14:08 Wilbert Berendsen
 ha scritto:
> The source tarball is uploaded, packaged releases will probably follow
> soon.

the prebuilt application bundle for macOS can be found at
https://github.com/frescobaldi/frescobaldi/releases
It should run on macOS 10.11-10.15 and I expect it to run also on
macOS 11, although I have no way to test it.
If you are running macOS 11, I would be grateful if you could test the
application and report the results.
As with the previous versions, the prebuilt application is still
lacking the Documentation Browser and the SVG View (more details in
the release page).

Frescobaldi can be installed also with MacPorts, resulting in a fully
functional application (including the Documentation Browser and the
SVG View) on macOS 10.11, 10.14 and 10.15.
It can be installed also on macOS 10.13, provided that Xcode 10
(instead of Xcode 9) is installed.
On macOS 10.12 the installation fails, but I can give instructions to
make it succeed resulting in an application lacking the Documentation
Browser and the SVG View.
On macOS 11 on the x86_64 architecture the installation fails, but I
can give instructions to make it succeed resulting in an application
lacking MIDI support.
On macOS 11 on the arm64 architecture the installation fails due to a
possible bug in MacPorts and I currently have no solution.

I will update the Homebrew cask for Frescobaldi shortly.
The cask installs the prebuilt application mentioned above, so it
lacks the Documentation Browser and the SVG View.
I plan to turn Frescobaldi into a Homebrew formula again, so that it
results in the fully functional application.
I will need help in doing this and I will write about it soon in a
separate thread.

Best wishes of a happy new year!
Davide



Re: After directory rename, Frescobaldi doesn't show PDF

2020-07-19 Thread Davide Liessi
Il giorno lun 6 lug 2020 alle ore 02:23 Davide Liessi
 ha scritto:
> It should be solved in current master and v3.1.x branches.
> The fix will appear in future Frescobaldi 3.1.3.

In case you are interested, I also opened a PR to update MacPorts'
frescobaldi-devel to current v3.1.x.
I hope they will merge it soon.

Best wishes.
Davide



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-19 Thread Davide Liessi
Il giorno sab 4 lug 2020 alle ore 00:27 Hans Åberg
 ha scritto:
> With Frescobaldi 3.1.2 using MacPorts lilypond-devel 2.21.2, not the 
> installer version, on the small attached file, I got the error below.
> [...]
> print('command failed:', cmd, file=sys.stderr)
>   ^
> SyntaxError: invalid syntax

It should be solved in current master and v3.1.x branches.
The fix will appear in future Frescobaldi 3.1.3.

I opened a PR to update MacPorts' frescobaldi-devel to current v3.1.x.
I hope they will merge it soon.

Best wishes.
Davide



Re: After directory rename, Frescobaldi doesn't show PDF

2020-07-05 Thread Davide Liessi
Il giorno ven 3 lug 2020 alle ore 23:48 David F.  ha scritto:
> Frescobaldi is having problems with file paths that have question marks and 
> accented characters.

It should be solved in current master and v3.1.x branches.
The fix will appear in future Frescobaldi 3.1.3.

Best wishes.
Davide



Re: After directory rename, Frescobaldi doesn't show PDF

2020-07-03 Thread Davide Liessi
Dear David,

Il giorno ven 3 lug 2020 alle ore 23:48 David F.  ha scritto:
> Frescobaldi is having problems with file paths that have question marks and 
> accented characters.

tomorrow I'll test and get back to you.

> This problem is not present in Frescobaldi 2.20.

This is interesting.

Best wishes.
Davide



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Davide Liessi
Dear Hans,

Il giorno ven 3 lug 2020 alle ore 20:39 Hans Åberg
 ha scritto:
> I think that may be the case: I tried with MacPorts lilypond-devel, of which 
> I also made an installer, and it worked standalone, but not in Frescobaldi. 
> Perhaps it runs its own convert-ly rather than the one that comes with the 
> lilypond distribution.

Frescobaldi runs the convert-ly that is part of the LilyPond distribution.
Although I added /opt/lilypond/bin to the list of default paths, I
think I haven't actually tried your installer (I will), but on my
machine MacPorts' convert-ly works correctly in Frescobaldi.

I still have a couple of messages from you about problems with
Frescobaldi's prebuilt application, but I don't find anything about
convert-ly therein: can you give me more details on convert-ly's
failure?
Thanks.

Best wishes.
Davide



Re: convert.ly error message - 64bit Mac - Catalina

2020-07-03 Thread Davide Liessi
Il giorno ven 3 lug 2020 alle ore 18:26 Zone Dremik
 ha scritto:
> I just upgraded to Mac OS 10.15.5 and now convert.ly has stopped working 
> entirely. I get the following error message;
> arch: posix_spawnp: 
> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: Bad 
> CPU type in executable
> [...]
> Is this a Frescobaldi issue?

Known error, see https://github.com/frescobaldi/frescobaldi/issues/1232.
This has been solved in Frescobaldi 3.1.2.

Best wishes.
Davide



Re: italian list or forum

2020-05-21 Thread Davide Liessi
Il giorno gio 21 mag 2020 alle ore 11:42 Federico Bruni
 ha scritto:
> I think it's the moment to create a new italian
> "community place".
> Please let me know if you are interested.

I'm interested and I believe it would attract many users.

> What would you suggest to use?

I would prefer

> 1. Mailing list on gnu.org (as this one)

Best wishes.
Davide



Re: Frescobaldi 3.1.2 macOS gs error message

2020-05-20 Thread Davide Liessi
Dear Thomas,

Il giorno dom 17 mag 2020 alle ore 17:57 Thomas Scharkowski
 ha scritto:
> warning: g_spawn_sync failed (0): gs: Failed to execute child process
> “gs” (No such file or directory)

this has been reported also on GitHub, see
https://github.com/frescobaldi/frescobaldi/issues/1305

I will investigate it, but since you already use MacPorts, you can
install MacPorts' Frescobaldi, which is not affected by this issue
(nor by several other bugs of the prebuilt application bundle).

Best wishes.
Davide



Re: help

2020-05-19 Thread Davide Liessi
Dear David,

Il giorno mar 19 mag 2020 alle ore 08:56 David Rodríguez Blanco
 ha scritto:
> I can run Frescobaldi because don’t know how install Monospace font or instar 
> it in Frescobaldi PATH

you have already opened an issue on GitHub
(https://github.com/frescobaldi/frescobaldi/issues/1304).
I answered there.

Best wishes.
Davide



Re: h1\rest instead of R1 will not be centered

2020-04-14 Thread Davide Liessi
Il giorno mar 14 apr 2020 alle ore 13:07 Bernhard Kleine
 ha scritto:
> While pauses in \voiceOne and \voiceTwo settings are far from centered, one 
> can use h1\rest and approriate ones  and silence the second voice. However 
> these surrogate R1 pauses are not centered in the measure. How to center 
> these h1\rest pauses?

If your goal is to have rests in both voices shown as a single rest in
its usual position, instead of manually positioning the rests I would
use the Merge_rests_engraver.

\version "2.20.0"
\new Staff \with {
  \consists "Merge_rests_engraver"
} <<
  \new Voice {
\voiceOne
c''4 r4 r2
R1
  }
  \new Voice {
\voiceTwo
c'4 r4 r2
R1
  }
>>

Best wishes.
Davide



Re: ANN: Frescobaldi 3.1.2

2020-04-13 Thread Davide Liessi
Dear friends,

Il giorno lun 13 apr 2020 alle ore 15:25 Wilbert  ha scritto:
> packaged releases will probably follow soon.

The prebuilt application bundle for macOS 10.13 High Sierra and later
is available at [1].
The Homebrew version has been already updated.
The MacPorts update [2] is on the way.

As noted in [1], due to problems in packaging a component, the
prebuilt application bundle does not include the Documentation Browser
and the SVG View.
If you need them, see [3] for alternative ways of installing Frescobaldi on Mac.
For more details on the problem, see [4].

Happy Easter!

Davide


[1] https://github.com/frescobaldi/frescobaldi/releases/tag/v3.1.2
[2] https://github.com/macports/macports-ports/pull/6864
[3] 
https://github.com/frescobaldi/frescobaldi/wiki/How-to-install-Frescobaldi-on-Mac-OS-X
[4] https://github.com/frescobaldi/frescobaldi/issues/1244



Re: MacPorts stable version lacks mactex variant

2020-03-26 Thread Davide Liessi
Il giorno gio 26 mar 2020 alle ore 22:09 Fr. Samuel Springuel
 ha scritto:
> The lilypond port for MacPorts (i.e. the stable version) doesn’t have a 
> mactex variant like lilypond-devel and thus will end up installing several 
> the MacPorts texlive packages which are redundant on systems which already 
> have MacTex installed.  Should I be reporting this to the MacPorts bug 
> tracker?

Yes, please, and let us know the ticket number.
I might look into it in the next days, and maybe Werner is interested, too.

Best wishes.
Davide



Re: Using Frescobaldi compile functionality from another program

2020-03-19 Thread Davide Liessi
Dear Pablo,

Il giorno gio 19 mar 2020 alle ore 17:25 Pablo Cordal
 ha scritto:
> What I need is to generate the pdf and midi file from visual basic directly.
> Is there any way I can use the compile functionality of Frescobaldi from 
> visual basic?

"compile functionality of Frescobaldi" = LilyPond!
I don't know Visual Basic, but I am sure there is a way to run
external programs (see, e.g., [1] where Process.Start is mentioned),
so you should be able to run LilyPond on your (possibly temporary)
file from within your program.

Best wishes.
Davide

[1] 
https://stackoverflow.com/questions/16152531/how-to-run-a-command-prompt-command-with-visual-basic-code



Re: 64-bit Mac build of 2.20 is now available!

2020-03-18 Thread Davide Liessi
Il giorno mer 18 mar 2020 alle ore 13:07 David Kastrup  ha 
scritto:
> It doesn't make sense to have convert-ly produce non-working code for
> version 2.19.40 .  And convert-ly cannot promise to fix code that never
> worked due to its combination of version statement and old syntax.
>
> It isn't guaranteed that you can run convert-ly multiple times for the
> same version range without producing invalid code.

Would it make sense to have the rule twice, once for the correct
version and once for post-2.20.0?
That would produce working code for 2.19.40, while also taking care of
files that were diligently converted with convert-ly up to 2.20.0 (the
invalid code in those files is not the user's error but convert-ly's).
Of course provided that the applying the rule twice doesn't ruin the code.

Davide



Re: 64-bit Mac build of 2.20 is now available!

2020-03-18 Thread Davide Liessi
Dear David,

Il giorno mer 18 mar 2020 alle ore 09:48 David Kastrup  ha 
scritto:
> For which version number then?  Likely the one for issue 4800?

I may be wrong, but shouldn't it be for the version containing the new
convert-ly rule (that is, by now, later than 2.20.0)?
If a user has already used convert-ly on a file, as in Zon's case,
then the file already has a 2.20.0 version statement and rules for
previous versions would not be applied by a subsequent run of
convert-ly.

Best wishes.
Davide



Re: 64-bit Mac build of 2.20 is now available!

2020-03-17 Thread Davide Liessi
Il giorno mer 18 mar 2020 alle ore 00:23 Marnen Laibow-Koser
 ha scritto:
> Will that work on Mac OS without the problems that have plagued the other 3.x 
> versions of Fresco?

I solved some problems, but unfortunately not all.
The main packaging problem concerning PyQtWebEngine, which caused
crashes on startup or when using some panels, is not solved yet, but
3.1.2 will fail gracefully, simply disabling the features depending on
WebEngine (Documentation browser, SVG viewer).

Best wishes.
Davide



Re: 64-bit Mac build of 2.20 is now available!

2020-03-17 Thread Davide Liessi
Il giorno mar 17 mar 2020 alle ore 22:36 Arle Lommel
 ha scritto:
> #2: Update.ly doesn’t work for me when invoked from Frescobaldi. I get this 
> message about a bad CPU type when I run it from Frescobaldi.

Known problem, depending only on Frescobaldi, see
https://github.com/frescobaldi/frescobaldi/issues/1232
I have already fixed it in a pull request: Frescobaldi 3.1.2 will have it.

Best wishes.
Davide



Re: Altered unisons

2020-03-17 Thread Davide Liessi
Dear Harm,

I tried to use your file distributed-note-heads-01.ly, attached to
https://lists.gnu.org/archive/html/lilypond-user/2019-03/msg00062.html
and I found out that it does not behave well with
layout-set-staff-size (see attached example, which I tested with
2.20.0).

I wouldn't be surprised if this turned out to be a bug in
layout-set-staff-size, instead of your code (see, e.g.,
https://lists.gnu.org/archive/html/bug-lilypond/2020-03/msg00021.html
which, by the way, hasn't been added to the tracker yet).

Best wishes.

Davide


distributed-note-heads-01-bug.ly
Description: Binary data


Re: Frescobaldi 3.1.1 doesn't even start

2020-03-07 Thread Davide Liessi
Dear Massimiliano,

Il giorno sab 7 mar 2020 alle ore 17:08 Massimiliano Viel
 ha scritto:
> I checked today the last version of Frescobaldi for macOS on an iMac mid-2011 
> with 16 GB Ram and macOS 10.13.6.
> After a few second after double-clicking the icon it just crashes without 
> comments.

most probably this is https://github.com/frescobaldi/frescobaldi/issues/1244.
I commented in the issue you opened
(https://github.com/frescobaldi/frescobaldi/issues/1267) with a test
to confirm that it is the same problem.

Unfortunately I haven't yet found a workaround.
I asked for help at PyQt's mailing list but still with no answers after 10 days.
A couple of days ago I wrote also to MacPorts' mailing list.
The issue https://github.com/frescobaldi/frescobaldi/issues/1244
contains all the details.

Best wishes.
Davide



Re: Bug in connected arpeggio brackets with layout-set-staff-size

2020-03-05 Thread Davide Liessi
Dear Pierre,

Il giorno lun 2 mar 2020 alle ore 06:41 Pierre Perol-Schneider
 ha scritto:
> Here's a possible workaround:

thanks for the workaround: I had already manually shifted the bracket
in my score with Arpeggio.extra-offset, since the size was not that
different, but I'll use Arpeggio.positions instead.
I forwarded my original message to bug-lilypond.

Best wishes.
Davide



Bug in connected arpeggio brackets with layout-set-staff-size

2020-03-01 Thread Davide Liessi
Hi all.
The size and position of the bracket in the second score are not
computed correctly.
Apparently the bracket is not scaled; if you use, say, 10 instead of
17 it becomes clearer.

\version "2.19.84"
music = \new PianoStaff \with {
  connectArpeggios = ##t
  \override Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket
} <<
  \new Staff {
\clef "treble"
c'4\arpeggio
  }
  \new Staff {
\clef "bass"
b,4\arpeggio
  }
>>
\score {
  \music
}
\score {
  \music
  \layout {
#(layout-set-staff-size 17)
  }
}

Is there any workaround?
Should this be added to the tracker?

Best wishes.
Davide



Split percent repeats at line breaks

2020-02-29 Thread Davide Liessi
Hi all.
I'd like to have percent repeats automatically split at line breaks,
i.e., in the following example I'd like the first score to look like
the second.

\version "2.19.84"
\score {
  \repeat percent 30 { c'1 }
}
\score {
  {
\repeat percent 14 { c'1 }
\repeat percent 16 { c'1 }
  }
}

I think that this should typically also reset the percent repeat
counter, effectively behaving as if they were distinct percent
repeats, but being able to choose whether to reset it or not would be
nice.

Is there a way to achieve this?

Best wishes.
Davide



Re: Newbie install question

2020-01-31 Thread Davide Liessi
Dear Mark,

Il giorno ven 31 gen 2020 alle ore 13:11 Mark Gould
 ha scritto:
> unable to revert mtime: /Library/Fonts
> unable to revert mtime: /Library/Fonts/Microsoft

does it persist if you run LilyPond again?

See
https://lists.gnu.org/archive/html/lilypond-devel/2020-01/msg00188.html

Best wishes.
Davide



Re: Newbie install question

2020-01-30 Thread Davide Liessi
Dear Mark,

Il giorno gio 30 gen 2020 alle ore 17:53 Mark Gould
 ha scritto:
>  /Applications/LilyPond 2.app/Contents/Resources/bin/lilypond: line 22: 
> /Applications//../libexec/lilypond-bin: No such file or directory
> /Applications/LilyPond 2.app/Contents/Resources/bin/lilypond: line 22: exec: 
> /Applications//../libexec/lilypond-bin: cannot execute: No such file or 
> directory

I think you have the same problem I was having.
Due to missing quotes around some variables, the space in the app name
breaks some scripts.
The issue has already been solved in Marnen's repository, see
https://gitlab.com/marnen/lilypond-mac-builder/-/merge_requests/1
https://gitlab.com/marnen/lilypond-mac-builder/issues/8
The next version of the app bundle will work correctly.
Meanwhile, you can fix it by manually changing some files inside the
application bundle.

- Right-click on the application bundle and choose "Show package contents".
- Navigate to Contents/Resources/bin.
- Open the file named "lilypond" in a text editor and add double
quotes at lines 16 and 22 as shown in
https://gitlab.com/marnen/lilypond-mac-builder/-/merge_requests/1/diffs
- Navigate back to Contents/Resources and then into etc/relocate.
- Open the file named "gs.reloc" in a text editor and add double
quotes at line 6 as shown in
https://gitlab.com/marnen/lilypond-mac-builder/commit/bc5469bfffa35bdeb84490fdfad3fe48d9a058dc

Best wishes.
Davide



Re: Users of scholarly.choice or scholarly.editorial-markup?

2020-01-29 Thread Davide Liessi
Dear Urs,

I'm very late, but maybe you can make use of my comments independently
of the Salzburg conference.

Il giorno mar 14 gen 2020 alle ore 11:48 Urs Liska
 ha scritto:
> does anyone know if the openLilyLib modules scholarly.choice and
> scholarly.editorial-markup are actually used by people?

I'm using scholarly.editorial-markup (not yet scholarly.choice) in two projects.

> The reason I'm asking is that I have the impression that I should
> rename the command \editorialMarkup to something different and would
> like to know if this would significantly affect users.

Renaming the commands is fine for me, especially if it can be done
with find/replace.

> What the naming actually describes is that I *use* editorial markup to
> encode one version as a "lemma" and another as a "reading". But that's
> not what *should* be there. Actually I want to encode the versions "as"
> lemma and reading.

I agree that the command names should reflect their semantic meaning
rather than the presentation or implementation details.

Best wishes.
Davide



Re: Gentoo python-poppler phaseout

2020-01-24 Thread Davide Liessi
Dear Andrew,

Il giorno ven 24 gen 2020 alle ore 09:12 N. Andrew Walsh
 ha scritto:
> The dev there asserts that python-poppler-qt5 does not require python-poppler,

they are right: indeed python-poppler-qt5 (Python bindings for the Qt5
frontend of poppler) does not depend on python-poppler (Python
bindings for the glib frontend of poppler).

Best wishes.
Davide



Re: Inputting fingerings separate from melody?

2020-01-20 Thread Davide Liessi
Il giorno lun 20 gen 2020 alle ore 18:42 Jean-Julien Fleck
 ha scritto:
> Won't it be colliding if you replace f' by a' ?

You are right: I forgot to explicitly initiate a new Voice.
See below the fixed example.

Best wishes.
Davide

\version "2.18.2"

music-with-fingerings = {
  c'4-1 d'4-2
  a'4\finger \markup \tied-lyric #"4~3"
  c'4\finger "2 - 3"
}

\score {
  \new Staff {
\music-with-fingerings
  }
}

music = {
  c'4 d'4 a'4 c'4
}

fingerings = {
  s4-1 s4-2
  s4\finger \markup \tied-lyric #"4~3"
  s4\finger "2 - 3"
}

\score {
  \new Staff {
\new Voice <<
  \music
  \fingerings
>>
  }
}



Re: Inputting fingerings separate from melody?

2020-01-20 Thread Davide Liessi
Il giorno lun 20 gen 2020 alle ore 16:38 bkal...@gmail.com
 ha scritto:
> Is there a way to input fingerings separate from melody?

You can attach fingerings to invisible rests and combine them with the
melody using <<>>.
See the example below.

Best wishes.
Davide


\version "2.18.2"

music-with-fingerings = {
  c'4-1 d'4-2
  f'4\finger \markup \tied-lyric #"4~3"
  c'4\finger "2 - 3"
}

\score {
  \new Staff {
\music-with-fingerings
  }
}

music = {
  c'4 d'4 f'4 c'4
}

fingerings = {
  s4-1 s4-2
  s4\finger \markup \tied-lyric #"4~3"
  s4\finger "2 - 3"
}

\score {
  \new Staff <<
\music
\fingerings
  >>
}



Re: ANN: Frescobaldi 3.1 has been released!

2020-01-06 Thread Davide Liessi
Il giorno gio 2 gen 2020 alle ore 01:13 Michael Rivers
 ha scritto:
> The score wizard does nothing for me in Frescobaldi 3.1 (Windows version). I
> uninstalled it and reinstalled the old version, whose score wizard works
> fine.

Il giorno gio 2 gen 2020 alle ore 04:10 Guy Stalnaker
 ha scritto:
> Concur on Score Wizard for 3.1 and latest Win10 (updated 12/16). Toolbar 
> button, menu, and keystrokes all ineffective.

Il giorno gio 2 gen 2020 alle ore 02:45 Ben
 ha scritto:
> Correct. Same here. Score Wizard button is completely broken on Windows 10 
> with version 3.1 - the button just 'clicks' but nothing happens.

Reported at https://github.com/frescobaldi/frescobaldi/issues/1243

Best wishes.
Davide



Re: Windows installer available (was Re: ANN: Frescobaldi 3.1 has been released!)

2019-12-31 Thread Davide Liessi
Il giorno mar 31 dic 2019 alle ore 16:13 MING TSANG
 ha scritto:
> Any place I can download frecobaldi 3.0.0.2 and reinstall v3.1 so that I can 
> continue running frecobaldi.

Previous releases are still available on GitHub:
https://github.com/frescobaldi/frescobaldi/releases

Best wishes.
Davide



Re: ANN: Frescobaldi 3.1 has been released!

2019-12-30 Thread Davide Liessi
Il giorno lun 30 dic 2019 alle ore 10:21 Thomas Scharkowski
 ha scritto:
> Output of:
> find /System/Library/Frameworks/Python.framework -type f -name 'python*'
> [...]
> and output of:
> find /Library/Frameworks/Python.framework -type f -name 'python*'
> [...]

Thanks.
Just to confirm the suspects, can you please run

file /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

and post the output?



Re: ANN: Frescobaldi 3.1 has been released!

2019-12-30 Thread Davide Liessi
Il giorno dom 29 dic 2019 alle ore 11:18 Thomas Scharkowski
 ha scritto:
> I installed the Frescobaldi 3.1 dmg and it works.
> Only one problem: convert-ly called from frescobaldi gives this message:
> arch: posix_spawnp:
> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7:
> Bad CPU type in executable
>  From the command line convert-ly works.

This is related to https://github.com/frescobaldi/frescobaldi/issues/1232

> In the above mentioned
> /System/Library/Frameworks/Python.framework/Versions there is no python2.7

Can you please run this in the Terminal

find /System/Library/Frameworks/Python.framework -type f -name 'python*'

and post the output?

Thanks.

Davide



Re: [Frescobaldi] Frescobaldi 3.1 Successes (happy to report)

2019-12-28 Thread Davide Liessi
Il giorno sab 28 dic 2019 alle ore 22:30 Stanton Sanderson
 ha scritto:
> Another behavior noted (change from previous versions): the new pdf generated 
> when editing an existing file does not replace the old pdf.

I cannot reproduce this.
If I change an existing document, save it and compile it, the new PDF
replaces the old one.
If I change an existing document, DO NOT save it and compile it, the
viewer shows the new PDF, which is saved in a temporary location, and
the old PDF is not replaced.
This is the usual behaviour of Frescobaldi.

It would be a bug if after changing, saving and compiling an existing
document the new PDF did not replace the old one.

What is the behaviour you are observing?



Re: [Frescobaldi] Frescobaldi 3.1 Successes (happy to report)

2019-12-28 Thread Davide Liessi
On 12/28/19 13:11, Stanton Sanderson wrote:
> An anomaly noted: document conversion from 2.19.2 to 2.19.83 fails with the 
> following error message reported:
>>  ImportError: Bad magic number in 
>> /Applications/Frescobaldi.app/Contents/Resources/site.pyc

Il giorno sab 28 dic 2019 alle ore 22:24 John Helly
 ha scritto:
> I confirm same behavior.

I can reproduce the issue.
Issue opened at https://github.com/frescobaldi/frescobaldi/issues/1232.
I will investigate it.

Best wishes.
Davide



Re: Frescobaldi 3.1 Successes (happy to report)

2019-12-28 Thread Davide Liessi
Il giorno sab 28 dic 2019 alle ore 21:54 John Helly
 ha scritto:
> 1. Audio MIDI Setup.app

Are you sure this step is necessary?
As far as I understand it should not be.

> I have a bunch of macs and could help with testing; if that's useful.

Thanks for the offer: it might indeed be very useful, I'll keep it in mind.

Best wishes.
Davide



Re: ANN: Frescobaldi 3.1 has been released!

2019-12-28 Thread Davide Liessi
Il giorno sab 28 dic 2019 alle ore 20:01 Tim McNamara
 ha scritto:
> I downloaded the .dmg and installed on Catalina 10.15.1.  The app crashes on 
> launch each time.  I have a log file for this which is attached as a PDF, as 
> a non-programmer it’s gobbledygook to me.

Can you try running it again and checking the error messages in the
Console application when Frescobaldi crashes?

Thanks.
Davide



Re: ANN: Frescobaldi 3.1 has been released!

2019-12-28 Thread Davide Liessi
Il giorno sab 28 dic 2019 alle ore 10:19 Jacques Menu
 ha scritto:
> I’ve switched to it on Mac OS 10.14.6 (Mojave, which still allows 32bit apps 
> to be run), and it runs fine.

Good to know!

Anyway, the application bundle contains only 64 bit code.

Best wishes.
Davide



Re: ANN: Frescobaldi 3.1 has been released!

2019-12-28 Thread Davide Liessi
Il giorno ven 27 dic 2019 alle ore 11:21 Wilbert Berendsen
 ha scritto:
> Please give packagers some time to prepare Windows/MacOSX installers,
> they will be announced when ready.

The Mac installer (DMG containing application bundle) is now available at
https://github.com/frescobaldi/frescobaldi/releases

The application bundle should work on macOS 10.12 Sierra and later:
otherwise, please report the failure (either with a GitHub issue or by
email to me).
It might work also on previous versions of macOS: if it does, please
let us know (either with a GitHub issue or by email to me).

Merry Christmas and a happy new year to you all!
Davide



Re: Lilypond on OS X Catalina

2019-09-28 Thread Davide Liessi
Il giorno ven 27 set 2019 alle ore 18:33 Thomas Scharkowski
 ha scritto:
> I'll attach the log now:

The port lilypond-devel built correctly on MacPorts' 10.14 buildbot,
so the error may be specific to your system.
Judging from the log, there's probably some issue with header files.
Please do

sudo port clean lilypond-devel

and try again (I see from your other messages that you already did
selfupdate and upgrade outdated).
If it still fails it is best to open a ticket at MacPorts.
If you have a GitHub account you can do it yourself at
https://trac.macports.org/wiki/Tickets
(please follow the instructions at https://guide.macports.org/#project.tickets).
Otherwise I can open it for you.

Best wishes.
Davide

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


Re: Lilypond on OS X Catalina

2019-09-27 Thread Davide Liessi
Dear Thomas,

Il giorno ven 27 set 2019 alle ore 10:41 Thomas Scharkowski
 ha scritto:
> I could post the log if someone is willing to look at it and help.

Is it the same error as this one?
https://trac.macports.org/ticket/58913

Best wishes.
Davide

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


Multimeasure rests not compressed

2019-05-05 Thread Davide Liessi
Dear all,

in the following example I expected to see two identical scores, but
in the first one the full bar rests after the rehearsal mark are not
compressed.

\version "2.19.82"

\score {
  \compressMMRests
  \new Staff <<
{
  s1*5
  \mark \default
}
{
  c'1
  R1*10
  c'1
}
  >>
}

\score {
  \compressMMRests
  \new Staff {
c'1
R1*4
\mark \default
R1*6
c'1
  }
}

Is there a solution?

Best wishes.
Davide

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


Shorten TextSpanner dashed line

2018-12-30 Thread Davide Liessi
Hi all.
Is it possible to automatically shorten the dashed line in
TextSpanners so that the line of the first TextSpanner ends before the
left text of the second TextSpanner (and thus the two TextSpanners can
align vertically)?

\version "2.19.82"
{
  \override TextSpanner.bound-details.left.text = "test"
  b1\startTextSpan
  b1\stopTextSpan\startTextSpan
  b1\stopTextSpan
}

In alternative, is it possible to shorten the TextSpanners' X-extent
by the appropriate amount?

Best wishes.
Davide

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


Re: Problem compiling: music-functions-init.ly

2018-11-14 Thread Davide Liessi
Il giorno mer 14 nov 2018 alle ore 08:25 Keizen Li Qian
 ha scritto:
> Parsing.../usr/share/lilypond/2.18.2/ly/music-functions-init.ly:564:11: In 
> procedure ly:music-transpose in expression (ly:music-transpose (make-music # 
> # ...) tonic):
> /usr/share/lilypond/2.18.2/ly/music-functions-init.ly:564:11: Wrong type 
> (expecting pair): major

You probably wrote
\key c major
instead of
\key c \major

Davide

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


Re: Force text on line without using \textLengthOn

2018-10-26 Thread Davide Liessi
Il giorno ven 26 ott 2018 alle ore 11:55 Urs Liska
 ha scritto:
> make-with-dimensions-markup (where is this
> defined? I don't find this with git grep???)

`git grep with-dimensions` finds
scm/define-markup-commands.scm:(define-markup-command (with-dimensions
layout props x y arg)

I might have a similar problem, i.e., automatically add
\stopTextSpanner commands to mimick \tempo with TextSpanner (see
https://lists.gnu.org/archive/html/lilypond-user/2018-10/msg00238.html)
Although I can offer no insights at present, I'm definitely interested.

Best wishes.
Davide

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


Re: set-global-staff-size *inside* \book {}

2018-10-25 Thread Davide Liessi
Il giorno gio 25 ott 2018 alle ore 20:18 Thomas Morley
 ha scritto:
> Davide wrote me a similiar mail, asking whether it's a bug in the
> docs. cc-ing him

I'm sorry, I meant to send my message to the list with you in cc, but
I hit the wrong button...

> "To set the staff size globally for all scores in a file (or all
> scores in a \book block, to be precise, because LilyPond wraps all
> toplevel scores in a book anyway), use set-global-staff-size at
> top-level".
> Probably one should add:
> If a file contains multiple books every books staff-size may be set by
> inserting set-global-staff-size right before the relevant book.

This clarifies the matter, indeed.

Best wishes.
Davide

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


Re: problems in spacing

2018-10-25 Thread Davide Liessi
Il giorno mer 24 ott 2018 alle ore 16:48 Davide Liessi
 ha scritto:
> That instruction can be used only outside any variable, either in a
> \book block or outside any block (see
> http://lilypond.org/doc/v2.18/Documentation/notation/setting-the-staff-size).

This was apparently wrong: despite what the manual says, that
instruction doesn't work well inside a \book block, so it is better to
use it outside any variable or block (see the recent thread
http://lists.gnu.org/archive/html/lilypond-user/2018-10/msg00327.html).

Il giorno gio 25 ott 2018 alle ore 14:53 Massimiliano Viel
 ha scritto:
> thank you for the answer. that was exactly the problem… I just missed to get 
> myself the solution which is nevertheless very explicit in the manual. It is 
> easy for a newbie to get lost in the complications of Lilypond even in simple 
> matters.

Indeed: LilyPond has a steep learning curve, but it is very rewarding.

> And sorry for being a total newbie also in asking for help :-D I’ll do better 
> in the next time!

No need to be sorry: we all started as newbies!
This list is very welcoming both to basic and advanced questions.

Best wishes.
Davide

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


Re: problems in spacing

2018-10-24 Thread Davide Liessi
Dear Massimiliano,
a recommendation before addressing your questions.

When you write to the list, please always state which LilyPond version
you are using, because there can be differences in syntax and
behaviour, although in this case the differences are not related to
your problems.
I assume you are using 2.18.x or some early 2.19.x due to the syntax
for "system-system-spacing #'basic-distance", which more recently
became "system-system-spacing.basic-distance".
It is good practice to include a \version statement in your files,
recording the LilyPond version the file was written for (see
http://lilypond.org/doc/v2.18/Documentation/learning/working-on-input-files).

Il giorno mer 24 ott 2018 alle ore 15:58 Massimiliano Viel
 ha scritto:
> With system-system-spacing #'basic-distance = #22 I have  2 pages and one 
> system in the 3rd.
> With system-system-spacing #'basic-distance = #21 I have less than 2 full 
> pages
> How can I have 2 complete pages?! What do I do wrong?

You can put
ragged-last-bottom = ##f
in the \paper block, and then you can get rid of the
system-system-spacing setting as well (see
http://lilypond.org/doc/v2.18/Documentation/notation/fixed-vertical-spacing-paper-variables).

> Moreover Frescobaldi signals to me #(set-global-staff-size 16) with the red 
> color. Why is that? The code renders without errore, but that color seems to 
> point me to some misuse. Is it true?

That instruction can be used only outside any variable, either in a
\book block or outside any block (see
http://lilypond.org/doc/v2.18/Documentation/notation/setting-the-staff-size).

Best wishes.
Davide

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


Re: Baseline align in TextSpanner

2018-10-14 Thread Davide Liessi
Dear Kieren,

Il giorno ven 5 ott 2018 alle ore 15:11 Kieren MacMillan
 ha scritto:
> This works for me:
[...]

your solution works well to keep all TextSpanners baseline-aligned,
but it still does not solve my real problem, which indeed was not
apparent in my first message.
I'm trying to make TextSpanners and tempo markings look the same,
including being aligned at the same baseline.
The reason is to follow the recommendations of Gould for tempo
alteration markings (example at page 184).

A slightly more realistic example follows: I would like to align
\tempo markings and TextSpanners to the same baseline.
As you can see using your trick on both does achieve the desired result.
I renamed the \test function to a more specific \baseline-align.
I'm cc-ing also Harm / Thomas Morley because I'm using his code, so he
may have some insights or suggestions.

Thanks for your help so far.
Best wishes!
Davide

%%% new example
\version "2.19.81"

#(define (lists-map function ls)
   "Apply @var{function} to @var{ls} and all of it sublists.
First it recurses over the children, then the function is applied to
@var{ls}."
   (if (list? ls)
   (set! ls (map (lambda (y) (lists-map function y)) ls))
   ls)
   (function ls))

#(define baseline-align-proc
   (lambda (e)
 (if (and (list? e) (member 'glyph-string e))
 (begin
  (for-each
   (lambda (x)
 (begin
  (set-car! (cadr x) 0)
  x))
   (cadr (last e)))
  e)
 e)))

#(define-markup-command (baseline-align layout props glyph-name)
   (markup?)
   (let* ((stil (interpret-markup layout props glyph-name))
  (new-stile-expr
   (lists-map
baseline-align-proc
(ly:stencil-expr stil

 (ly:make-stencil
  new-stile-expr
  (ly:stencil-extent stil X)
  ;(cons 0 (cdr (ly:stencil-extent stil Y)))
  (ly:stencil-extent stil Y)
  )))

startTempoSpan =
#(define-event-function
  (left-text)
  (markup?)
  #{
\tweak bound-details.left.text \markup {
  \combine \transparent "Tj"
  #left-text
}
\tweak font-shape #'upright
\tweak font-size 1
\tweak font-series #'bold
\startTextSpan
  #})
stopTempoSpan = \stopTextSpan

{
  R1 |
  \tempo \markup { \baseline-align \large "a" }
  R1 |
  \tempo \markup { \baseline-align \large "p" }
  R1 |
  <>\startTempoSpan "a"
  R1
  <>\stopTempoSpan |
  R1 |
  <>\startTempoSpan "p"
  R1
  <>\stopTempoSpan |
  R1
  \tempo \markup { \large \combine \transparent "Tj" "a" }
  R1 |
  \tempo \markup { \large \combine \transparent "Tj" "p" }
  R1 |
}

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


Re: Baseline align in TextSpanner

2018-10-05 Thread Davide Liessi
Hi everyone.
Maybe my previous message [1] went unnoticed.
I would really appreciate any hint.
Best wishes.
Davide

[1] http://lists.gnu.org/archive/html/lilypond-user/2018-09/msg00455.html

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


Baseline align in TextSpanner

2018-09-27 Thread Davide Liessi
Hi all.
I want to align TextSpanner texts to baseline.
I'm trying to use the code provided by Thomas Morley / Harm in
http://lists.gnu.org/archive/html/lilypond-user/2016-10/msg00365.html
which works very well e.g. with \tempo, but applying \test to
TextSpanner.bound-details.left.text has no effect.
I also tried replacing ly:line-spanner::print in TextSpanner.stencil
with a new function but I couldn't make it work.
An example follows, including Harm's code.
Is there a way to adapt it to my case?
Best wishes.
Davide

\version "2.19.82"

#(define (lists-map function ls)
   "Apply @var{function} to @var{ls} and all of it sublists.
First it recurses over the children, then the function is applied to
@var{ls}."
   (if (list? ls)
   (set! ls (map (lambda (y) (lists-map function y)) ls))
   ls)
   (function ls))

#(define test-proc
   (lambda (e)
 (if (and (list? e) (member 'glyph-string e))
 (begin
  (for-each
   (lambda (x)
 (begin
  (set-car! (cadr x) 0)
  x))
   (cadr (last e)))
  e)
 e)))

#(define-markup-command (test layout props glyph-name)
   (markup?)
   (let* ((stil (interpret-markup layout props glyph-name))
  (new-stile-expr
   (lists-map
test-proc
(ly:stencil-expr stil

 (ly:make-stencil
  new-stile-expr
  (ly:stencil-extent stil X)
  ;(cons 0 (cdr (ly:stencil-extent stil Y)))
  (ly:stencil-extent stil Y)
  )))

{
  \override TextSpanner.bound-details.left.text = \markup { \test "a" }
  b2\startTextSpan b2\stopTextSpan
  \override TextSpanner.bound-details.left.text = \markup { \test "p" }
  b2\startTextSpan b2\stopTextSpan
}

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


Re: LilyPond 2.19.82 and Fedora 28: exit code 6

2018-09-05 Thread Davide Liessi
2018-09-05 13:22 GMT+02:00 David Kastrup :
> The \tempo does
> not actually appear, though.

Indeed.

> So which architecture and GCC version are we talking about in your case?

$ uname -a
Linux dmif-lm2 4.17.18-200.fc28.x86_64 #1 SMP Wed Aug 22 19:08:07 UTC
2018 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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


LilyPond 2.19.82 and Fedora 28: exit code 6

2018-09-05 Thread Davide Liessi
Hi all.
Compiling this file:

\version "2.19.82"
{
  c1
  \tempo "a"
  %c1
}

with the system-provided LilyPond 2.19.82 on Fedora 28 I get this error:

lilypond 2.19.82 [Senza nome] in avvio...
Elaborazione di «/tmp/frescobaldi-nw1vbdie/tmpe_aojklz/document.ly»
Analisi...
Interpretazione della musica...
Pre-elaborazione degli oggetti grafici...
Uscito con codice 6.

Uncommenting the last c1 compiles correctly.
With LilyPond 2.19.82 from lilypond.org both versions compile correctly.

Let me know if you need further information to diagnose the problem.

Best wishes.
Davide

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


Re: Combining full bar rests with omitted grobs in between

2018-05-19 Thread Davide Liessi
2018-05-18 11:02 GMT+02:00 David Kastrup :
> You'd need to work with tags and alternative passages.

> Thomas Morley  writes:
>> The different length of s1 and R1*2 will always result into a splitted
>> MultiMeasureRest, afaik.

Thanks for your answers.

For the record, I solved my problem using tags to filter the \tempo
marks and then applying \mergeSkips from
http://lists.gnu.org/archive/html/lilypond-user/2013-12/msg01085.html
to merge the spacer rests and avoid splitting the multimeasure rests
(in the original file I had spacer rests filling the full length of
the piece).

Indeed, I noticed that elements inside removed tags are not shown by
\displayMusic (hence \mergeSkips can merge the spacer rests).
At what point is tagged content removed?
What parts of LilyPond's code are responsible for that?

Best wishes.
Davide

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


Combining full bar rests with omitted grobs in between

2018-05-18 Thread Davide Liessi
Dear all,
is there a way to combine the two full bar rests in one multimeasure
rest in the following example?

\version "2.19.81"
\new Staff <<
  \compressFullBarRests
  {
s1
\once \omit Score.MetronomeMark
\tempo "test"
  }
  {
R1*2
  }
>>

Use case: I have all tempo marks for the full score and parts in one
variable, but I need to hide a couple of tempo marks in one of the
parts (requested by the conductor).

I tried the approaches mentioned in the thread
http://lists.gnu.org/archive/html/lilypond-user/2014-11/msg00267.html
but they didn't work, probably because omitting the grob only makes it
invisible and with null extent but does not delete it.

Is there a solution?
Is there a way to actually delete an omitted grob?

Best wishes.
Davide

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


Re: Hairpins, brackets and dynamics

2018-04-24 Thread Davide Liessi
2018-04-24 12:02 GMT+02:00 Thomas Morley :
> How about below?

It's working perfectly!

> It is ensured the bracketed hairpin is always of equal length as the
> original. Ofcourse this means the visible hairpin is shortened a
> little.

Exactly what I had in mind!
Many thanks!

Best wishes.
Davide

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


Hairpins, brackets and dynamics

2018-04-24 Thread Davide Liessi
Dear all,
I need to engrave a hairpin in brackets after a \fz.
I tried LSR 771 (http://lsr.di.unimi.it/LSR/Item?id=771) with the
following results:

\version "2.19.65"

%http://lsr.di.unimi.it/LSR/Item?id=771
hairpinBetweenText =
#(define-music-function (leftText rightText) (markup? markup?)
   #{
 \once \override Hairpin.stencil =
 #(lambda (grob)
(ly:stencil-combine-at-edge
 (ly:stencil-combine-at-edge
  (ly:stencil-aligned-to (grob-interpret-markup grob leftText) Y CENTER)
  X RIGHT
  (ly:stencil-aligned-to (ly:hairpin::print grob) Y CENTER)
  0.6)
 X RIGHT
 (ly:stencil-aligned-to (grob-interpret-markup grob rightText) Y CENTER)
 0.6))
   #})

music = { c'1\fz\> c' c' c' d'1\! }

\score {
  <<
\new Staff {
  \music
}
\new Staff {
  \hairpinBetweenText "[" "]"
  \music
}
\new Staff {
  \once \hide DynamicText
  \hairpinBetweenText \markup { \dynamic { fz } "[" } "]"
  \music
}
\new Staff {
  \once \override Hairpin.shorten-pair = #'(0 . 2)
  \once \hide DynamicText
  \hairpinBetweenText \markup { \dynamic { fz } "[" } "]"
  \music
}
  >>
}

Is there a way to make the second Staff look like the last one?
I.e., is it possible to avoid the clash between the dynamic mark and
the hairpin and to automatically shorten the hairpin?

(By the way, in the third and fourth Staff hiding the DynamicText is
not necessary, since the normal \fz and the one in \hairpinBetweenText
are perfectly aligned; however if the DynamicText is omitted instead
of hidden the hairpin is shifted to the right, which I didn't expect.)

Best wishes.
Davide

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


Re: Printing lower continuo figures only

2018-03-30 Thread Davide Liessi
2018-03-29 16:31 GMT+02:00 Brent Annable :
> I've tried inserting a dummy figure above it and using \once \hide
> FiguredBass.BassFigure, but it hides both figures. And I tried turning Bass
> Extender Lines on and then hiding the line stencil (see second example),

That's what I would do.

> but this doesn't seem to work either.
>
> Anyone got an idea how to do this, or what I might be doing wrong? (aside
> from messing with the offsets, which is a bit approximate for me).

You are trying to hide the wrong grob: what you are looking for is
BassFigureContinuation.

\version "2.19.65"
<<
  \relative c' {
\clef bass
g2 ~ g
  }
  \figures {
<7 3>2 <6 4>4
\once \bassFigureExtendersOn
\once \hide BassFigureContinuation
<6 3>
  }
>>

Of course you can put those commands in a variable for convenience.

\version "2.19.65"
aaa = {
  \once \bassFigureExtendersOn
  \once \hide BassFigureContinuation
}
<<
  \relative c' {
\clef bass
g2 ~ g
  }
  \figures {
<7 3>2  <6 4>4 \aaa <6 3>
  }
>>

(Unfortunately Mats' solution flips the positions of all figures and
gives bad alignments if you use it only for part of the piece.)

Best wishes.
Davide

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


Re: Slur on the last note of a staff

2017-12-14 Thread Davide Liessi
2017-12-14 10:50 GMT+01:00 Menu Jacques :
> How can I get a slur on the last note of a staff, such as the attached?

You can use \laissezVibrer and \shape:

\version "2.18.2"
{
  r2 r4
  \shape #'((0 . 0) (0.5 . -0.1) (1 . -0.2) (1.5 . -0.2)) LaissezVibrerTie
  d'4\laissezVibrer
}

See http://lilypond.org/doc/v2.18/Documentation/notation/writing-rhythms#ties
and http://lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes .

Best wishes.
Davide

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


Re: Frescobaldi on a Mac - Preference Files

2017-10-11 Thread Davide Liessi
Dear Robert,

I overlooked your messages to the Frescobaldi list, I'm sorry.

2017-10-11 14:23 GMT+02:00 Robert Schmaus :
> I'm looking for the place where Frescobaldi would store its preference
> files, namely the session informations etc.

The preference file should be org.frescobaldi.frescobaldi.plist in
~/Library/Preferences/.
You can try moving the file to another directory: Frescobaldi will
recreate it from scratch.
Let me know if you still have problems.

Best wishes.
Davide

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


Re: missing staff lines

2017-10-11 Thread Davide Liessi
2017-10-10 2:05 GMT+02:00 Simon Albrecht :
> It seems like you’d need a somewhat simpler solution for your typesetting
> purposes which doesn’t involve replacing the note-head stencil with a score
> markup… can you say why you need that or what you are actually aiming for
> (maybe with an illustration)?

Simon:
Searching the archives for "modernGregorian" you'll find the thread starting at
https://lists.gnu.org/archive/html/lilypond-user/2015-01/msg00823.html
and continuing at
https://lists.gnu.org/archive/html/lilypond-user/2015-02/msg0.html
A previous related message by Sister Judit is
https://lists.gnu.org/archive/html/lilypond-user/2015-01/msg00709.html

Sister Judit:
Maybe Pierre can help you: I added him to the Cc: list.

Pierre:
See the first message in the thread by Sister Judit at
https://lists.gnu.org/archive/html/lilypond-user/2017-10/msg00110.html

Best wishes.
Davide

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


Re: Merge_rests_engraver, \magnifyStaff and full measure rests

2017-10-02 Thread Davide Liessi
2017-10-02 11:22 GMT+02:00 Malte Meyn :
> [...] but I fixed the engraver, see attachment (.ily for the corrected
> engraver, .ly for a usage example).

Thanks, it worked perfectly!

Best wishes.
Davide

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


Merge_rests_engraver, \magnifyStaff and full measure rests

2017-10-01 Thread Davide Liessi
Hi.
In the following example, the vertical position of the merged full
measure rest is wrong.

\version "2.19.65"
\new Staff \with {
  \magnifyStaff #2/3
  \consists #Merge_rests_engraver
} <<
  R1
  \\
  R1
>>

Is this a bug in the Merge_rests_engraver?
Is there a workaround?
I tried \override-ing MultiMeasureRest.staff-position but it didn't
have any effect.

Best wishes.
Davide

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


Re: Adding an introductory note(s)

2017-08-01 Thread Davide Liessi
2017-08-01 17:33 GMT+02:00 Stephen Nesbitt :
> Here's my melody line markup for The irish Washerwoman

Does the following do what you need?

\version "2.18.0"
\language "english"

\score {
  <<
\new ChordNames {
  \chordmode {
\partial 4
\repeat volta 2 {
  r4
  g2.*2
  d2.*2:7
  g2.*2
  a4.:m d4.:7
  g2
}
\repeat volta 2 {
  s4
  g2.*2
  d2.*2
  c4. g4.
  a4.:m g4.
  a4.:m d4.:7
  g2
}
  }
}
\new Staff {
  \relative g' {
\key g \major
\time 6/8
\set Score.markFormatter = #format-mark-circle-alphabet

\partial 4
\repeat volta 2 {
  d'8 c |
  \mark \default
  b8 g g d g g |
  b g b d c b |
  c a a d, a' a |
  c a c e d c |
  b g g d g g|
  b g b d c b |
  c b c a d c|
  b g g g
}
\break

\repeat volta 2 {
  g' a |
  \mark \default
  b g g d g g |
  b g b b a g |
  a fs fs d fs fs |
  a fs a a g fs |
  e g g d g g |
  c, g' g b, g' g|
  c, b c a d c |
  b g g g
}
  }
}
  >>
}

Note that the \repeat constructs can enclose incomplete measures.
Of course the last bar of each \repeat-ed section is incomplete, so a
bar check on those lines should (and indeed will) fail.
I also added a chord line that seems to satisfy your point 1 (r
produces "N.C.", s produces nothing).

> (there are a couple
> of custom macros here, but the sense should be obvious):

Next times, please provide compilable examples.
I had to figure out what needed to be in \global and what \ebar meant,
which was easy, but I couldn't understand the \dfrepeat command.

Best wishes.
Davide

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


Re: Adding an introductory note(s)

2017-08-01 Thread Davide Liessi
2017-08-01 16:24 GMT+02:00 David Wright :
> If there's no difference in the first and last bars of the repeat,
> I'm not sure why you go to the trouble of \alternatives. What is
> stolen gets immediately paid back. I would have thought that simple
> repeat barlines make that clearer.

What's wrong with using proper repeats?

\version "2.19.63"

\relative {
  \key f \major
  \time 2/4
  \partial 8
  \repeat volta 2 {
f''16 c
a8 c16 a g8 c16 a
f8 f f a16 c
f8 e16 f g8 f
e8 g16 e c8 f16 c
\barNumberCheck #5 |
a8 c16 a g8 c16 a
f8 f f a16 c
f8 e16 f g8 e
f4 f8
  }
  \repeat volta 2 {
f16 c
a8 a'16 f c8 c'16 a
\barNumberCheck #10 |
bes8 bes16 a g f e d
c8 g'16 e c8 bes'16 g
a8 a16 f c f c a
f8 a'16 f c8 c'16 a
bes8 bes16 a g f e d
\barNumberCheck #15 |
c8 g'16 e c bes' g e
f4 f8
  }
}

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


Re: ANN: Frescobaldi 2.20.0, Frescobaldi 3.0.0, python-ly 0.9.5

2017-02-19 Thread Davide Liessi
2017-02-17 10:58 GMT+01:00 Wilbert Berendsen :
> I just released the source packages for Frescobaldi 2.20.0, Frescobaldi
> 3.0.0 and python-ly 0.9.5 today. (I couldn't way until my birthday early
> March :-))

A self-contained application bundle of Frescobaldi 2.20.0 for Mac OS X
10.7 (Lion) and above is available at
> https://github.com/wbsoft/frescobaldi/releases

A pre-built application bundle of Frescobaldi 3 is in the works, but
due to some difficulties in running and packaging Frescobaldi 3 on
Mac, it may not appear very soon.

As keeping the full set of dependencies of Frescobaldi up to date in
the various different flavours (32 bit and 64 bit pre-Lion, Qt4-based
(Frescobaldi 2) and Qt5-based (Frescobaldi 3) post-Lion) is very time-
and disk-space-consuming, I decided that I will no longer upload the
32 bit application.

Also, for the time being I will not upload the 64 bit pre-Lion application.
I built the application on OS X 10.11 (El Capitan), discovering that
it would not run on pre-Lion systems only after many hours of updates:
unless really necessary I'm not going to spend the same time again in
the next days on the pre-Lion machine.

I recommend users of Mac OS X 10.6 (Snow Leopard) and below to install
Frescobaldi through MacPorts.
In case you need help for this, just let me know.

Best wishes.
Davide

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


Re: extenders over bar lines in 2.19.55 [was: Automatic Lyric Extenders]

2017-02-19 Thread Davide Liessi
2017-02-18 21:15 GMT+01:00 Alexander Kobel :
> Extenders are not drawn anymore for melismata that include notes that are
> not bar-aligned, starting somewhere between 2.19.50 and 2.19.55. M(N)WE
> attached - the first and second score should have extenders until the last
> note.

All extenders are until the last note with LilyPond 2.19.52 on Mac.

Best wishes.
Davide

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


Re: How to build LilyPond.app on macOS?

2016-12-06 Thread Davide Liessi
2016-12-06 14:30 GMT+01:00 Mojca Miklavec :
> On 6 December 2016 at 13:38, Sven Axelsson wrote:
>> Here's some information about how OSX url handlers work:
>> http://superuser.com/questions/548119/how-do-i-configure-custom-url-handlers-on-os-x
>
> The only entry there is
>
> LSHandlerContentType com.unknown.ly
> LSHandlerRoleAll com.macromates.textmate.preview
>
> Which doesn't look like LilyPond.app responsible for opening textedit:// 
> files.
>
> Everything else is completely unrelated.

In LilyPond.app/Contents/Info.plist:

CFBundleURLTypes


CFBundleTypeRole
Editor
CFBundleURLName
text editor via url
CFBundleURLSchemes

textedit

NSDocumentClass
TinyTinyDocument



You should be able to override this in
~/Library/Preferences/com.apple.LaunchServices.plist as shown in the
superuser.com page.
I didn't try, though.

Best wishes.
Davide

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


Re: How to build LilyPond.app on macOS?

2016-12-06 Thread Davide Liessi
2016-12-06 10:41 GMT+01:00 Mojca Miklavec :
> Again: we already have a working package for lilypond, the only(?)
> missing bit is the GUI.

I'm sorry, I saw your reply after I sent mine.
As I said, in my opinion there's no need to build the editor: it has
the advantage of having the "Update syntax" and "Typeset file"
commands, with the disadvantage of lacking anything else.

Best wishes.
Davide

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


Re: How to build LilyPond.app on macOS?

2016-12-06 Thread Davide Liessi
Dear Mojca,

2016-12-06 8:44 GMT+01:00 Mojca Miklavec :
> I would like to see LilyPond.app being distributed in a package
> manager, but for that to happen I first need to understand how to
> build it.

You surely know that there is a Portfile for Lilypond (both stable and
development) in MacPorts.
As others have already said, Homebrew has a formula for Lilypond.
As far as I know, the .app provides only the builtin editor, but I
wouldn't use it for anything past the very first example file.
May I ask why would you want a package manager to provide the .app?

Best wishes.
Davide

P.S. I'm trying to install lilypond-devel with MacPorts right now, to
check what exactly it installs.

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


Re: accidentals.sharp.slashslash.stem

2016-11-30 Thread Davide Liessi
2016-11-30 12:03 GMT+01:00 Emrecan :
>
> http://termiyeci.name.tr/wp-content/uploads/2016/11/Gecti_Sevdalarla.pdf
>
> Bar numbers: 20,  21, 22
> .
>   { c,8([bfc]) bfc16([a]) a4 a'16[gb fc gb] a8 |}
>   }
>   { a4 b8 c16[b a8] a16[gb fc e] fc8 | }
>   { b8([a]) gb gb16([fc fc e]) e4 r8 |
> .
> fc must only koma-sharp. Not together with sharp.

(You probably meant "Not together with natural" here.)

\set Staff.extraNatural = ##f
should help.

You can also use
\layout {
  \context {
\Staff
extraNatural = ##f
  }
}
which applies the setting to all staves in a score.

See second code snippet in
http://lilypond.org/doc/v2.18/Documentation/notation/writing-pitches#accidentals

Best wishes.
Davide

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


Re: unexplained shift of a note head when layout-set-staff-size is set to 16.3

2016-11-29 Thread Davide Liessi
Hi!

2016-11-29 14:43 GMT+01:00 Mojca Miklavec :
> I'm experiencing a weird behaviour with the note head of g being
> shifted to the left when I add
> #(layout-set-staff-size 16.3)

See thread starting here:
https://lists.gnu.org/archive/html/lilypond-user/2016-10/msg00231.html

I don't know if it has already been added to the bug tracker.

Best wishes.
Davide

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


Re: Notes on wrong side of stem in triads

2016-10-19 Thread Davide Liessi
2016-10-18 22:39 GMT+02:00 Stanton Sanderson :
> The following also works:
>
> \version "2.19.47"
> \paper {
>   #(layout-set-absolute-staff-size (* 19 pt))
> }
> {  }

This also seems to work (although I don't know if it makes sense, I
just took set-global-staff-size and removed bits of it):

\version "2.19.47"
#(define-public (new-layout-set-staff-size sz)
   (layout-set-absolute-staff-size-in-module
(ly:output-def-scope (ly:parser-lookup '$defaultpaper))
(* (eval 'pt (current-module)) sz)))
\score{
  \layout { #(new-layout-set-staff-size 19) }
  {  }
}

(Which maybe means that line 118 in paper.scm is not paranoid, see
comment above that line:
http://git.savannah.gnu.org/cgit/lilypond.git/tree/scm/paper.scm#n113 :D)

But I probably don't understand what's going on in
(ly:output-def-scope (ly:parser-lookup '$defaultpaper)), because I
would have expected the following to produce wrong first and third
chords and correct second chord.

\version "2.19.47"
#(define-public (new-layout-set-staff-size sz)
   (layout-set-absolute-staff-size-in-module
(ly:output-def-scope (ly:parser-lookup '$defaultpaper))
(* (eval 'pt (current-module)) sz)))
\score{
  \layout { #(layout-set-staff-size 19) }
  {  }
}
\score{
  \layout { #(new-layout-set-staff-size 19) }
  {  }
}
\score{
  \layout { #(layout-set-staff-size 19) }
  {  }
}

Instead all chords are correct.
But if you change the size of the middle one to something different
from 19, then the first and third chords are wrong.

Best wishes.
Davide

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


Re: Notes on wrong side of stem in triads

2016-10-18 Thread Davide Liessi
I reproduced the issue with this:

\version "2.19.47"
\layout { #(layout-set-staff-size 19) }
{  }

Using #(set-global-staff-size 19) instead works as expected.
I couldn't find a bug report for this.
Any ideas?

Best wishes.
Davide

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


Re: Notes on wrong side of stem in triads

2016-10-17 Thread Davide Liessi
2016-10-17 3:46 GMT+02:00 DJF :
> Unfortunately, I can’t reproduce the enclosed problem in a minimal example 
> because the same code works fine in a file by itself.

"Minimal example" means that if you remove anything the problem is
gone, so if the code works in what you call a minimal example, that
was *not* a minimal example for your problem: sometimes bugs are
encountered only in long scores.

See http://lilypond.org/tiny-examples.html, especially where it says
"When trying to create an example, try commenting out (% or %{ … %})
sections of your file. If you can comment something while still
demonstrating the main idea, then remove the commented-material."
It is a tedious process, but it is actually how you can understand
where the problem is: preparing minimal examples to post to this lists
often leads me to solving problems on my own.

Anyway, if you need help with this, at least share your code
(privately, if there are copyright issues), since it is impossible to
debug an image.

Best wishes.
Davide

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


Re: Augmentation dot positioning

2016-09-14 Thread Davide Liessi
2016-09-14 14:24 GMT+02:00 Chris Yate :
> Here's some test cases. I doubt this is the best place to post them (bugs
> list?) but they're relevant to the conversation.

I may be wrong, but I would say that examples "Extension above 4-note
line-top cluster with a 3rd" (page 6, top group) with dot limit 1 and
2 are *not* OK.
In my opinion all examples on page 6 except the very first line have
an unwanted dot on the "B space" below the staff.

Best wishes.
Davide

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


Re: LilyPond logo?

2016-08-05 Thread Davide Liessi
2016-08-05 14:57 GMT+02:00 Simon Albrecht :
> Am 05.08.2016 um 14:40 schrieb Pierre Perol-Schneider:
>> Here's tests with the different proposition.
>> I've added mine at last but I'm not satisfied yet.
>
> Wow, I like yours a lot. As I said in the other sub-thread, we should
> designate the task of finding a logo to a small group of experts, but
> that small group should definitely know about these ideas.

I fully agree with Simon on both his messages, in particular about the
small group of experts.

(But since we are expressing opinions, I like both Malte's and
Pierre's approaches, with a preference to the latter.)

Best wishes.
Davide

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


Automatically change staff instrument name

2016-05-10 Thread Davide Liessi
Hi all.

In the following code, the two short instrument names "A" and "B" of
the second system are put one on top of the other (as I expected).
I can solve the collision manually, e.g. with something similar to the
three commented lines.

Is there a way to automatically change the short instrument names (or
any other property) based on the visible staves?

Thanks for any pointer.
Best wishes.
Davide


\version "2.19.35"
\new StaffGroup \with {
  shortInstrumentName = "A"
  \RemoveEmptyStaves
} <<
  \new Staff { c'1 \break R1 \break c'1 }
  \new Staff \with { shortInstrumentName = "B" } {
c'1
%\once \set StaffGroup.shortInstrumentName =
%\markup { \center-column { "A" "B" } }
%\once \set Staff.shortInstrumentName = ""
c'1 c'1
  }
>>

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


Strange interaction between chord names, \markLengthOn and \fermata

2016-05-06 Thread Davide Liessi
Hi all.
In the following example the mark "some long texts" is placed between
the chord names, thus creating extra space around the bar line;
removing either \fermata, \markLengthOn or accidentals in chord names,
the mark is placed above the chord names and the extra space
disappears.
Can someone explain why this happens?
Best wishes.
Davide

\version "2.19.35"
\score {
  <<
\new ChordNames {
  \chordmode {
cis1
cis1
  }
}
\new Staff {
  \markLengthOn
  c'1\fermata
  \mark "some long text"
  c'1
}
  >>
}

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


Re: Python 3, was Re: ANN: Frescobaldi 2.19.0

2016-04-24 Thread Davide Liessi
2016-04-24 13:46 GMT+02:00 m.tarensk...@zonnet.nl :
> [...] Many python
> syntax can be compatible with both Python2 and Python3 without much effort.
> There are in practice only a few things that are a bit harder. For example
> strings/unicode/binary datatypes. If it's only a limited amount of old code
> that requires some effort to make it compatible with both Py2 and Py3 than
> that might be worth considering. Writing new code using a common subset
> isn't that difficult. That's where the six library can help.

Indeed, Frescobaldi 2 (just to mention the one I know best) has been
supporting both Python 2 and 3 for some months (Frescobaldi 3 however
will require Python 3).

Best wishes.
Davide

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


Re: Python 3, was Re: ANN: Frescobaldi 2.19.0

2016-04-24 Thread Davide Liessi
2016-04-23 13:59 GMT+02:00 Andrew Bernard :
> But lilypond ships its own internal version of python in …lilypond/usr/bin. 
> Is this not to shield lilypond from system versions?

In my experience, the Python interpreter bundled with LilyPond on Mac
is pretty unusable, also for running Python scripts bundled with
LilyPond.
In Frescobaldi we use the system-provided Python for them.

Best wishes.
Davide

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


Re: ANN: Frescobaldi 2.19.0

2016-04-23 Thread Davide Liessi
2016-04-22 7:55 GMT+02:00 Wilbert Berendsen :
> Frescobaldi 2.19.0 has been released into the wild.

Precompiled application for (Mac) OS X are now available.

Download: http://frescobaldi.org/download

Best wishes.
Davide

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


Re: ANN: Frescobaldi 2.19.0

2016-04-23 Thread Davide Liessi
2016-04-22 7:55 GMT+02:00 Wilbert Berendsen :
> Frescobaldi 2.19.0 has been released into the wild.

Precompiled application for (Mac) OS X coming in a few hours.
Best wishes.
Davide

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


Re: ANN: Frescobaldi 2.19.0

2016-04-23 Thread Davide Liessi
2016-04-22 19:08 GMT+02:00 Steve Noland :
> When do you expect it to appear in MacPorts?

I'm updating the Portfiles right now. After I submit them, I expect
the usual 1-3 days for approval.

Best wishes.
Davide

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


Re: platform specific variables

2016-01-19 Thread Davide Liessi
Hi.

Mac OS X 10.6.8, LilyPond 2.19.35

darwin
#f
/private/var/folders/XN/XNp3zsn1G-WeL9c1ocHiuE+++TI/-Tmp-/frescobaldi-XP9NDi/tmp13hDCN
#t
#f

Best wishes.
Davide

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


Re: lilypond-devel on MacPorts

2015-12-28 Thread Davide Liessi
Hi.

> On 12/27/15 12:32 PM, "Jacques Menu"  wrote:
>>MacPorts as I understand it is meant to work on its own. Since it keeps
>>records of what has been installed, their dependencies and where they
>>have been installed, I don¹t think you can tamper with that easily.

Actually ports in MacPorts declare dependencies on TeX Live by path
instead of by port name, so you could actually edit the configuration
file (/opt/local/etc/macports/macports.conf) and prepend your TeX Live
installation to MacPorts' path, but this could be a source of problems
and is not officially supported (i.e. if you have problems you are on
your own).

2015-12-28 2:55 GMT+01:00 Carl Sorensen :
> So I moved to just using LilyDev
> for my development environment.  I do install development releases on my
> Mac and use them with Frescobaldi for my engraving work.

That's what I would advise, too.
I have a lot of software installed with MacPorts (including TeX Live,
by the way), but I install LilyPond manually downloading the app, so
that I can have multiple versions side by side (I rename them to
"LilyPond X.Y.Z.app").
When I tried installing lilypond-devel with MacPorts, it didn't build
on my machine.

Best wishes.
Davide

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


Re: RFC: new location for openLilyLib repository

2015-11-13 Thread Davide Liessi
2015-11-13 6:02 GMT+01:00 Henning Hraban Ramm :
> Why not combine the options? Use GitHub as long as it makes sense, but always 
> keep a mirror on OLL server.

That's my opinion, too: option a), plus mirroring the repositories at
git.openlilylib.org.

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


Re: In and out of polymetric

2015-06-10 Thread Davide Liessi

Dear William,

Il 10/06/15 16.49, William Zeitler ha scritto:

Below is a polymetric snippet (eighth = eighth on the two staves). After
the snippet I would like to continue with "polymetric turned off" --
that is, 6/8 on both staves


you just need to write `\time 6/8` in both staves and write the rest of 
the music.
Removing the Timing_translator from Score and consisting it in Staff 
*allows* you to use different time signatures in the staves, but it does 
not prevent you from using the same time signature in both.



and barlines connecting them.


For this you need to include the staves in a StaffGroup, in a GrandStaff 
or in a PianoStaff.


I'd like to add that it is better to keep the \relative as close as 
possible to the notes.
E.g. if you add more notes to the first staff, using \relative like you 
did you'll very likely need to fix the octave of the first note of the 
second staff.


See below your example with the requested additions and a wiser use of 
\relative.


Best wishes.
Davide


\version "2.18.2"

\layout {
  \context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
  }
  \context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
  }
}

\new StaffGroup <<
  \new Staff {
\time 5/8
\relative g'' {
  g8 d g, a4 |
  g'8 d g, a4 |
  g'8 d g, a c16 bes |
  \time 6/8
  g2. |
}
  }
  \new Staff {
\clef "bass"
\time 4/8
\relative g, {
  g8 d' a' g |
  g,8 d' a' g |
  g,8 d' a' g |
  \time 3/8
  g,8 d' a' |
  \time 6/8
  g,2. |
}
  }
>>

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


  1   2   3   >