Re: tag - midi

2016-12-06 Thread bart deruyter
Hi all,

I'm sorry for this late reply, it has been quite busy here.

here is a minimal example:

altoVoice = \relative c' {

\tag #'A {c'2  g |} \tag #'B {e'4 d  c2 }|
  \bar "|."
}

\score {
  \new Staff \with {
midiInstrument = "piano"
  } { \altoVoice}

  \layout { }
  \midi {
  \keepWithTag #'A \altoVoice }
  \midi {
   \keepWithTag #'B \altoVoice }
}

As expected, I get two midi files, but they both contain the music of the
entire score. The midi blocks don't follow the \keepWithTag rules.

What I'd like to see is one score, two different midi files, each
containing only the music enclosed in the tags.

is something similar possible? Maybe I forgot some essential extra code...

Using different score blocks for each part seems a bit much to get one pdf
for the full score and chopped midi files.


grtz,
Bart

http://www.bartart3d.be/
On Twitter 
On Identi.ca 
On Google+ 

2016-12-04 15:18 GMT+01:00 :

> Here is a short example of how I might use tags to produce a better midi
> output:
>
> \version "2.19.51"
> \language "english"
>
> music = \relative {
>   \tag #'layout { d''2. \trill }
>   \tag #'midi   { \repeat unfold 7 { e32 d } c d }
>   c4 }
>
> \score {
>   \keepWithTag #'layout
>   \new Staff { \music }
>   \layout {}
> }
>
> \score {
>   \keepWithTag #'midi
>   \new Staff { \music }
>   \midi {
> \tempo 4 = 100
>   }
> }
>
> I use two different \scores with the \tagWithKeep command at the score
> level.  Works for me.
>
>
> ---
> Knute Snortum
> (via Gmail)
>
> On Fri, Dec 2, 2016 at 2:40 PM, Darren Modra  wrote:
>
>> Hi Bart,
>> I think you'll find that if you don't save your work in freescobaldi
>> before running it, it will put the PDF and midi files into a temporary
>> folder.
>>
>> Cheers,
>> DM
>>
>> --
>> This message may include free added typos, which you may use for your
>> entertainment, courtesy of Apple autocorrect.
>>
>> On 3 Dec. 2016, at 07:23, bart deruyter - bart.deruy...@gmail.com
>> 
>> wrote:
>>
>> Sorry for this, but it does not work, I made another mistake, applied the
>> tag to the score too.. so my question does still stand.
>>
>>
>> http://www.bartart3d.be/
>> On Twitter 
>> On Identi.ca 
>> On Google+ 
>>
>> 2016-12-02 21:51 GMT+01:00 bart deruyter :
>>
>>> Hi all,
>>> disregard this mail.. it does work.. :-)
>>> What made it work is : save the file first. Apparently frescobaldi
>>> re-renders unsaved work into pdf's, but not midi-files...
>>>
>>> thx anyway.
>>>
>>> Bart
>>>
>>> http://www.bartart3d.be/
>>> On Twitter 
>>> On Identi.ca 
>>> On Google+ 
>>>
>>> 2016-12-02 21:44 GMT+01:00 bart deruyter :
>>>
 Hi all,

 I did some experimentation with the \tag command. It is great for
 different editions of printed music of course, but I tried it in the midi
 block without luck.

 I'm trying to create some music dictation exercises and want to
 separate the midi file for the student in parts of each 2 bars, so I
 enclosed each two bars in separate tags, like this:

 \tag #'A {c'2 | g |} \tag #'B {e'4 d | c2 }|

 hoping it would work if I'd write something like this int he midi
 block:

 \midi { \keepWithTag #'A \altoVoice }

 But no luck.. is it a bug, or simply not implemented (which is my
 guess)?
 And is there a possible solution to get the wanted result?

 thx,
 Bart

 http://www.bartart3d.be/
 On Twitter 
 On Identi.ca 
 On Google+ 

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


Small typo on LilyPond.org

2016-12-06 Thread SoundsFromSound
Just wanted to give you guys a little heads up, I noticed a small typo on the
LilyPond home page at the bottom under "News":


LilyPond 2.19.52 released - December 40, 2016 <-- 40, instead of 04
Two LilyPond projects in Google Summer of Code 2016 - April 23, 2016
LilyPond 2.18.2 released! - March 23, 2014
LilyPond 2.18.0 released! - December 29, 2013 

In case someone can fix it, not the end of the world but figured I'd share
:)





-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Small-typo-on-LilyPond-org-tp197725.html
Sent from the User mailing list archive at Nabble.com.

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


Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel

On 2016-12-07 00:10, Thomas Morley wrote:

2016-12-06 23:41 GMT+01:00 Alexander Kobel :

On 2016-12-06 23:28, Simon Albrecht wrote:


On 06.12.2016 23:00, Alexander Kobel wrote:


replace the LyricHyphen "elementary stencil" by a properly printed
hyphen from the LyricText font



A very good request :-)




Oh, right. Yeah, I know that guy. Horrible person - always annoys the hell
out of me. ;-)

Time flies. Just imagine how I'll be in a few years: when it won't take me
five years to forget my questions and answers anymore, but only five
minutes... ;-)



rofl

Anyway, I tried some coding resulting in the attached image.
I should probably work it out (right now it's only a test _if_ it's
possible), maybe I give it a try next weekend.


Wow, that's very promising. Looking forward!


Cheers,
Alexander

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


Fixing LSR 888: center-on-words ignoring punctuation

2016-12-06 Thread Alexander Kobel

Hi all,

yet another semi-feature request where I'm running out of knowledge...
I happily used LSR 888 (center lyrics without taking punctuation into 
account) for years and only now found out that the alignment is off 
under certain circumstances: The default algorithm seems to align lyrics 
on the center of the note*head* of the associated voice. Which seems the 
right thing to do. However, center-on-words aligns on the center of the 
*entire note* - in particular, this yields different results on quavers 
with stems up and "outward flags". At least, neither dots nor 
accidentals are taken into account...


