Re: Custom clef horizontal adjustment.

2018-07-05 Thread dfro
I figured out why copying and pasting the postscript code did not work. 
The 'lineto, moveto, curveto' commands must come before the numbers in 
the \path-like version, whereas in the postscript version the 'lineto, 
moveto, curveto' commands come after the numbers.


David

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


Re: Interactive PDF Link to Notes in Preview

2018-07-05 Thread Federico Bruni




Il giorno gio 5 lug 2018 alle 18:57, Anders Eriksson 
 ha scritto:



On 2018-07-05 18:30, Federico Bruni wrote:
If I type lilypond and then hit TAB, it's not in the available 
commands


ON windows the Tab completion only "sees" programs in the current 
directory or if you already have entered a path, the directory the 
path is pointing to.


So if you don't get an completion then there isn't any program that 
begins with 'lilypond' in the directory




I do get completion for three programs starting with lilypond. IIRC, 
lilypond.exe, lilypond-book.exe and lilypond-windows.exe. I got these 
while I was in a different directory, since that directory, as I wrote, 
is in the PATH.


So the question is why lilypond-invoke-editor is not considered as a 
program by Windows shell.

Perhaps because it does not end with .exe? Should it be made executable?
I don't know Windows at all...




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


Re: Custom clef horizontal adjustment.

2018-07-05 Thread dfro

David and Pierre,

Thank you for the suggestions. I appreciate you making a code example 
for me. I saw this method earlier in the LSR, but could not make sense 
of it at the time. Pierre, your example helps me to see the difference 
between the "\path" way of doing things and the "\markup \postscript" 
way of doing things.


I have several questions that are arising as I play with the code and 
try to understand its behavior.


The \path-like version shifts the glyph over 2 units from the postscript 
method. Is there a way to do some kind of 'translate' equivalent with 
the \path commands in Scheme? Do I need to do something like make a 
spreadsheet that recalculates all the numbers and then retype them; or, 
could some different Scheme code be added to move the glyph left or 
right without having to manually reenter the numbers? For example:


Sudo-code:

(moveto
(
... moveto,
    lineto,
    curveto,
    closepath commands
))

(I am sure my noobiness is very apparent with this question!)

I intend to make glyphs in FontForge or Inkscape and export them as an 
eps. If I just copy and past the postscript numbers into the \path-like 
code and then change the code: (ly:stencil-scale altoClef (* .4 mlt) (* 
.4 mlt)))
To: (ly:stencil-scale altoClef (* .004 mlt) (* 
.004 mlt)))


... it does not compile and I get an error message. Why? (The postscript 
numbers with the .004 scale and the \path numbers with the .4 scale 
calculate to the same numbers.) Also, what is 'mlt' an abbreviation for?


At my level of understanding, I see using a spreadsheet to translate the 
postscript numbers into \path numbers. Is there a better way of doing this?


I am beginning to understand how Scheme functions work, but I wonder - 
What do these commands do?:


   (cons  -0.1 5)
   (cons  -5   5)

I found out in 'Extending 1.1.4' that 'cons' is a Scheme way of creating 
value pairs. But, what parameters are they effecting? While playing with 
them I got the spacing of the glyph and the various barlines, notes, and 
time signature spacing to change, but I could not discover any logical 
pattern and it often caused note clashing.


Also, how could one add the "filled #t" or "filled #f" property into the 
"altoClef = " Scheme function?