Even more ugly, the alignment is totally off on chords with two adjacent 
notes (shifting one note). I know that this should be a forbidden 
situation for vocal music, but sometimes there is a reason for writing 
such chords instead of two separate voices (e.g., soprano and alto 
notated on a common staff in a homorhythmic piece, with one of the 
voices splitting for a cluster on just a few notes).
In such a rare case, I do not like the default algorithm's choices 
either (and I'd prefer alignment on the center of the noteheads of the 
chord); but center-on-words does even /way/ worse.


I attach a "test case" (including a full copy of the core of 
http://lsr.di.unimi.it/LSR/Snippet?id=888), where one would expect 
center-on-words to do exactly nothing, but you can notice the slight 
offsets on the "nonius scale" of lyrics.


Anyone got an idea where to start to fix that? I think one would have to 
figure how to get the note-column-extent without flags; but I have no 
clue how to approach that.



Thanks in advance,
Alexander
\version "2.18.0"  %% and higher

%% http://lsr.di.unimi.it/LSR/Item?id=888
%% [...]

#(define space-set
  (list->char-set 
(string->list "—.?-;,:“”‘’–— */()[]{}|<>!`~&…")))

#(define (width grob text)
  (let* ((X-extent 
   (ly:stencil-extent (grob-interpret-markup grob text) X)))
   (if (interval-empty? X-extent)
   0 
   (cdr X-extent

#(define (center-on-word grob)
  (let* ((text (ly:grob-property-data grob 'text))
 (syllable (markup->string text))
 (word-position
   (if (string-skip syllable space-set)
   (string-skip syllable space-set)
   0))
 (word-end
   (if (string-skip-right syllable space-set)
   (+ (string-skip-right syllable space-set) 1)
   (string-length syllable)))
 (preword (substring syllable 0 word-position))
 (word (substring syllable word-position word-end))
 (preword-width (width grob preword))
 (word-width (width grob (if (string-null? syllable) text word)))
 (note-column (ly:grob-parent grob X))
 (note-column-extent (ly:grob-extent note-column note-column X))
 (note-column-width (interval-length note-column-extent)))
 
  (- 
(*
  (/ (- note-column-width word-width) 2)  
  (1+ (ly:grob-property-data grob 'self-alignment-X)))
preword-width)))

melodies = \relative c'' {
  \autoBeamOff
  g8 a b c
  << { \voiceTwo c } \new Voice { \voiceOne d8 } >>
  << { \voiceOne c } \new Voice { \voiceTwo d8 } >>
  << { \voiceTwo c } \new Voice { \voiceOne e8 } >>
  << { \voiceOne c } \new Voice { \voiceTwo e8 } >>
  \oneVoice
  8.*2/3   
}

melody = \relative c'' {
  \autoBeamOff
  g8 a b c
  \voiceTwo c
  \voiceOne c
  \voiceTwo c
  \voiceOne c
  \oneVoice
  8.*2/3   
}

lyr = \lyricmode { \repeat unfold 16 "|" }

\score {
  <<
\new Staff << \new Voice = "cows" \melodies >>
\new Lyrics \with { \override LyricText.X-offset = #center-on-word } \lyricsto "cows" { \set stanza = "cow" \lyr }
\new Staff << \new Voice = "ncows" \transpose c c' \melodies >>
\new Lyrics \lyricsto "ncows" { \set stanza = "default" \lyr }
\new Staff << \new Voice = "cow^8s" \transpose c c' \melodies >>
\new Lyrics \with { \override LyricText.X-offset = #center-on-word } \lyricsto "cow^8s" { \set stanza = "cow" \lyr }
\new Staff << \new Voice = "cow" \melody >>
\new Lyrics \with { \override LyricText.X-offset = #center-on-word } \lyricsto "cow" { \set stanza = "cow" \lyr }
\new Staff << \new Voice = "ncow" \transpose c c' \melody >>
\new Lyrics \lyricsto "ncow" { \set stanza = "default" \lyr }
\new Staff << \new Voice = "cow^8" \transpose c c' \melody >>
\new Lyrics \with { \override LyricText.X-offset = #center-on-word } \lyricsto "cow^8" { \set stanza = "cow" \lyr }
  >>
  \layout {
\context {
  \Score
  % just for easier comparison
  proportionalNotationDuration = #(ly:make-moment 1 16)
  \override SpacingSpanner.strict-note-spacing = ##t
}
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Thomas Morley
2016-12-06 23:41 GMT+01:00 Alexander Kobel :
> On 2016-12-06 23:28, Simon Albrecht wrote:
>>
>> On 06.12.2016 23:00, Alexander Kobel wrote:
>>>
>>> replace the LyricHyphen "elementary stencil" by a properly printed
>>> hyphen from the LyricText font
>>
>>
>> A very good request :-)
>> 
>
>
> Oh, right. Yeah, I know that guy. Horrible person - always annoys the hell
> out of me. ;-)
>
> Time flies. Just imagine how I'll be in a few years: when it won't take me
> five years to forget my questions and answers anymore, but only five
> minutes... ;-)


rofl

Anyway, I tried some coding resulting in the attached image.
I should probably work it out (right now it's only a test _if_ it's
possible), maybe I give it a try next weekend.

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


Re: Glissando line - I can't see it

2016-12-06 Thread SoundsFromSound
Simon Albrecht-2 wrote
> On 06.12.2016 16:03, Ben Lemon wrote:
>> I highly suggest reading the
>> great learning material that is on the LilyPond website. It's very
>> in-depth
>> and a great introduction.
>> http://lilypond.org/doc/v2.18/Documentation/notation/spanners
> 
> Though the Notation Reference is a really huge beast and it’s not 
> necessary to read it entirely. Instead, just use it to look things up if 
> you get across them (e.g. using the Index), and read the Learning Manual 
> for starters. That, however should actually be read entirely, and 
> thoroughly – it will save you a lot of time getting the grips with 
> LilyPond, and also explain how to use the other manuals.
> 
> Best, Simon
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Simon, that's what I meant: the learning manual, but I referenced the
Notation manual in my link just because of the context of the question
itself. Glissando lines, etc. Sorry for the confusion. Thought both manuals
made sense how I described it.





-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Glissando-line-I-can-t-see-it-tp197692p197721.html
Sent from the User mailing list archive at Nabble.com.

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


Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel

On 2016-12-06 23:28, Simon Albrecht wrote:

On 06.12.2016 23:00, Alexander Kobel wrote:

replace the LyricHyphen "elementary stencil" by a properly printed
hyphen from the LyricText font


A very good request :-)



Oh, right. Yeah, I know that guy. Horrible person - always annoys the 
hell out of me. ;-)


Time flies. Just imagine how I'll be in a few years: when it won't take 
me five years to forget my questions and answers anymore, but only five 
minutes... ;-)



Cheers,
Alexander

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


Re: Glissando line - I can't see it

2016-12-06 Thread Simon Albrecht

On 06.12.2016 16:03, Ben Lemon wrote:

I highly suggest reading the
great learning material that is on the LilyPond website. It's very in-depth
and a great introduction.
http://lilypond.org/doc/v2.18/Documentation/notation/spanners


Though the Notation Reference is a really huge beast and it’s not 
necessary to read it entirely. Instead, just use it to look things up if 
you get across them (e.g. using the Index), and read the Learning Manual 
for starters. That, however should actually be read entirely, and 
thoroughly – it will save you a lot of time getting the grips with 
LilyPond, and also explain how to use the other manuals.


Best, Simon

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


Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Simon Albrecht

On 06.12.2016 23:00, Alexander Kobel wrote:
replace the LyricHyphen "elementary stencil" by a properly printed 
hyphen from the LyricText font


A very good request :-) 



Best, Simon

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


Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel

Hi Abraham,

On 2016-12-06 23:14, tisimst wrote:

Alexander,
[...]
I failed with
   \override LyricHyphen.text = #"-"
   \override LyricHyphen.stencil = #lyric-text::print
trying to replace the LyricHyphen "elementary stencil" by a properly
printed hyphen from the LyricText font.
[...]

I've looked into this before, but it requires a complete re-write of the
stencil function because the "elementary stencil" is actually a single
dashed line spanner rather than a bunch of line segments. I haven't been
able to come up with a working solution, though.


Duh, that's what I was afraid to hear. Can't say I'm surprised...
I know that the LyricHyphen features much more than a simple glyph 
internally, including shortening the hyphens (which I personally 
dislike, and rather leave it out, but that's a different story). Hence I 
assumed that it's not as simple as just resetting the stencil, but I 
rather hoped that there is a single place to inject it in the spanner. 
Well, probably no luck. Then I'll have to resort to less extraordinary 
fonts and adjusting the height and extent of the LyricHyphen...



Thanks,
Alexander

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


Re: exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread tisimst
Alexander,

On Tue, Dec 6, 2016 at 2:59 PM, Alexander Kobel-2 [via Lilypond] <
ml-node+s1069038n197715...@n5.nabble.com> wrote:

> Dear all,
>
> every now and then, I use a font for lyrics where the hyphen is quite
> different from Lilypond's LyricHyphen (in particular, sometimes it's
> slightly slanted). That combined with lyrics where a hyphen has to
> appear looks, well, ugly. (Recent example: a repetition of part of a
> word that has to be written as { ro -- sen-, ro -- sen -- rot }.)
>
> I failed with
>\override LyricHyphen.text = #"-"
>\override LyricHyphen.stencil = #lyric-text::print
> trying to replace the LyricHyphen "elementary stencil" by a properly
> printed hyphen from the LyricText font. Did anyone ever successfully try
> to do that, or has an idea how to approach such a tweak?
>

I've looked into this before, but it requires a complete re-write of the
stencil function because the "elementary stencil" is actually a single
dashed line spanner rather than a bunch of line segments. I haven't been
able to come up with a working solution, though.

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/exchange-LyricHyphen-with-a-proper-hyphen-tp197715p197716.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


exchange LyricHyphen with a "proper" hyphen

2016-12-06 Thread Alexander Kobel

Dear all,

every now and then, I use a font for lyrics where the hyphen is quite 
different from Lilypond's LyricHyphen (in particular, sometimes it's 
slightly slanted). That combined with lyrics where a hyphen has to 
appear looks, well, ugly. (Recent example: a repetition of part of a 
word that has to be written as { ro -- sen-, ro -- sen -- rot }.)


I failed with
  \override LyricHyphen.text = #"-"
  \override LyricHyphen.stencil = #lyric-text::print
trying to replace the LyricHyphen "elementary stencil" by a properly 
printed hyphen from the LyricText font. Did anyone ever successfully try 
to do that, or has an idea how to approach such a tweak?



Thanks in advance,
Alexander

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


[Resurrection] \accidentalStyle for common choir notation

2016-12-06 Thread Alexander Kobel

Dear all,

I'd like to lift the thread "\accidentalStyle for common choir notation" 
from June-July out of the grave. Unfortunately, I don't have it in my 
inbox anymore, so I need to refer to the horribly url'ed archive


http://lilypond.1069038.n5.nabble.com/accidentalStyle-for-common-choir-notation-td191797.html#a192980
In particular, I'd like to gain new insight why Abraham's idea did not 
work out (also, not for me over here).


Summary: I want to use the piano accidental style in a ChoirStaff, but 
it doesn't work.


My contribution to the rationale (and I'm surprised that this hasn't 
been mentioned in the earlier discussion): Pieces might be pure a 
cappella, but conductors need to lead rehearsals every once in a while, 
and the might want to use the piano for that. And they're elected to 
lead, not to read:

  https://www.youtube.com/watch?v=6zQ55S-DJsM
And there no. 3 of 5 possible options is not always correct... ;-)


Any hints?


Cheers,
Alexander

___
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 Graham Percival
On Tue, Dec 06, 2016 at 07:25:44PM +0100, Mojca Miklavec wrote:
> Dear Graham,
> 
> On 6 December 2016 at 19:01, Graham Percival wrote:
> > This is compiled and uploaded to:
> > http://lilypond.org/downloads/gub-sources/osx-lilypad-universal/osx-lilypad-universal-0.6.3.tar.gz
> > and then GUB downloads that, inserts the cross-compiled
> > command-line binary, and packages it.
> 
> I can luckily skip that part :)
> Including instructions to fetch Python 2.6.
> (I really wonder why LilyPond nowadays ships with Python 2.6.)

Changing it to something else would require updating all our
scripts, cross-compiling the newer version of python on all 8 (or
so) architectures, and testing the whole thing.  This is a
non-trivial undertaking, especially since (ideally) the end result
is "things work exactly the way they did before spending 100 hours
on this task".

That's why technical debt is so hard to combat: it takes a lot of
effort, and there's usually no immediate payoff.  Sure, it would
help things in 1, 2, 5, or 10 years down the road.

> This is off-topic, but the idea of a package manager is usually to
> compile natively. I'm almost sure that Debian doesn't fetch your
> binaries either.

That is incorrect; Debian most definitely fetches pre-compiled
binaries.  Out of all the major Linux distributions, only gentoo
fetches source code and compiles it by default.

> > then adds some sort of GUI shell or editor.
> 
> Redesigning the GUI for LilyPond is something that would likely
> require more effort that I'm personally willing to spend for this.

Fair enough.

Cheers,
- Graham

___
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 Mojca Miklavec
Dear Graham,

On 6 December 2016 at 19:01, Graham Percival wrote:
> On Tue, Dec 06, 2016 at 08:44:58AM +0100, Mojca Miklavec wrote:
>> I found
>> http://lilypond.org/doc/v2.18/Documentation/contributor-big-page
>> (didn't read it all) and only suspect that some logic might live in
>> GUB, but I'm pretty much lost for the moment.
>
> I am familiar with the process as of 4 years ago; it may have
> changed since then.  Much of it is in GUB, but the actual code for
> the editor is here:
> https://github.com/gperciva/lilypad

Thank you, that's exactly what I was looking for wrt. the GUI.

> This is compiled and uploaded to:
> http://lilypond.org/downloads/gub-sources/osx-lilypad-universal/osx-lilypad-universal-0.6.3.tar.gz
> and then GUB downloads that, inserts the cross-compiled
> command-line binary, and packages it.

I can luckily skip that part :)
Including instructions to fetch Python 2.6.
(I really wonder why LilyPond nowadays ships with Python 2.6.)

>> 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.
>
> As others have commented, the text editor included in the
> LilyPond.app is rather basic.

Yes, I'm aware.

> In addition, this whole process was
> created a decade ago.  If I were interested in the lilypond
> experience on OSX, I'd start looking at a new implementation:
> something that takes the compiled lilypond package (which I
> imagine can be easily done in homebrew or some other package
> manager),

This is off-topic, but the idea of a package manager is usually to
compile natively. I'm almost sure that Debian doesn't fetch your
binaries either.

But yes, outside of a package manager it would make sense to take that binary.

> then adds some sort of GUI shell or editor.

Redesigning the GUI for LilyPond is something that would likely
require more effort that I'm personally willing to spend for this. OS
X requires some kind of a GUI when distributing user-friendly apps;
with package managers this can be handled differently.

Mojca

___
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 Mojca Miklavec
On 6 December 2016 at 19:01, Tim McNamara wrote:
>> On Dec 6, 2016, at 5:46 AM, Mojca Miklavec wrote:
>>
>>(b.2) I would actually like to know how to change the behaviour,
>> so that my favourite text editor opens rather than LilyPond.app.
>
> Wait, is all you want to do is to be able to assign *.ly files to open with a 
> specific text editor

No, that's not all.

> if you double-click on them?  On Macs that’s settable in the Finder with no 
> need to build anything from source.
>
> Right-click or Control-click on the *.ly file.  Select “Open with…” from the 
> popup menu that appears.  Select your desired application.  When it asks if 
> you want all *.ly files mapped to that application, click “yes.”  Should be 
> done.

Actually I already did that. It's not about double-clicking on the
*.ly file. It's about opening textedit:// hyperlinks and doing the
above doesn't solve the problem. The answers by Sven and Davide were
the most accurate ones, but it seems I'll have to package duti
(http://duti.org/) first :) before I can test.

Mojca

___
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 Graham Percival
On Tue, Dec 06, 2016 at 08:44:58AM +0100, Mojca Miklavec wrote:
> I found
> http://lilypond.org/doc/v2.18/Documentation/contributor-big-page
> (didn't read it all) and only suspect that some logic might live in
> GUB, but I'm pretty much lost for the moment.

I am familiar with the process as of 4 years ago; it may have
changed since then.  Much of it is in GUB, but the actual code for
the editor is here:
https://github.com/gperciva/lilypad

This is compiled and uploaded to:
http://lilypond.org/downloads/gub-sources/osx-lilypad-universal/osx-lilypad-universal-0.6.3.tar.gz
and then GUB downloads that, inserts the cross-compiled
command-line binary, and packages it.

> 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.

As others have commented, the text editor included in the
LilyPond.app is rather basic.  In addition, this whole process was
created a decade ago.  If I were interested in the lilypond
experience on OSX, I'd start looking at a new implementation:
something that takes the compiled lilypond package (which I
imagine can be easily done in homebrew or some other package
manager), then adds some sort of GUI shell or editor.

Cheers,
- Graham

___
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 Tim McNamara

> On Dec 6, 2016, at 5:46 AM, Mojca Miklavec  wrote:
> 
>(b.2) I would actually like to know how to change the behaviour,
> so that my favourite text editor opens rather than LilyPond.app.

Wait, is all you want to do is to be able to assign *.ly files to open with a 
specific text editor if you double-click on them?  On Macs that’s settable in 
the Finder with no need to build anything from source.

Right-click or Control-click on the *.ly file.  Select “Open with…” from the 
popup menu that appears.  Select your desired application.  When it asks if you 
want all *.ly files mapped to that application, click “yes.”  Should be done.
___
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 David Kastrup
Werner LEMBERG  writes:

>>> Can someone please provide me a hint about how to build
>>> LilyPond.app on macOS (natively, without any cross-compiling,
>>> ideally without compiling any dependencies like ghostscript etc.)?
>> 
>> It is not meant to be compiled natively.
>
> This is not true.  However, we rely heavily on the GNU stuff (in
> particular the gcc compiler), which is not native to MacOS.

That is a mischaracterization.  We try _not_ relying on GCC specific
stuff.  At the current point of time, the last Clang++ problems were
because of Clang not being standard-compliant, not because of us using
GCC-specific code.  I decided not to backpedal on the responsible
changes here because

a) get a grip, Clang++.  Really.
b) it was a change considerably simplifying code and maintenance.

With other changes, we have removed GCCisms and worked around Clang++
problems.

Nevertheless, MacOSX as a build environment sucks, and it doesn't
particularly help that the resulting binaries may not be distributed as
free software under the GPLv3 (I forgot the responsible conditions for
the MacOSX SDKs).  So it's strictly only useful for people compiling
themselves and they can't put the results on a server or so.

I am not even completely sure that our cross-building environment is
clean: one might have to forego the Cocoa libraries and instead compile
native to Darwin.  LilyPond may be salvageable in that manner.
Frescobaldi, as a graphical application, likely not.

-- 
David Kastrup

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


Re: Glissando line - I can't see it

2016-12-06 Thread Klaus Blum
Hi Claudio, 


clapana wrote
> I suppose the glissando line actually is there but there isn't enough
> space
> to show it properly.

you can manually stretch the glissando line like this: 

% --
\version "2.18.2"
{
  \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods
  \override Glissando.minimum-length = #8
  \override Glissando.thickness = #3
  r8 16\f (\glissando) ( ) r8
r2-\fermata
}
% --

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Glissando-line-I-can-t-see-it-tp197692p197703.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Glissando line - I can't see it

2016-12-06 Thread clapana
Great!
Thank you so much for the help :)

2016-12-06 16:03 GMT+01:00 SoundsFromSound [via Lilypond] <
ml-node+s1069038n197701...@n5.nabble.com>:

> clapana wrote
> Yes, I've read that snippet but when I simply wrote \glissando on other
> parts, it worked, like here:
>
> {
> \glissando( )
> }
>
> I suppose the glissando line actually is there but there isn't enough
> space
> to show it properly.
> Anyway I'll check the voices part on the manual, thanks!
>
> Hello,
>
> Correct - if there is not enough space, the gliss will not show but that
> doesn't mean it's not "there". :)
> Terms like "minimum length" and whatnot are things you'll come across a
> lot, as you tweak your scores but as a beginner, I highly suggest reading
> the great learning material that is on the LilyPond website. It's very
> in-depth and a great introduction.
> http://lilypond.org/doc/v2.18/Documentation/notation/spanners
> (for example)
>
> I've made some videos too if you prefer visual help, here's a link to some
> LilyPond beginner tutorials if you're interested:
>
> https://www.youtube.com/playlist?list=PLHi8BvxILUV6x9FqEmZiYrEj6VMGmTKjt
>
> Welcome to LilyPond :)
> composer | sound designer LilyPond Tutorials (for beginners) -->
> http://bit.ly/bcl-lilypond
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://lilypond.1069038.n5.nabble.com/Glissando-line-I-
> can-t-see-it-tp197692p197701.html
> To unsubscribe from Glissando line - I can't see it, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Glissando-line-I-can-t-see-it-tp197692p197702.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Glissando line - I can't see it

2016-12-06 Thread clapana
Hi everyone,
I'm completely new of Lilypond and I was copying some music I wrote in
Sibelius.
I have a glissato but I can't manage to see it. Here is my code:

\version "2.18.2"
{
r8 16\f (\glissando) ( ) r8 r2-\fermata 
}

This is what I'd want to have:
 

but this is what I have in Lylipond
 

Thanks in advance!

Claudio



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Glissando-line-I-can-t-see-it-tp197692.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Glissando line - I can't see it

2016-12-06 Thread SoundsFromSound
clapana wrote
> Yes, I've read that snippet but when I simply wrote \glissando on other
> parts, it worked, like here:
> 
> {
> ges\harmonic bes''\glissando( ees\harmonic g'')
> }
> 
> I suppose the glissando line actually is there but there isn't enough
> space
> to show it properly.
> Anyway I'll check the voices part on the manual, thanks!

Hello,

Correct - if there is not enough space, the gliss will not show but that
doesn't mean it's not "there". :)
Terms like "minimum length" and whatnot are things you'll come across a lot,
as you tweak your scores but as a beginner, I highly suggest reading the
great learning material that is on the LilyPond website. It's very in-depth
and a great introduction.
http://lilypond.org/doc/v2.18/Documentation/notation/spanners
(for example)