The main question I am wondering is - How does LilyPond determine the 
size of a grob, and can it be configured manually? Can the leftmost or 
rightmost extent be configured? Or, is this the wrong way to think of 
things? For example, I notice that if I change the value in the code:

 (let* ((sz (ly:grob-property grob 'font-size 0))

so that the font is very large, then the notes will nicely nest inside 
the glyph and reestablish the same spacing. If I do the same kind of 
rescaling with the postscript way, it just expands over the notes.


I appreciate any thoughts that anyone would enjoy sharing. I want to 
better understand this amazing program and make my manuscript writing 
process smoother.


LilyPond is a work of art.

Peace,
David Froseth



On 7/3/18 3:25 AM, Pierre Perol-Schneider wrote:

Hi DFro,

How about :

%CODE START
% Valentin Villanave's macro for the French-style C clef %%%

\version "2.19.82" %% "2.18.2"

altoClef =
#(ly:make-stencil
  `(path 0.001
    `(moveto  2.48 -3.06
 lineto   2.48 -4.92
 curveto  2.48 -4.96 2.45 -5.00 2.40 -5.00
 lineto   2.18 -5.00
 curveto  2.13 -5.00 2.10 -4.96 2.10 -4.92
 lineto   2.10 4.92
 curveto  2.10 4.96 2.13 5.00 2.18 5.00
 lineto   2.40 5.00
 curveto  2.45 5.00 2.48 4.96 2.48 4.92
 lineto   2.48 2.92
 curveto  2.74 2.70 3.48 2.42 3.70 2.42
 curveto  4.04 2.42 4.62 2.28 4.62 4.53
 curveto  4.62 5.60 4.76 6.70 5.76 6.70
 curveto  6.28 6.70 6.71 6.26 6.71 5.71
 curveto  6.71 5.16 6.28 4.71 5.76 4.71
 curveto  5.26 4.71 5.30 4.96 5.20 5.03
 curveto  5.13 5.02 5.10 4.78 5.10 4.37
 lineto   5.10 3.40
 curveto  5.10 1.92 4.90 0.94 4.77 0.79
 curveto  4.42 0.39 3.32 0.70 2.48 0.70
 lineto   2.48 -0.83
 curveto  3.32 -0.83 4.42 -0.53 4.77 -0.93
 curveto  4.90 -1.08 5.10 -2.06 5.10 -3.54
 lineto   5.10 -4.51
 curveto  5.10 -4.91 5.13 -5.16 5.20 -5.17
 curveto  5.30 -5.09 5.26 -4.85 5.76 -4.85
 curveto  6.28 -4.85 6.71 -5.30 6.71 -5.84
 curveto  6.71 -6.40 6.28 -6.84 5.76 -6.84
 curveto  4.76 -6.84 4.62 -5.74 4.62 -4.67
 curveto  4.62 -2.42 4.04 -2.56 3.70 -2.56
 curveto  3.48 -2.56 2.74 -2.83 2.48 -3.06
 closepath
 moveto   1.30 -5.00
 lineto   0.08 -5.00
 curveto  0.04 -5.00 0 -4.96 0 -4.92
 lineto   0 4.92
 curveto  0 4.96 0.04 5.00 0.08 5.00
 lineto   1.30 5.00
 curveto  1.34 5.00 1.38 4.96 1.38 4.92
 lineto   1.38 -4.92
 curveto  1.38 -4.96 1.34 -5.00 1.30 -5.00
  closepath)
 'round 'round #t)
   (cons  -0.1 5)
   (cons  -5   5))

\layout {
  \context {
    \Score
    \override Clef.stencil =
  #(lambda (grob)
 (let* ((sz 

Re: Interactive PDF Link to Notes in Preview

2018-07-05 Thread Andrew Bernard
Hi Anders, Federico,

F: Not Notes. No such thing I have seen. You probably mean TextEdit, the
basic standard supplied text editor. It's been a while since I used my Mac
for lilypond, so I can't remember, but I think any text editor could be
made to work. Since it now cannot due to Apple's decision (why do they keep
reducing functionality?) it is no longer relevant.

A: You can get tab completion plugins for PowerShell if you hunt around.

Also, as mentioned, Skim works for this purpose last time I used it.

https://skim-app.sourceforge.io/

Andrew


On 6 July 2018 at 02:57, Anders Eriksson  wrote:

>
>
> On 2018-07-05 18:30, Federico Bruni wrote:
>
>> If I type lilypond and then hit TAB, it's not in the available commands
>>
>
> ON windows the Tab completion only "sees" programs in the current
> directory or if you already have entered a path, the directory the path is
> pointing to.
>
> So if you don't get an completion then there isn't any program that begins
> with 'lilypond' in the directory
>
> // Anders
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Ugly tie

2018-07-05 Thread Simon Albrecht

On 06.07.2018 01:02, Noeck wrote:

Is this an ugly-type bug?


I’d say yes. Your graphic is cropped too much, because if the right tie 
were a lot shorter, I’d be totally fine with this, but they’re pretty 
much the same length (see attachment).


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


Ugly tie

2018-07-05 Thread Noeck
Hi,

I encountered an ugly tie. What can I do to make the tie more
symmetrical (other than extra-offset or \shape - or should I just use
those in combination with \alterBroken)?

It occurs when the note is tied twice (to both sides) and there is a
line break in one of the ties.

MWE:

\version "2.19.80"
\paper { ragged-right = ##f }
{ r2 a ~ 1 ~ \break 1 }

Is this an ugly-type bug?

Cheers,
Joram

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


Re: Syntax

2018-07-05 Thread **********
 Ok, but I have to rely on the documentation.
If it is written highmidtom I consider it valid.

Can I use MIDI input for drums notation?

On Thu, Jul 5, 2018 at 11:00 PM, David Kastrup  wrote:

> Thomas Morley  writes:
>
> > 2018-07-05 22:48 GMT+02:00 David Kastrup :
> >>
> >> Seen the issue, but by the way, it's also "hihat" in our definitions.
> >
> > True, otoh we have highfloortom and hightom ..
>
> Ugh.  I still vote for just the doc change for now.
>
> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Syntax

2018-07-05 Thread David Kastrup
Thomas Morley  writes:

> 2018-07-05 22:48 GMT+02:00 David Kastrup :
>>
>> Seen the issue, but by the way, it's also "hihat" in our definitions.
>
> True, otoh we have highfloortom and hightom ..

Ugh.  I still vote for just the doc change for now.

-- 
David Kastrup

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


Re: Syntax

2018-07-05 Thread Thomas Morley
2018-07-05 22:48 GMT+02:00 David Kastrup :
> David Kastrup  writes:
>
>> Thomas Morley  writes:
>>
>>> Hi,
>>>
>>> please always reply to all, so that others stay informed or may drop
>>> into the discussion.
>>> cc-ing the list again.
>>>
>>> 2018-07-05 22:03 GMT+02:00 ** :
 Here 
 (http://lilypond.org/doc/v2.19/Documentation/notation/percussion-notes)
 there's written "highmidtom".
 Anyway, the different syntaxes make the program flexible, but they also
 confuse a user approaching it for the first time.
>>>
> please check what you've written before accusing the program ;)
>>>
>>> You're right, that's sort of a bug.
>>>
>>> Though, what should we change, code (drumpitch-init.ly) or docs?
>>>
>>> I'd say it would have been best to use "highmidtom" in the code right
>>> from the start. Right now I don't see why it wasn't implemented in
>>> this way.
>>
>> himidtom seems ok to me, it's a shortcut.  The alternative would be
>> highmiddletom (which seems overdone).
>>
>>> Anyway, I suppose several users woked with "himidtom", changíng it
>>> would require a convert-rule as well.
>>> So I tend to change the docs.
>>>
>>> Opinions?
>>
>> See above.
>
> Seen the issue, but by the way, it's also "hihat" in our definitions.

True, otoh we have highfloortom and hightom ..

> And the very first word of your reply is "Hi," which is likely an
> involuntary vote...

lol

Cheers,
  Harm

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


Re: Syntax

2018-07-05 Thread Thomas Morley
2018-07-05 22:29 GMT+02:00 David Kastrup :
> Thomas Morley  writes:
>
>> Hi,
>>
>> please always reply to all, so that others stay informed or may drop
>> into the discussion.
>> cc-ing the list again.
>>
>> 2018-07-05 22:03 GMT+02:00 ** :
>>> Here (http://lilypond.org/doc/v2.19/Documentation/notation/percussion-notes)
>>> there's written "highmidtom".
>>> Anyway, the different syntaxes make the program flexible, but they also
>>> confuse a user approaching it for the first time.
>>
 please check what you've written before accusing the program ;)
>>
>> You're right, that's sort of a bug.
>>
>> Though, what should we change, code (drumpitch-init.ly) or docs?
>>
>> I'd say it would have been best to use "highmidtom" in the code right
>> from the start. Right now I don't see why it wasn't implemented in
>> this way.
>
> himidtom seems ok to me, it's a shortcut.  The alternative would be
> highmiddletom (which seems overdone).
>
>> Anyway, I suppose several users woked with "himidtom", changíng it
>> would require a convert-rule as well.
>> So I tend to change the docs.
>>
>> Opinions?
>
> See above.
>
> --
> David Kastrup

patch's up
https://sourceforge.net/p/testlilyissues/issues/5369/

Cheers,
  Harm

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


Re: Syntax

2018-07-05 Thread David Kastrup
David Kastrup  writes:

> Thomas Morley  writes:
>
>> Hi,
>>
>> please always reply to all, so that others stay informed or may drop
>> into the discussion.
>> cc-ing the list again.
>>
>> 2018-07-05 22:03 GMT+02:00 ** :
>>> Here (http://lilypond.org/doc/v2.19/Documentation/notation/percussion-notes)
>>> there's written "highmidtom".
>>> Anyway, the different syntaxes make the program flexible, but they also
>>> confuse a user approaching it for the first time.
>>
 please check what you've written before accusing the program ;)
>>
>> You're right, that's sort of a bug.
>>
>> Though, what should we change, code (drumpitch-init.ly) or docs?
>>
>> I'd say it would have been best to use "highmidtom" in the code right
>> from the start. Right now I don't see why it wasn't implemented in
>> this way.
>
> himidtom seems ok to me, it's a shortcut.  The alternative would be
> highmiddletom (which seems overdone).
>
>> Anyway, I suppose several users woked with "himidtom", changíng it
>> would require a convert-rule as well.
>> So I tend to change the docs.
>>
>> Opinions?
>
> See above.

Seen the issue, but by the way, it's also "hihat" in our definitions.
And the very first word of your reply is "Hi," which is likely an
involuntary vote...

-- 
David Kastrup

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


Re: Syntax

2018-07-05 Thread David Kastrup
Thomas Morley  writes:

> Hi,
>
> please always reply to all, so that others stay informed or may drop
> into the discussion.
> cc-ing the list again.
>
> 2018-07-05 22:03 GMT+02:00 ** :
>> Here (http://lilypond.org/doc/v2.19/Documentation/notation/percussion-notes)
>> there's written "highmidtom".
>> Anyway, the different syntaxes make the program flexible, but they also
>> confuse a user approaching it for the first time.
>
>>> please check what you've written before accusing the program ;)
>
> You're right, that's sort of a bug.
>
> Though, what should we change, code (drumpitch-init.ly) or docs?
>
> I'd say it would have been best to use "highmidtom" in the code right
> from the start. Right now I don't see why it wasn't implemented in
> this way.

himidtom seems ok to me, it's a shortcut.  The alternative would be
highmiddletom (which seems overdone).

> Anyway, I suppose several users woked with "himidtom", changíng it
> would require a convert-rule as well.
> So I tend to change the docs.
>
> Opinions?

See above.

-- 
David Kastrup

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


Re: Syntax

2018-07-05 Thread Thomas Morley
Hi,

please always reply to all, so that others stay informed or may drop
into the discussion.
cc-ing the list again.

2018-07-05 22:03 GMT+02:00 ** :
> Here (http://lilypond.org/doc/v2.19/Documentation/notation/percussion-notes)
> there's written "highmidtom".
> Anyway, the different syntaxes make the program flexible, but they also
> confuse a user approaching it for the first time.

>> please check what you've written before accusing the program ;)

You're right, that's sort of a bug.

Though, what should we change, code (drumpitch-init.ly) or docs?

I'd say it would have been best to use "highmidtom" in the code right
from the start. Right now I don't see why it wasn't implemented in
this way.
Anyway, I suppose several users woked with "himidtom", changíng it
would require a convert-rule as well.
So I tend to change the docs.

Opinions?

Cheers,
  Harm

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


Re: Syntax

2018-07-05 Thread Urs Liska

Hi Mark,


Am 05.07.2018 um 21:39 schrieb Thomas Morley:

Hi,
I'm writing my first score.
Basically, I'm using a code example found in lilypond documentation and I'm
doing some changes:

\version 3.0.1

really??



This looks very much like the current version of Frescobaldi.

Maybe it's obvious to you, maybe not, but you should be well aware that 
LilyPond "is" not Frescobaldi. LilyPond is a batch program that reads 
text files and engraves scores from them, Frescobaldi is one tool to 
help you edit these text files.


I don't want to be nitpicking, but this differentiation may save you 
from some confusion down the road.


Frescobaldi's current version is 3.0.1, LilyPond has a "stable" release 
2.18.2 and a "development" release 2.19.82. In the vast majority of 
cases you shouldn't hesitate to use a current development release since 
these are not at all unstable (at least not from a practical point of view).


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


Re: Syntax

2018-07-05 Thread Thomas Morley
Hi,

2018-07-05 14:40 GMT+02:00 ** :
> Hi,
> I'm writing my first score.
> Basically, I'm using a code example found in lilypond documentation and I'm
> doing some changes:
>
> \version 3.0.1

really??

>
> \header {
>   title = ""
>   composer = ""
>   }
>
> #(define mydrums '(
>  (bassdrumdefault   #f  -3)
>  (snare   default   #f  -1)
>  (sidestick   cross #f  -1)
>  (closedhihat cross "stopped"3)
>  (halfopenhihat   cross "halfopen"   1)
>  (pedalhihat  xcircle   "stopped"2)
>  (lowmidtom   diamond   #f   0)
>  (highmidtom  diamond   #f   2)))
>
> one = \drummode { \time 4/4 hhc4 hhc4 hhc4 hhc4 \time 2/4 hhc4 hhc4 \time
> 3/4 hhc4 }
> two = \drummode { bd r4 ss r4 bd r4 ss}
> three = \drummode { skip skip skip skip skip skip skip tommh tomml }
> four = \drummode { }
>
> \new DrumStaff <<
>   \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
>   \new DrumVoice { \voiceOne \one }
>   \new DrumVoice { \voiceTwo \two }
>   \new DrumVoice { \voiceTwo \three }
>   \new DrumVoice { \voiceTwo \four }
>>>
>
> 1) At the third bar I had the first problem: the program can't place the
> toms in the right position and it can't visualize the diamond symbol.

please check what you've written before accusing the program ;)

`highmidtom` does not exists, it's `himidtom`

Then it works:

\version "2.19.82"

#(define mydrums '(
 (bassdrumdefault   #f  -3)
 (snare   default   #f  -1)
 (sidestick   cross #f  -1)
 (closedhihat cross "stopped"3)
 (halfopenhihat   cross "halfopen"   1)
 (pedalhihat  xcircle   "stopped"2)
 (lowmidtom   diamond   #f   0)
 (himidtomdiamond   #f   2)))

one =
\drummode { \time 4/4 hhc4 hhc4 hhc4 hhc4 \time 2/4 hhc4 hhc4 \time 3/4 hhc4 }
two =
\drummode { bd r4 ss r4 bd r4 ss tommh tomml }

\new DrumStaff
  \with { drumStyleTable = #(alist->hash-table mydrums) }
  <<
\new DrumVoice { \voiceOne \one }
\new DrumVoice { \voiceTwo \two }
  >>


> 2) I like this kind of syntax, with the 'mydrums' list, but probably there
> are more efficient ways to write down this score. Can you modify this one as
> an example to show me how you do it?
>
> Thanks.

You've already found the relevant sectio in the docs. There's an
LSR-snippet which you may study as well.
http://lsr.di.unimi.it/LSR/Item?id=1033

Cheers,
  Harm

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


Re: http://lilypond.org/help-us.html afunctional

2018-07-05 Thread David Kastrup
Graham Percival  writes:

> On Wed, Jul 04, 2018 at 08:21:25PM +0200, David Kastrup wrote:
>> "Phil Holmes"  writes:
>> > I'm slightly surprised that the build picks up the location of those
>> > pages from that part of the version, but obviously it does.  A simple
>> > fix for the next build would be to align the versions given by the two
>> > expressions, but could you have a think about why those pages pick up
>> > different locations from all the others?
>> 
>> I am just as surprised as you are.  I would have thought that the
>> VERSION_STABLE and VERSION_DEVEL lines are exactly used for figuring out
>> the web sites to link to while MAJOR_VERSION/MINOR_VERSION/PATCH_LEVEL
>> is what gets baked into the binary.
>
> Commit 70adadcf60fa2571d3148115af5d7e96d80d57a5.
>
> I suspect that the issue is that we only want a string in the form
> "2.19", and it was easier to create such a string by concatenating
> MAJOR_VERSION and MINOR_VERSION, instead of taking VERSION_STABLE
> of "2.19.65" and removing the final ".xy"

Hm.  I've done a change using VERSION_DEVEL locally but I am not sure
whether there is one valid strategy for both development and stable
releases.

I am not sure I understand the problem.

-- 
David Kastrup

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


Re: http://lilypond.org/help-us.html afunctional

2018-07-05 Thread David Kastrup
Graham Percival  writes:

> On Wed, Jul 04, 2018 at 08:21:25PM +0200, David Kastrup wrote:
>> "Phil Holmes"  writes:
>> > I'm slightly surprised that the build picks up the location of those
>> > pages from that part of the version, but obviously it does.  A simple
>> > fix for the next build would be to align the versions given by the two
>> > expressions, but could you have a think about why those pages pick up
>> > different locations from all the others?
>> 
>> I am just as surprised as you are.  I would have thought that the
>> VERSION_STABLE and VERSION_DEVEL lines are exactly used for figuring out
>> the web sites to link to while MAJOR_VERSION/MINOR_VERSION/PATCH_LEVEL
>> is what gets baked into the binary.
>
> Commit 70adadcf60fa2571d3148115af5d7e96d80d57a5.
>
> I suspect that the issue is that we only want a string in the form
> "2.19", and it was easier to create such a string by concatenating
> MAJOR_VERSION and MINOR_VERSION, instead of taking VERSION_STABLE
> of "2.19.65" and removing the final ".xy"

Thanks for the pointer.  I try to use Make's "basename" function for
removing the final .xy .  That's hackish, so what.

-- 
David Kastrup

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


Re: http://lilypond.org/help-us.html afunctional

2018-07-05 Thread Graham Percival
On Wed, Jul 04, 2018 at 08:21:25PM +0200, David Kastrup wrote:
> "Phil Holmes"  writes:
> > I'm slightly surprised that the build picks up the location of those
> > pages from that part of the version, but obviously it does.  A simple
> > fix for the next build would be to align the versions given by the two
> > expressions, but could you have a think about why those pages pick up
> > different locations from all the others?
> 
> I am just as surprised as you are.  I would have thought that the
> VERSION_STABLE and VERSION_DEVEL lines are exactly used for figuring out
> the web sites to link to while MAJOR_VERSION/MINOR_VERSION/PATCH_LEVEL
> is what gets baked into the binary.

Commit 70adadcf60fa2571d3148115af5d7e96d80d57a5.

I suspect that the issue is that we only want a string in the form
"2.19", and it was easier to create such a string by concatenating
MAJOR_VERSION and MINOR_VERSION, instead of taking VERSION_STABLE
of "2.19.65" and removing the final ".xy"

Cheers,
- Graham

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


Re: Interactive PDF Link to Notes in Preview

2018-07-05 Thread Anders Eriksson




On 2018-07-05 18:30, Federico Bruni wrote:

If I type lilypond and then hit TAB, it's not in the available commands


ON windows the Tab completion only "sees" programs in the current 
directory or if you already have entered a path, the directory the path 
is pointing to.


So if you don't get an completion then there isn't any program that 
begins with 'lilypond' in the directory


// Anders

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


Re: Interactive PDF Link to Notes in Preview

2018-07-05 Thread Federico Bruni




Il giorno gio 5 lug 2018 alle 16:57, Andrew Bernard 
<"andrew.bernard"@gmail.com> ha scritto:


I do sometimes use a Mac, and I do also now recall that Apple removed 
that functionality in Preview in Sierra, so nothing can be done to 
fix it. Skim seems to be one good solution. But how about Frescobaldi?


I jumped in this discussion, as a non-Mac-user, because I'm writing a 
blog post which includes a part about using editors other than 
Frescobaldi.


The Usage manual¹ doesn't say that the instructions for 
point-and-click are valid for Linux only, so I though that a similar 
mechanism could work at least in Mac (and maybe on Windows).


¹ 
http://lilypond.org/doc/v2.19/Documentation/usage/configuring-the-system-for-point-and-click.html



I've now learned that:

- it used to work in Mac before Sierra, but I wonder if you were able 
to set an editor different from Notes...
- it doesn't work in Windows or at least I'm not sure how to make it 
work. I have added lilypond installation directory to the path, in fact 
I can run lilypond in the PowerShell. But I cannot run 
lilypond-invoke-editor. If I type lilypond and then hit TAB, it's not 
in the available commands.


If on Linux I do:

$ file `which lilypond-invoke-editor`
/usr/bin/lilypond-invoke-editor: a /usr/bin/guile1.8 -s script, ASCII 
text executable


Any Windows expert who can help?




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


Re: Multi-part score

2018-07-05 Thread foxfanfare
You could also make a book like this:

\book {
  \header {
title = "MY BOOK"
  }
  \score {
\header {
  piece = "Piece 1"
}
% music 1
\layout {
  % options 1
}

  \score {
\header {
  piece = "Piece 2"
}
% music 2
\layout {
  % options 2
}

And you can change all the layout (or paper) for each new movement.



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Interactive PDF Link to Notes in Preview

2018-07-05 Thread Andrew Bernard
Hi Zone,

For some reason I can't see your original post anymore. Anyway, since
somebody mentioned Skim, I now recall there was a length discussion of this
exact same topic in the list a while ago. It would be worth you while to
look at the archives.

I do sometimes use a Mac, and I do also now recall that Apple removed that
functionality in Preview in Sierra, so nothing can be done to fix it. Skim
seems to be one good solution. But how about Frescobaldi?

Andrew


On 4 July 2018 at 04:04, Federico Bruni  wrote:

> Hello Zon
>
> Il giorno mar 3 lug 2018 alle 18:47, Zone Dremik 
> ha scritto:
>
>> Hello,
>> After a recent upgrade to my computer, the function that links music
>> notes (and lyrics) in the PDF viewer, to the text in the Lilypond files,
>> has stopped working.
>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Multi-part score

2018-07-05 Thread Kieren MacMillan
Hi Joshua,

> Is there a way to have multiple scores in a score with different layout 
> options, and without using lilypond-book or book part?

\bookpart works well for me…
Maybe post a MWE, so we can see how your code might be improved?

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Multi-part score

2018-07-05 Thread Vaughan McAlley
Oops, need to forward to list…

-- Forwarded message -
From: Vaughan McAlley 
Date: Fri, 6 Jul 2018, 00:05
Subject: Re: Multi-part score
To: Joshua Armenta 


On Thu, 5 Jul 2018, 22:56 Joshua Armenta,  wrote:

> Hi Ponders,
>
> Is there a way to have multiple scores in a score with different layout
> options, and without using lilypond-book or book part?
>
> Basically, I have a multimovment work for large chamber orchestra that I'm
> typesetting, and some of the movements I want to use max-systems-per-page =
> 1 (Mov 3 is keyboard and tenor, movement 4 is full ensemble, so 23 staves
> per system).
>
> I wasn't able to get bookpart to work without it invoking full headers
> every time.
>
> --
> *Josh Armenta*
> Composer, Conductor & Scholar
> Production Director, The Computer Music Consort
> San Jose, CA
> http://www.josharmenta.com
>
> "If I cannot fly, let me sing." - Stephen Sondheim
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


I just looked at my current multi-movement piece. Each \bookpart (except
the first) has:

\header {
  title = ##f
  subtitle = "My movement name"
  …
}

Then I can give each movement its own \paper settings.

Vaughan



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


Re: Interactive PDF Link to Notes in Preview

2018-07-05 Thread Ambrose Chan


Hello,
After a recent upgrade to my computer, the function that links music notes
(and lyrics) in the PDF viewer, to the text in the Lilypond files, has
stopped working.

I believe the since Mac Os Sierra came around, Apple has discontinued the
ability for users to click notes on the music in Preview. I ran in to the
same problem a while back. So, I have been using the app called Skim that
works with note clicking. 



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Syntax

2018-07-05 Thread **********
Hi,
I'm writing my first score.
Basically, I'm using a code example found in lilypond documentation and I'm
doing some changes:

\version 3.0.1

\header {
  title = ""
  composer = ""
  }

#(define mydrums '(
 (bassdrumdefault   #f  -3)
 (snare   default   #f  -1)
 (sidestick   cross #f  -1)
 (closedhihat cross "stopped"3)
 (halfopenhihat   cross "halfopen"   1)
 (pedalhihat  xcircle   "stopped"2)
 (lowmidtom   diamond   #f   0)
 (highmidtom  diamond   #f   2)))

one = \drummode { \time 4/4 hhc4 hhc4 hhc4 hhc4 \time 2/4 hhc4 hhc4 \time
3/4 hhc4 }
two = \drummode { bd r4 ss r4 bd r4 ss}
three = \drummode { skip skip skip skip skip skip skip tommh tomml }
four = \drummode { }

\new DrumStaff <<
  \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
  \new DrumVoice { \voiceOne \one }
  \new DrumVoice { \voiceTwo \two }
  \new DrumVoice { \voiceTwo \three }
  \new DrumVoice { \voiceTwo \four }
>>

1) At the third bar I had the first problem: the program can't place the
toms in the right position and it can't visualize the diamond symbol.
2) I like this kind of syntax, with the 'mydrums' list, but probably there
are more efficient ways to write down this score. Can you modify this one
as an example to show me how you do it?

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


Multi-part score

2018-07-05 Thread Joshua Armenta
Hi Ponders,

Is there a way to have multiple scores in a score with different layout
options, and without using lilypond-book or book part?

Basically, I have a multimovment work for large chamber orchestra that I'm
typesetting, and some of the movements I want to use max-systems-per-page =
1 (Mov 3 is keyboard and tenor, movement 4 is full ensemble, so 23 staves
per system).

I wasn't able to get bookpart to work without it invoking full headers
every time.

-- 
*Josh Armenta*
Composer, Conductor & Scholar
Production Director, The Computer Music Consort
San Jose, CA
http://www.josharmenta.com

"If I cannot fly, let me sing." - Stephen Sondheim
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: question about cross-staff stems

2018-07-05 Thread foxfanfare
James Bailey-5 wrote
> What I'm looking for is something like this:
> \include "deutsch.ly"
> \version "2.19.65"
> 
> \score {
>   \new PianoStaff <<
>   \new Staff = "RH" \relative c'' { \voiceOne 
> 
> 4~ q8 q~ q4~ q8 q }
>   \new Staff = "LH" \relative c' {
>   \clef bass
>   <<
>   \new Voice = "crossing" { \autoBeamOff 
> \crossStaff \repeat unfold 2 {
> \change Staff = "RH" \voiceTwo s8 
> 
> 8 
> 
>  
> 
>  } }
>   \new Voice = "notCrossing" { \autoBeamOff 
> \change Staff = "LH"
> \voiceTwo \repeat unfold 2 { c,8[ g'] g[ g] } }
>   \new Voice = "ties" { \voiceFour \repeat unfold 
> 2 { \stemUp c,4~ \once
> \override NoteColumn.force-hshift = #-2.0 c8 r } }
>   >> \oneVoice
>   }
>   >>
>   \layout { \context { \PianoStaff \consists #Span_stem_engraver } }
> }
> 
> But that's a lot of manual adjustment and essentially the entire piece has
> this contour.
> 
> Thanks,
> 
> James

Interesting. However I wonder why you'd need the c,4~ c8 at the LH since it
cannot be held? Don't you think a pedal mark could be used instead and give
your writting more legibility?

Also, I don't understand why you have used NoteColumn.force-hshift because
it makes very unclear where the beat is. If it is really the way you want to
engrave it, I found the default result better.

Anyway, if you really want to write those adjustments through all the piece,
maybe the use of variables would be necessary.

Several alternative ideas:

\include "deutsch.ly"
\version "2.19.65"

\score {
\new PianoStaff <<
\new Staff = "RH" \relative c'' { \voiceOne 4~ q8 q~
q4~ q8 q }
\new Staff = "LH" \relative c' {
\clef bass
<<
\new Voice = "crossing" { \autoBeamOff
\crossStaff \repeat unfold 2 { \change Staff = "RH" \voiceTwo s8 8   } }
\new Voice = "notCrossing" { \autoBeamOff
\change Staff = "LH" \voiceTwo \repeat unfold 2 { c,8[\sustainOn g'] g[
g]\sustainOff } }
>> \oneVoice
}
>>
\layout { \context { \PianoStaff \consists #Span_stem_engraver } }
} 

\score {
\new PianoStaff <<
\new Staff = "RH" \relative c'' { \voiceOne 4~ q8 q~
q4~ q8 q }
\new Staff = "LH" \relative c' {
\clef bass
<<
\new Voice = "crossing" { \autoBeamOff
\crossStaff \repeat unfold 2 { \change Staff = "RH" \voiceTwo s8 8   } }
\new Voice = "notCrossing" { \autoBeamOff
\change Staff = "LH" \voiceTwo \repeat unfold 2 { c,8[ g'] g[ g] } }
\new Voice = "ties" { \voiceFour \repeat
unfold 2 { \stemUp c,4~ c8 r } }
>> \oneVoice
}
>>
\layout { \context { \PianoStaff \consists #Span_stem_engraver } }
}

\score {
\new PianoStaff <<
\new Staff = "RH" \relative c'' { \voiceOne 4~ q8 q~
q4~ q8 q }
\new Staff = "LH" \relative c' {
\clef bass
<<
\new Voice = "crossing" { \autoBeamOff
\crossStaff \repeat unfold 2 { \change Staff = "RH" \voiceTwo s8 8   } }
\new Voice = "notCrossing" { \autoBeamOff
\change Staff = "LH" \voiceTwo \repeat unfold 2 { c,8[ g'] g[ g] } }
\new Voice = "ties" { \voiceFour \repeat
unfold 2 { \stemUp c,4. r8 } }
>> \oneVoice
}
>>
\layout { \context { \PianoStaff \consists #Span_stem_engraver } }
}



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Interactive PDF Link to Notes in Preview

2018-07-05 Thread Federico Bruni
Yes, it's possible that LilyPond application for Mac may become 
incompatible with recent Mac versions.

Please keep the list in Cc, as I'm not a Mac user and cannot help you.

Il giorno gio 5 lug 2018 alle 9:02, Zone Dremik  
ha scritto:
I am not using a text editor at all. For the last nine years, I have 
been running the Lilypond application through the standard Macintosh 
GUI. I have never needed to use any command line functions, or 
interact with any helper scripts or apps. (I don't actually see any 
other process running other than the Lilypond app).


The app has always created, saved, and compiled the files containing 
the lilypond code ( with .ly extension). When the output PDF is 
created, Lilypond communicates with the operating system to open the 
PDF in the Apple Brand PDF viewer called PREVIEW.
Clicking the notes in preview would normally cause the corresponding 
.ly file to open in Lilypond, with the specific code highlighted 
within the text.


It has worked beautifully all these years, through several Mac system 
upgrades.


However, I see from the Lilypond download page that the most recent 
system support is for Mac OS 10.4, while the current system is up to 
OS 13.0 is it possible that Lilypond is becoming incompatible with 
Apple products?





On Tue, 7/3/18, Federico Bruni  wrote:

 Subject: Re: Interactive PDF Link to Notes in Preview
 To: "Zone Dremik" 
 Cc: lilypond-user@gnu.org
 Date: Tuesday, July 3, 2018, 2:14 PM



 Il
 giorno mar 3 lug 2018 alle 20:04, Federico Bruni
 
 ha scritto:
 > Hello Zon
 >
 > Il giorno mar 3 lug
 2018 alle 18:47, Zone Dremik
 > 
 ha scritto:
 >> Hello,
 >> After a recent upgrade to my computer,
 the function that links music
 >>
 notes (and lyrics) in the PDF viewer, to the text in the
 Lilypond
 >> files, has stopped
 working.
 >>
 >
 > Which text editor are you using?
 > How did you set your system to enable
 point-and-click? In other
 > words,
 what's the command you assigned to the EDITOR or
 LYEDITOR
 > variables?
 >
 > Read:
 > 
http://lilypond.org/doc/v2.19/Documentation/usage/configuring-the-system-for-point-and-click.html

 >
 > (this page was
 changed recently, but the change has not been released
 > yet)
 >

 Sorry, it's written in the
 subject: it's Notes.

 I'm not a Mac user and cannot help much.
 You should check if Notes supports opening a
 file in a precise location
 (line and
 column) and see what's the correct syntax to use.

 Are you sure it used to work
 with Notes in the past or you are making
 confusion with something else?

 I may help if you want to use
 editors which can run on multiple
 operating
 systems, including Linux.

 The patch I mentioned before is here:
 
https://codereview.appspot.com/357720043/diff/1/Documentation/usage/external.itely








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