I've made some videos too if you prefer visual help, here's a link to some
LilyPond beginner tutorials if you're interested:

https://www.youtube.com/playlist?list=PLHi8BvxILUV6x9FqEmZiYrEj6VMGmTKjt

Welcome to LilyPond :)




-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Glissando-line-I-can-t-see-it-tp197692p197701.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Glissando line - I can't see it

2016-12-06 Thread clapana
Yes, I've read that snippet but when I simply wrote \glissando on other
parts, it worked, like here:

{
\glissando( )
}

I suppose the glissando line actually is there but there isn't enough space
to show it properly.
Anyway I'll check the voices part on the manual, thanks!

2016-12-06 15:42 GMT+01:00 SoundsFromSound [via Lilypond] <
ml-node+s1069038n197699...@n5.nabble.com>:

> clapana wrote
> Hi everyone,
> I'm completely new of Lilypond and I was copying some music I wrote in
> Sibelius.
> I have a glissato but I can't manage to see it. Here is my code:
>
> \version "2.18.2"
> {
> r8 16\f (\glissando) ( ) r8
> r2-\fermata
> }
>
> This is what I'd want to have:
>
>
> but this is what I have in Lylipond
>
>
> Thanks in advance!
>
> Claudio
>
> I believe you need to consider what voices actually do the gliss because
> visually things may look like they are connected but trying to gliss from
> between voices (not the same voice) require a little more attention.
>
> First snippet here shows what I am talking about:
> http://lsr.di.unimi.it/LSR/Search?q=glissando
>
> Make sure you read the LilyPond learning manual about voices :) It will
> help you a lot.
>
> composer | sound designer LilyPond Tutorials (for beginners) -->
> http://bit.ly/bcl-lilypond
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://lilypond.1069038.n5.nabble.com/Glissando-line-I-
> can-t-see-it-tp197692p197699.html
> To unsubscribe from Glissando line - I can't see it, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Glissando-line-I-can-t-see-it-tp197692p197700.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Glissando line - I can't see it

2016-12-06 Thread SoundsFromSound
clapana wrote
> Hi everyone,
> I'm completely new of Lilypond and I was copying some music I wrote in
> Sibelius.
> I have a glissato but I can't manage to see it. Here is my code:
> 
> \version "2.18.2"
> {
> r8 
> 
> 16\f (\glissando
> 
> ) 
> 
> ( 
> 
> ) r8 r2-\fermata 
> }
> 
> This is what I'd want to have:
 
> 
> but this is what I have in Lylipond
 
> 
> Thanks in advance!
> 
> Claudio

I believe you need to consider what voices actually do the gliss because
visually things may look like they are connected but trying to gliss from
between voices (not the same voice) require a little more attention.

First snippet here shows what I am talking about:
http://lsr.di.unimi.it/LSR/Search?q=glissando

Make sure you read the LilyPond learning manual about voices :) It will help
you a lot.





-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Glissando-line-I-can-t-see-it-tp197692p197699.html
Sent from the User mailing list archive at Nabble.com.

___
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 Sven Axelsson
On 6 December 2016 at 14:30, Mojca Miklavec  wrote:

> On 6 December 2016 at 13:38, Sven Axelsson wrote:
> > On 6 December 2016 at 12:46, Mojca Miklavec wrote:
> >>
> >> Dear Davide,
> >>
> >> (b) See the attached screenshot. If I click, I'm transferred to
> >> LilyPond.app and I end up in the correct line and column to fix my
> >> mistakes. With some notes:
> >>
> >> (b.1) Usually this works. With the example in the screenshot with
> >> non-ascii characters in the file name this is broken however and
> >> LilyPond.app only opens a generic sample document. There must be a bug
> >> somewhere, but I'm not sure where exactly.
> >>
> >> (b.2) I would actually like to know how to change the behaviour,
> >> so that my favourite text editor opens rather than LilyPond.app.
> >
> > 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.
>

Unfortunately it seems like that plist does not contain the whole truth.
Try `locate lsregister` -dump > lsinfo.txt and search for LilyPond. That
shows (among lots of other things) the following:

claim id:52580
name:  text editor via url
rank:  Default
roles: Editor
flags: url-type
icon:
bindings:  textedit:

Changing the url handler is probably easiest done with duti.

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to extract few measures from S A T B + piano score all staff at the same time

2016-12-06 Thread karl
MING TSANG:
> 1. Is it possible to extract measure 89 to 95 for all staff that
> will generate pdf and midi as well?2. the pdf retain bar numbers
> 89 to 96.
> I can comment out measures 1 to 88 and 96 to 110. But I have to
> do it on every staff. It will be wonderful if just say
> \extractmm 89 95 inclusive and the measures 89 to 96 are extracted
> from all staff. 

Read page 512 ("3.4.2 Skipping corrected music") of:

 http://www.lilypond.org/doc/v2.19/Documentation/notation.pdf

Example:

get IIIc.ly, score_glb.ily, IIIc.ily, score_ps.ily, score_midi.ily from

 http://turkos.aspodata.se/git/musik/WAMozart/requiem/

edit IIIc.ly to:

\version "2.19.0"
%{
\header {
  title = "Sequenz"
  subtitle = "Rex tremendæ"
  composer = "W.A. Mozart"
  arranger = "Süßmayr"
}
%}
\include "score_glb.ily"
\include "IIIc.ily"
PB = {
%  s1*17 \break
%%% this is added
\set Score.skipTypesetting = ##t
s1*4
\set Score.skipTypesetting = ##f
s1*5
\set Score.skipTypesetting = ##t
%%% up to here
}
\include "score_ps.ily"
\include "score_midi.ily"

build your ps/pdf file and compare to page 18 of
 http://turkos.aspodata.se/choir/osthammar/mozart/requiem.pdf

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



___
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 Mojca Miklavec
On 6 December 2016 at 13:38, Sven Axelsson wrote:
> On 6 December 2016 at 12:46, Mojca Miklavec wrote:
>>
>> Dear Davide,
>>
>> (b) See the attached screenshot. If I click, I'm transferred to
>> LilyPond.app and I end up in the correct line and column to fix my
>> mistakes. With some notes:
>>
>> (b.1) Usually this works. With the example in the screenshot with
>> non-ascii characters in the file name this is broken however and
>> LilyPond.app only opens a generic sample document. There must be a bug
>> somewhere, but I'm not sure where exactly.
>>
>> (b.2) I would actually like to know how to change the behaviour,
>> so that my favourite text editor opens rather than LilyPond.app.
>
> 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.

Mojca

___
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 Sven Axelsson
On 6 December 2016 at 12:46, Mojca Miklavec  wrote:

> Dear Davide,


> (b) See the attached screenshot. If I click, I'm transferred to
> LilyPond.app and I end up in the correct line and column to fix my
> mistakes. With some notes:
>
> (b.1) Usually this works. With the example in the screenshot with
> non-ascii characters in the file name this is broken however and
> LilyPond.app only opens a generic sample document. There must be a bug
> somewhere, but I'm not sure where exactly.
>
> (b.2) I would actually like to know how to change the behaviour,
> so that my favourite text editor opens rather than LilyPond.app.
>

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


-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


how to extract few measures from S A T B + piano score all staff at the same time

2016-12-06 Thread MING TSANG



  
Dear lilyponders,
I don't know how to do MMR to demonstrate what I would like to see, so I 
enclose a full score.
1. Is it possible to extract measure 89 to 95 for all staff that will generate 
pdf and midi as well?2. the pdf retain bar numbers 89 to 96.
I can comment out measures 1 to 88 and 96 to 110. But I have to do it on every 
staff. It will be wonderful if just say \extractmm 89 95 inclusive and the 
measures 89 to 96 are extracted from all staff. 
Any help is welcome.Immanuel,Ming.

   \version "2.19.49"
\language "english"
%tested: \version "2.17.97"
\version "2.18.2"

% lilypond 2.14.x:
% Allmost copied from .../scm/translation-functions.scm:
% --> added »-approx« to the function names of
% »format-metronome-markup« and »metronome-markup«
% --> replaced "=" with "≈" (approx. instead of equal)
%

%%
% START of my personal include file 'tempo-approx.ly'
%%

#(define-public (format-metronome-markup-approx event context)
  (let ((eq-sym-def (ly:context-property context 'tempoEquationText)) ; added option
(hide-paren (eq? #t (ly:context-property context 'tempoHideParenthesis))) ; added option
(num-color (ly:context-property context 'tempoNumberColor #f)); added option
(hide-note (ly:context-property context 'tempoHideNote #f))
	(text (ly:event-property event 'text))
	(dur (ly:event-property event 'tempo-unit))
	(count (ly:event-property event 'metronome-count)))
(metronome-markup-approx text dur count hide-note eq-sym-def hide-paren num-color)))

#(define-public (metronome-markup-approx text dur count hide-note eq-sym-def hide-paren col)
  (let* ((note-mark (if (and (not hide-note) (ly:duration? dur))
			(make-smaller-markup
			 (make-note-by-number-markup (ly:duration-log dur)
		 (ly:duration-dot-count dur)
		 1))
			#f))
	 (count-markup (cond ((number? count)
			  (if (> count 0)
  (make-simple-markup (number->string count))
  #f))
			 ((pair? count)
			  (make-concat-markup
			   (list
(make-simple-markup (number->string (car count)))
(make-simple-markup (ly:wide-char->utf-8 #x2009))
(make-simple-markup (ly:wide-char->utf-8 #x2013))
(make-simple-markup (ly:wide-char->utf-8 #x2009))
(make-simple-markup (number->string (cdr count))
			 (else #f)))
 (note-markup (if (and (not hide-note) count-markup)
			  (make-concat-markup
			   (list
			(make-general-align-markup Y DOWN note-mark)
			(make-simple-markup " ")
			(make-simple-markup (if (string? eq-sym-def)
 eq-sym-def
 (ly:wide-char->utf-8 #x2248)))
			(make-simple-markup " ")
			(if (eq? col #f)
 count-markup
 (make-with-color-markup col count-markup
			  #f))
 (text-markup (if (not (null? text))
			  (make-bold-markup text)
			  #f)))
(if text-markup
	(if (and note-markup (not hide-note))
	(make-line-markup (list text-markup
   (if hide-paren
note-markup
(make-concat-markup
 (list (make-simple-markup "(")
	   note-markup
	   (make-simple-markup ")"))
	(make-line-markup (list text-markup)))
	(if note-markup
	(make-line-markup (list note-markup))
	(make-null-markup)



% Make this new formatter the default:
\layout {
  \context {
\Score
metronomeMarkFormatter = #format-metronome-markup-approx
  }
}

#(define (define-translator-property symbol type? description)
  (if (not (and (symbol? symbol)
	(procedure? type?)
	(string? description)))
  (ly:error "error in call of define-translator-property"))
  (if (not (equal? (object-property symbol 'translation-doc) #f))
  (ly:error (_ "symbol ~S redefined") symbol))

  (set-object-property! symbol 'translation-type? type?)
  (set-object-property! symbol 'translation-doc description)
  symbol)

#(for-each
  (lambda (x)
(apply define-translator-property x))
`((tempoHideParenthesis
   ,boolean?
   "Hide the parenthesis around the metronome markup with text")
  (tempoEquationText
   ,string?
   "initially ''='' in the metronome markup, but here the default is altered to ''≈''")
  (tempoNumberColor
   ,list?
   "alternate color, in which the tempo value should be displayed")))

%%
% END of my personal include file 'tempo-approx.ly'
%%
\header {
  title = "Glory to the Newborn King"
  subtitle = "榮耀歸於新生王"
  composer = "Lloyd Larson"
  poet = "Lloyd Larson"
}

\paper {
  #(set-paper-size "letter")
}

\layout {
  \context {
\Voice
\consists "Melody_engraver"
\override Stem #'neutral-direction = #'()
  }

Re: How to build LilyPond.app on macOS?

2016-12-06 Thread Mojca Miklavec
Dear Davide,

On 6 December 2016 at 10:50, Davide Liessi wrote:
> 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.

Yes, I know and I'm happily using it, I was asking about LilyPond.app
bundle specifically.

> As others have already said, Homebrew has a formula for Lilypond.

Not interested in HB. Period.

> 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?

(a) There might be users who are "afraid of command line" (sure, they
might already stop at installation instructions for MP), so the simple
GUI with pre-loaded hello world document and the "Typeset" button
might still be useful to some.

(b) See the attached screenshot. If I click, I'm transferred to
LilyPond.app and I end up in the correct line and column to fix my
mistakes. With some notes:

(b.1) Usually this works. With the example in the screenshot with
non-ascii characters in the file name this is broken however and
LilyPond.app only opens a generic sample document. There must be a bug
somewhere, but I'm not sure where exactly.

(b.2) I would actually like to know how to change the behaviour,
so that my favourite text editor opens rather than LilyPond.app.

(c) I was assuming that installing LilyPond.app might be doable
without too much hassle. In that case I would be interested in looking
into it. But if that's too much work, I would let it go.

And no, I'm not talking about the Frescobaldi frontend. That's a
different software.

Mojca
___
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: How to build LilyPond.app on macOS?

2016-12-06 Thread Sven Axelsson
On 6 December 2016 at 10:41, Mojca Miklavec  wrote:

> Dear Michael, Werner & others,
>
> ...
>
> Again: we already have a working package for lilypond, the only(?)
> missing bit is the GUI.
>

Right, the Homebrew build formula does not create Lilypond.app. Sorry for
the noise.

However, the Lilypond.app is completely useless as is, except as a
convenient way of packaging all the files. If someone wants a GUI that
actually does something, then I suppose Frescobaldi is the way to go.

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
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 Sven Axelsson
On 6 December 2016 at 09:45, Werner LEMBERG  wrote:

>
> I think it would be an excellent idea to provide something for
> Homebrew – if we can make lilypond work with guile 2, I don't see
> large obstacles.
>

There is already a Homebrew formula available since a long time back. It
has been moved out of core some time ago because of Lilypond's very
specific version dependencies. The build script looks like this:

https://github.com/Homebrew/homebrew-tex/blob/master/Formula/lilypond.rb

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
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 Mojca Miklavec
Dear Michael, Werner & others,

On 6 December 2016 at 08:54, Michael Gerdau wrote:
> Hi Mojca,
>
>> Can someone please provide me a hint about how to build LilyPond.app
>> on macOS (natively, without any cross-compiling, ideally without
>> compiling any dependencies like ghostscript etc.)?
>
> you won't like this:

I slightly feared that, but no problem :)

> It is not meant to be compiled natively.
>
> If you want to do that anyway you'd have to do the porting all for
> yourself.

Can you please point me to the sources? Which parts would have to be
ported or how extensive is the job likely to be? Do just the
configure/makefiles need adjustment or also the source code? (I'm only
interested in adding the GUI part, lilypond itself has already been
packaged, so dependencies of the command line program are not
currently an issue.)

From a quick glimpse it looks like a Python application with some
Cocoa bindings and a bunch of "plain text" files (.info, .nib). Plus a
lot of configuration to make sure that it finds the appropriate files
and of course making sure that all the dependencies are there.
Dependencies shouldn't be so problematic (lilypond and lilypond are
already packaged and "work perfectly" aside from the slightly annoying
part that the devel version no longer compiles with clang), even
though I suspect there's something wrong with our guile libraries,
sometimes we get

ERROR: In procedure dynamic-link:
ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found"

On 6 December 2016 at 09:45, Werner LEMBERG wrote:
>
> However, we rely heavily on the GNU stuff (in
> particular the gcc compiler), which is not native to MacOS.

In the context of a package manager this is not an issue at all.

The fact that GCC is needed is slightly annoying, but it's handled by
the package manager automatically, it just pulls in an annoying
additional dependency which is often problematic due to a different
stdlib; when C++ interfaces are shared between dependencies, that's a
problem that leads to crashes of software, but I think (or hope) that
this is not the case in LilyPond. Or at least I didn't experience any
problems so far. Other software crashes immediately when mixing
stdlibs.

> I think it would be an excellent idea to provide something for
> Homebrew – if we can make lilypond work with guile 2, I don't see
> large obstacles.

I'm not talking about HomeBrew and I have guile 1.8.8 installed with
the package manager (but maybe it wasn't configured properly), so
dependency on guile 1.8 is not an obstacle either.

Again: we already have a working package for lilypond, the only(?)
missing bit is the GUI.

Thank you,
Mojca

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


"Fonts too big" problem revisited

2016-12-06 Thread Gerdau, Michael
Hi List,

a few weeks ago I had reported that on my ArchLinux system text fonts in
Lilypond (and only in Lilypond!) had been rendered about a factor of 20 too
large - all character spacing remained normal.

Meanwhile I have solved this and my system is back to normal.

To me it appears the culprit had been me playing around with deepin desktop
manager. That had added a few settings to my users local fontconfig files which
ultimately caused that strange behaviour. Removing all deepin related config
files from ~/.config cured the symptoms.

I'm reporting this because I recall at least one other ponder reported similar
problems.

Kind regards,
Michael
--
Michael Gerdau   email: m...@qata.de
GPG-keys available on request or at public keyserver

___
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 Werner LEMBERG

> Note I'm not saying it can't be done.

OK, we agree :-)


   Werner

___
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 Gerdau, Michael
> >> Can someone please provide me a hint about how to build
> >> LilyPond.app on macOS (natively, without any cross-compiling,
> >> ideally without compiling any dependencies like ghostscript etc.)?
> > 
> > It is not meant to be compiled natively.
> 
> This is not true.  However, we rely heavily on the GNU stuff (in
> particular the gcc compiler), which is not native to MacOS.
> 
> > If you want to do that anyway you'd have to do the porting all for
> > yourself.
> 
> I think it would be an excellent idea to provide something for
> Homebrew – if we can make lilypond work with guile 2, I don't see
> large obstacles.

Not trying to be picky, but in essence the above is - with greater detail - what
I said.

The (official) lilypond build process does rely on cross compiling and no
(official) provision exists for compiling it natively.

In that sense I object against your claim "This is not true" - more so since
currently there are one or two major obstacles at this point in time.

And I repeat:
Note I'm not saying it can't be done.

Kind regards,
Michael
--
Michael Gerdau   email: m...@qata.de
GPG-keys available on request or at public keyserver

___
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 Werner LEMBERG

>> Can someone please provide me a hint about how to build
>> LilyPond.app on macOS (natively, without any cross-compiling,
>> ideally without compiling any dependencies like ghostscript etc.)?
> 
> It is not meant to be compiled natively.

This is not true.  However, we rely heavily on the GNU stuff (in
particular the gcc compiler), which is not native to MacOS.

> If you want to do that anyway you'd have to do the porting all for
> yourself.

I think it would be an excellent idea to provide something for
Homebrew – if we can make lilypond work with guile 2, I don't see
large obstacles.


Werner
___
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 Sven Axelsson
On 6 December 2016 at 08:54, Michael Gerdau  wrote:

> Hi Mojca,
>
> > Can someone please provide me a hint about how to build LilyPond.app
> > on macOS (natively, without any cross-compiling, ideally without
> > compiling any dependencies like ghostscript etc.)?
>
> you won't like this:
> It is not meant to be compiled natively.
>
> If you want to do that anyway you'd have to do the porting all for
> yourself.
>
> Note I'm not saying it can't be done.
>

Good, because it most certainly can thogh it is pretty complex because of
the many dependencies. In regards to package managers, Homebrew has a
formula for building Lilypond from source. The biggest obstacle is the
dependency on Guile 1.8, so there has to be a way of installing that
without interfering with other packages that rely on Guile 2.0. There is
also the possibility of using a package manager to install the official
Lilypond.app. Again, Homebrew can do that, but at the moment only version
2.18 is supported. It would be easy to add the latest 2.18 as well.

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user