Re: Portable Lilypond?

2017-04-22 Thread Abraham Lee
Hi, Allen!

On Sat, Apr 22, 2017 at 8:07 AM Allen Farley  wrote:

>
> Hi!
> First time in this group, thank you all so much for helpful info!
>
> My Question:
> I use portableapps on a flash drive for much of my work, is there a
> version on Lilypond that could work in that environment? I saw Musescore or
> some such, but would like to go with what I know even if I only know a
> little!
>
I use both LilyPond and Frescobaldi quite successfully from a flash drive
on a nearly daily basis. Theyre not truly portable, in the full meaning of
the word. They do interact with the host file system and registry a little,
but if you are just moving between the same computers regularly, then it
should work great for you.

All I did was install both LilyPond and Frescobaldi like normal to the
computer and then just copied their application folders to the PortableApps
directory. All their needed files are there. I've even had multiple
LilyPond installations put on my flash drive, all registered for use in
Frescobaldi.

When you run LilyPond for the first time on a new computer, just like
always, it will take a little longer to run because it needs to create a
new font cache. That's one of the few things it doesn't take with it.

Hope that helps!
-Abraham Lee
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lines to edges of \center-column

2017-04-22 Thread David Nalesnik
On Sat, Apr 22, 2017 at 5:56 PM,   wrote:
> This is great, thanks! I was trying to mess around with \hbracket and
> \whiteout, but this is far better.
>
> Just a few questions:
> Is it possible to scale the protrusions (and other things) by font size?
> How can I change the color of the lines?
> What does "mols" mean?

I'd guess "molecules," referring here to stencils.  I've seen "atom"
used in Scheme programming.  In any case, I just copied from the
source.

Looks like you answered your other questions below

Best,
David

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


Re: Lines to edges of \center-column

2017-04-22 Thread caagr98
I did some further work on it. It looks pretty great, IMO. It works with left- 
and right-aligning, too. No scaling horizontally (just 1sp margins), but it 
automatically scales vertically.

```
#(define (expand-add pair n)
   (cons (- (car pair) n) (+ (cdr pair) n)))
#(define (expand-mul mul pair)
   (let* ((a (car pair))
  (b (cdr pair))
  (mid (/ (+ a b) 2))
  (A (+ (* (- a mid) mul) mid))
  (B (+ (* (- b mid) mul) mid)))
 (cons A B)))

#(define (add-brackets mols th)
   (define (line x1 y1 x2 y2)
 (stencil-with-color
  (make-line-stencil th x1 y1 x2 y2)
  '(3/5 3/5 3/5)))
   (let ((max-extent (ly:stencil-extent (car mols) X)))
 (map (lambda (x)
(let ((stil-ext (ly:stencil-extent x X)))
  (if (not (equal? max-extent stil-ext))
  (let ((me (expand-add max-extent -2))
(se (expand-add stil-ext 1))
(ye (expand-mul 1/2 (ly:stencil-extent x Y
(if (< (car me) (car se))
(set! x
  (ly:stencil-add
   (line (car me) (car ye) (car se) (car ye))
   (line (car me) (car ye) (car me) (cdr ye))
   x)))
(if (> (cdr me) (cdr se))
(set! x
  (ly:stencil-add
   (line (cdr se) (car ye) (cdr me) (car ye))
   (line (cdr me) (car ye) (cdr me) (cdr ye))
   x))
x)
  mols)))

#(define (general-column-bracket align-dir baseline mols)
   (let* ((aligned-mols (map (lambda (x) (ly:stencil-aligned-to x X align-dir)) 
mols))
  (aligned-mols (add-brackets aligned-mols 0.1))
  (stacked-stencil (stack-lines -1 0.0 baseline aligned-mols))
  (stacked-extent (ly:stencil-extent stacked-stencil X)))
 (ly:stencil-translate-axis stacked-stencil (- (car stacked-extent)) X)))

#(define-markup-command (jp-column layout props args)
   (markup-list?)
   #:category align
   #:properties ((baseline-skip))
   (general-column-bracket CENTER baseline-skip (interpret-markup-list layout 
props args)))
```

On 04/23/17 00:56, caag...@gmail.com wrote:
> This is great, thanks! I was trying to mess around with \hbracket and 
> \whiteout, but this is far better.
> 
> Just a few questions:
> Is it possible to scale the protrusions (and other things) by font size?
> How can I change the color of the lines?
> What does "mols" mean?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lines to edges of \center-column

2017-04-22 Thread caagr98

On 04/23/17 03:47, David Wright wrote:

Then I don't know what you mean. When you drag over them, they turn
blue because you _have_ selected them (drag.png, apologies for the
size). Then you can paste them into, say, a bash shell command line
(pasted.png, the box at the right is the inactive cursor).


The top (kana) line can't be selected at all, is what I'm trying to say. 
It acts a bit different in different viewers, but none seem to be able 
to select+copy it.



But why do you want to select part of a PDF like that when _you_
generated it? I often do that with _other_ people's PDFs when I
want to get at their text.


It's not that I want to select it, it's just that I hate when things are 
inconsistent like that.



The rendition of the dragged area is entirely a function of the
viewer you're using. Xpdf always shows a rectangle and lifts
just the text therein, rather than being constrained by the lines
of text (xpdf.png, more apologies). However, I think it mixes up
its encodings so the pasted text makes little sense.

That looks a lot like evince that you're using. Very good for reading
Chase credit card statements and encrypted PDFs, which xpdf can't
manage, but I hate the interface.


It's actually Atril, MATE's Evince fork. I use it because it respects my 
GTK theme, and unlike Evince, it doesn't use client-side window 
decorations, so it works with i3. I think xpdf's UI looks horrible, btw. 
Its rendering quality seems good, though.



Anyway, my guess is that evince
treats keeping the characters _as_ individual characters as its
priority, whereas xpdf tries to render what will print.


Yeah, I've noticed that Atril often renders things slightly differently 
when zoomed-out.



One really needs an armoury of PDF viewers.


And yet, PDF's main point is that it looks identical on all devices...


So now the question becomes what do you want to produce these PDFs
for, and how are you going to ascertain which browser the consumers
are using? If I were sending them to my printers, my expectations
(and theirs) would be the sort of copies that I've shown magnified.


That kind of minutiae doesn't bother me very much (only a little...); 
the big problem is that the lines on the kana row and the kanji row are 
different shapes. They're both three box-drawings on each side, but they 
look quite different in all PDF viewers I've tried (Firefox, Chromium, 
Atril, Okular, xpdf).


Also, I wouldn't say 70kb is much to apologize for.

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


Re: Lines to edges of \center-column

2017-04-22 Thread David Wright
On Sun 23 Apr 2017 at 02:09:34 (+0200), caag...@gmail.com wrote:
> 
> 
> On 04/23/17 01:53, David Wright wrote:
> >I tried to provoke a problem, but I don't know my kanji from my kana,
> >and am not sure what you mean by "selectable".
> 
> I mean they're marked in blue by ctrl-A or dragging (selected.png).

Then I don't know what you mean. When you drag over them, they turn
blue because you _have_ selected them (drag.png, apologies for the
size). Then you can paste them into, say, a bash shell command line
(pasted.png, the box at the right is the inactive cursor).

But why do you want to select part of a PDF like that when _you_
generated it? I often do that with _other_ people's PDFs when I
want to get at their text.

The rendition of the dragged area is entirely a function of the
viewer you're using. Xpdf always shows a rectangle and lifts
just the text therein, rather than being constrained by the lines
of text (xpdf.png, more apologies). However, I think it mixes up
its encodings so the pasted text makes little sense.

> >The greatest zoom I can manage is 1600%, and I can't see the joins.
> >The H bars were just to follow each of your characters with something.
> 
> I'm pretty sure it's just some kind of rounding error in my PDF
> viewer, but you can see a seam between the first and second bar to
> right of the kanji in the second row (seam.png).
> 
> Also note that the bars on the kana row are a lot longer and thinner
> than the kanji row.

That looks a lot like evince that you're using. Very good for reading
Chase credit card statements and encrypted PDFs, which xpdf can't
manage, but I hate the interface. Anyway, my guess is that evince
treats keeping the characters _as_ individual characters as its
priority, whereas xpdf tries to render what will print.
One really needs an armoury of PDF viewers.

So now the question becomes what do you want to produce these PDFs
for, and how are you going to ascertain which browser the consumers
are using? If I were sending them to my printers, my expectations
(and theirs) would be the sort of copies that I've shown magnified.

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


Re: Lines to edges of \center-column

2017-04-22 Thread caagr98



On 04/23/17 01:53, David Wright wrote:

I tried to provoke a problem, but I don't know my kanji from my kana,
and am not sure what you mean by "selectable".


I mean they're marked in blue by ctrl-A or dragging (selected.png).


The greatest zoom I can manage is 1600%, and I can't see the joins.
The H bars were just to follow each of your characters with something.


I'm pretty sure it's just some kind of rounding error in my PDF viewer, 
but you can see a seam between the first and second bar to right of the 
kanji in the second row (seam.png).


Also note that the bars on the kana row are a lot longer and thinner 
than the kanji row.


```
\version "2.18.2"
\markup "━━━かな━━━" %kana
\markup "━━━漢字━━━" %kanji
```
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Hairpin endings

2017-04-22 Thread Thomas Morley
2017-04-21 19:15 GMT+02:00 Thomas Morley :
> 2017-04-21 14:39 GMT+02:00 David Nalesnik :

> The code for "Ferneyhough" hairpins uses make-connected-path-stencil,
> hence it will not work for this purpose.
>
> Below a rewrite using make-path-stencil:
[...]
> Probably worth a patch.

[...]

I newly rewrote it, now using ly:line-interface::line.

It's now
https://sourceforge.net/p/testlilyissues/issues/5123/
with patch.

Cheers,
  Harm

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


Re: Lines to edges of \center-column

2017-04-22 Thread caagr98
This is great, thanks! I was trying to mess around with \hbracket and 
\whiteout, but this is far better.


Just a few questions:
Is it possible to scale the protrusions (and other things) by font size?
How can I change the color of the lines?
What does "mols" mean?


On 04/23/17 00:34, David Nalesnik wrote:

On Sat, Apr 22, 2017 at 3:22 PM,   wrote:

Is there some way to make a center-column draw lines from slightly outside
the text to the edges of the column (see example)?

In this specific case, I have both English and Japanese names for stuff, and
without those lines, I think it's a bit unclear exactly what part the
Japanese refers to.

```
subtitle = \markup \bold \large \line {
   "from"
   \center-column {
 "Legend of Heroes"
 \smaller \smaller \smaller
 "英雄伝説"
   }
   "VI:"
   \center-column {
 "Trails in the Sky"
 \smaller \smaller \smaller
 "空の軌跡"
   }
}
```


Try this:

\version "2.19.59"

% based on general-column from scm/define-markup-commands.scm
#(define (general-column align-dir baseline mols)
(let* ((aligned-mols
(map (lambda (x) (ly:stencil-aligned-to x X align-dir))
  mols))
   (max-extent (ly:stencil-extent (car aligned-mols) X))
   (aligned-mols
(cons (car aligned-mols)
  (map (lambda (x)
 (let ((stil-ext (ly:stencil-extent x X)))
   (ly:stencil-add
(make-line-stencil 0.1 (car max-extent) 0 (1-
(car stil-ext)) 0)
(make-line-stencil 0.1 (1+ (cdr stil-ext)) 0
(cdr max-extent) 0)
(make-line-stencil 0.1 (car max-extent) 0 (car
max-extent) 1.5)
(make-line-stencil 0.1 (cdr max-extent) 0 (cdr
max-extent) 1.5)
x)))
(cdr aligned-mols
   (stacked-stencil (stack-lines -1 0.0 baseline aligned-mols))
   (stacked-extent (ly:stencil-extent stacked-stencil X)))
  (ly:stencil-translate-axis stacked-stencil (- (car stacked-extent)) X)))

#(define-markup-command (center-column layout props args)
(markup-list?)
#:category align
#:properties ((baseline-skip))
(general-column CENTER baseline-skip (interpret-markup-list layout
props args)))

\header {
   subtitle = \markup \bold \large \line {
 "from"
 \center-column {
   "Legend of Heroes"
   \smaller \smaller \smaller
   "英雄伝説"
   "英雄伝説"
   \huge
   "英雄伝説"
 }
 "VI:"
 \center-column {
   "Trails in the Sky"
   \smaller \smaller \smaller
   "空の軌跡"
 }
   }
}

{ c }

You might want to adjust some of the hard-coded values
(line-thickness, length of "protrusions," offset of bracket from
text), but this should get you started.

-David



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


Re: Lines to edges of \center-column

2017-04-22 Thread Thomas Morley
2017-04-23 0:34 GMT+02:00 David Nalesnik :
> On Sat, Apr 22, 2017 at 3:22 PM,   wrote:
>> Is there some way to make a center-column draw lines from slightly outside
>> the text to the edges of the column (see example)?
>>
>> In this specific case, I have both English and Japanese names for stuff, and
>> without those lines, I think it's a bit unclear exactly what part the
>> Japanese refers to.
>>
>> ```
>> subtitle = \markup \bold \large \line {
>>   "from"
>>   \center-column {
>> "Legend of Heroes"
>> \smaller \smaller \smaller
>> "英雄伝説"
>>   }
>>   "VI:"
>>   \center-column {
>> "Trails in the Sky"
>> \smaller \smaller \smaller
>> "空の軌跡"
>>   }
>> }
>> ```
>
> Try this:
>
> \version "2.19.59"
>
> % based on general-column from scm/define-markup-commands.scm
> #(define (general-column align-dir baseline mols)
>(let* ((aligned-mols
>(map (lambda (x) (ly:stencil-aligned-to x X align-dir))
>  mols))
>   (max-extent (ly:stencil-extent (car aligned-mols) X))
>   (aligned-mols
>(cons (car aligned-mols)
>  (map (lambda (x)
> (let ((stil-ext (ly:stencil-extent x X)))
>   (ly:stencil-add
>(make-line-stencil 0.1 (car max-extent) 0 (1-
> (car stil-ext)) 0)
>(make-line-stencil 0.1 (1+ (cdr stil-ext)) 0
> (cdr max-extent) 0)
>(make-line-stencil 0.1 (car max-extent) 0 (car
> max-extent) 1.5)
>(make-line-stencil 0.1 (cdr max-extent) 0 (cdr
> max-extent) 1.5)
>x)))
>(cdr aligned-mols
>   (stacked-stencil (stack-lines -1 0.0 baseline aligned-mols))
>   (stacked-extent (ly:stencil-extent stacked-stencil X)))
>  (ly:stencil-translate-axis stacked-stencil (- (car stacked-extent)) X)))
>
> #(define-markup-command (center-column layout props args)
>(markup-list?)
>#:category align
>#:properties ((baseline-skip))
>(general-column CENTER baseline-skip (interpret-markup-list layout
> props args)))
>
> \header {
>   subtitle = \markup \bold \large \line {
> "from"
> \center-column {
>   "Legend of Heroes"
>   \smaller \smaller \smaller
>   "英雄伝説"
>   "英雄伝説"
>   \huge
>   "英雄伝説"
> }
> "VI:"
> \center-column {
>   "Trails in the Sky"
>   \smaller \smaller \smaller
>   "空の軌跡"
> }
>   }
> }
>
> { c }
>
> You might want to adjust some of the hard-coded values
> (line-thickness, length of "protrusions," offset of bracket from
> text), but this should get you started.
>
> -David
>

Here my approach:

#(define-markup-command (single-hbracket-with-text layout props ref arg)
  (markup? markup?)
  #:properties ((thick 0.1)
(protrusion 1)
(dir 1)
(axis X))
"Prints a bracket overlayed by @code{arg}. Both are center-aligned.

Takes the bracket-ext from @var{ref} in direction of the @code{axis}-property.
The angles of the bracket are printed in direction of the @code{dir}-property.
The appearance is tweakable with overrides for @code{thick} and
@code{protrusion}."

  (define (bracket-stencil stil axis thick protrusion dir)
   (let* ((ext (ly:stencil-extent stil axis))
  (lb (ly:bracket axis ext thick protrusion))
  (rb (ly:bracket axis ext thick (- protrusion
 (if (= 1 dir) lb rb)))

  (let* ((stil (interpret-markup layout props ref)))
(ly:stencil-add
  (ly:stencil-aligned-to
(bracket-stencil stil axis thick protrusion dir) axis CENTER)
  (ly:stencil-aligned-to
(interpret-markup layout props arg) axis CENTER



\markup \bold \large \line {
  "from"
  \override #'(baseline-skip . 1)
  \center-column {
"Legend of Heroes"
\single-hbracket-with-text
  "Legend of Heroes"
  \whiteout \vcenter \smaller \smaller \smaller \pad-x #0.3 "英雄伝説"
  }
  "VI:"
  \override #'(baseline-skip . 1)
  \center-column {
"Trails in the Sky"
\single-hbracket-with-text
  "Trails in the Sky"
  \whiteout \vcenter \smaller \smaller \smaller \pad-x #0.3 "空の軌跡"
  }
}


It needs a ref-markup for the bracket-extent and the text is overlayed
with control-possibilities for the user.
Didn't want to do too much automatically.


Cheers,
  Harm

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


Re: Lines to edges of \center-column

2017-04-22 Thread David Wright
On Sun 23 Apr 2017 at 00:03:36 (+0200), caag...@gmail.com wrote:
> That's certainly a possibility, it's not working too well. I have to
> do the alignment manually, and I can't change the line style. Also,
> it's a bit buggy: putting box-drawers after kanji works fine, but if
> it's after a kana, it's not selectable, and it has a different
> width. There are also small gaps between the segments at certain
> zoom levels.
> 
> I think \fill-with-pattern seems somewhat related to what I want,
> but I'm guessing that one's implemented natively?
> 
> P.S. I think you're exaggerating with the encoding details.

I just pasted the output from
http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=%E2%94%81=char

> On 04/22/17 23:46, David Wright wrote:
> >On Sat 22 Apr 2017 at 22:22:30 (+0200), caag...@gmail.com wrote:
> >>Is there some way to make a center-column draw lines from slightly
> >>outside the text to the edges of the column (see example)?
> >>
> >>In this specific case, I have both English and Japanese names for
> >>stuff, and without those lines, I think it's a bit unclear exactly
> >>what part the Japanese refers to.
> >
> >You could just put Unicode box-drawing characters to either side
> >of the Japanese characters, eg ━ is BOX DRAWINGS HEAVY HORIZONTAL
> >but there are various weights, and corners etc in the same region
> >as this one (Hex code point 2501, Decimal code point 9473,
> >Hex UTF-8 bytes E2 94 81, Octal UTF-8 bytes 342 224 201,
> >UTF-8 bytes as Latin-1 characters bytes â <94> <81>
> >)

Cheers,
David.

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


Re: Lines to edges of \center-column

2017-04-22 Thread David Nalesnik
On Sat, Apr 22, 2017 at 3:22 PM,   wrote:
> Is there some way to make a center-column draw lines from slightly outside
> the text to the edges of the column (see example)?
>
> In this specific case, I have both English and Japanese names for stuff, and
> without those lines, I think it's a bit unclear exactly what part the
> Japanese refers to.
>
> ```
> subtitle = \markup \bold \large \line {
>   "from"
>   \center-column {
> "Legend of Heroes"
> \smaller \smaller \smaller
> "英雄伝説"
>   }
>   "VI:"
>   \center-column {
> "Trails in the Sky"
> \smaller \smaller \smaller
> "空の軌跡"
>   }
> }
> ```

Try this:

\version "2.19.59"

% based on general-column from scm/define-markup-commands.scm
#(define (general-column align-dir baseline mols)
   (let* ((aligned-mols
   (map (lambda (x) (ly:stencil-aligned-to x X align-dir))
 mols))
  (max-extent (ly:stencil-extent (car aligned-mols) X))
  (aligned-mols
   (cons (car aligned-mols)
 (map (lambda (x)
(let ((stil-ext (ly:stencil-extent x X)))
  (ly:stencil-add
   (make-line-stencil 0.1 (car max-extent) 0 (1-
(car stil-ext)) 0)
   (make-line-stencil 0.1 (1+ (cdr stil-ext)) 0
(cdr max-extent) 0)
   (make-line-stencil 0.1 (car max-extent) 0 (car
max-extent) 1.5)
   (make-line-stencil 0.1 (cdr max-extent) 0 (cdr
max-extent) 1.5)
   x)))
   (cdr aligned-mols
  (stacked-stencil (stack-lines -1 0.0 baseline aligned-mols))
  (stacked-extent (ly:stencil-extent stacked-stencil X)))
 (ly:stencil-translate-axis stacked-stencil (- (car stacked-extent)) X)))

#(define-markup-command (center-column layout props args)
   (markup-list?)
   #:category align
   #:properties ((baseline-skip))
   (general-column CENTER baseline-skip (interpret-markup-list layout
props args)))

\header {
  subtitle = \markup \bold \large \line {
"from"
\center-column {
  "Legend of Heroes"
  \smaller \smaller \smaller
  "英雄伝説"
  "英雄伝説"
  \huge
  "英雄伝説"
}
"VI:"
\center-column {
  "Trails in the Sky"
  \smaller \smaller \smaller
  "空の軌跡"
}
  }
}

{ c }

You might want to adjust some of the hard-coded values
(line-thickness, length of "protrusions," offset of bracket from
text), but this should get you started.

-David

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


Re: Lines to edges of \center-column

2017-04-22 Thread caagr98
That's certainly a possibility, it's not working too well. I have to do 
the alignment manually, and I can't change the line style. Also, it's a 
bit buggy: putting box-drawers after kanji works fine, but if it's after 
a kana, it's not selectable, and it has a different width. There are 
also small gaps between the segments at certain zoom levels.


I think \fill-with-pattern seems somewhat related to what I want, but 
I'm guessing that one's implemented natively?


P.S. I think you're exaggerating with the encoding details.

On 04/22/17 23:46, David Wright wrote:

On Sat 22 Apr 2017 at 22:22:30 (+0200), caag...@gmail.com wrote:

Is there some way to make a center-column draw lines from slightly
outside the text to the edges of the column (see example)?

In this specific case, I have both English and Japanese names for
stuff, and without those lines, I think it's a bit unclear exactly
what part the Japanese refers to.


You could just put Unicode box-drawing characters to either side
of the Japanese characters, eg ━ is BOX DRAWINGS HEAVY HORIZONTAL
but there are various weights, and corners etc in the same region
as this one (Hex code point 2501, Decimal code point 9473,
Hex UTF-8 bytes E2 94 81, Octal UTF-8 bytes 342 224 201,
UTF-8 bytes as Latin-1 characters bytes â <94> <81>
)

Cheers,
David.



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


Re: Can't refer to variable directly after defining it

2017-04-22 Thread caagr98

4On 04/22/17 23:47, Thomas Morley wrote:

The reason for it: The parser needs to check whether there is
something else which needs to be added to the definition of 'foo',
(most common example for those stuff is 'addlyrics') or, something
else makes clear the declaration of 'foo' is complete.


Ah, that makes sense. `fff = a''4 \fff` is a bit ambigous.

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


Re: Can't refer to variable directly after defining it

2017-04-22 Thread Thomas Morley
2017-04-22 23:32 GMT+02:00  :
> For some reason, it seems I can't refer to a variable directly after
> defining it. As soon as I do /anything/ else, it works, but `foo={...} \foo`
> gives errors.
>
> ```
> $ cat bug.ly
> \version "2.18.2"
> foo = {c' c' c' c'}
> % bar = {d' d' d' d'}
> % {e' e' e' e'}
> % #foo
> \foo
> $ lilypond bug.ly
> GNU LilyPond 2.18.2
> Processing `bug.ly'
> Parsing...
> bug.ly:6:1: error: unknown escaped string: `\foo'
>
> \foo
> bug.ly:6:5: error: syntax error, unexpected end of input
> \foo
>
> fatal error: failed files: "bug"
> ```
>
> Uncommenting either of the three commented-out lines makes it work, all with
> the same resulting PDF.

The reason for it: The parser needs to check whether there is
something else which needs to be added to the definition of 'foo',
(most common example for those stuff is 'addlyrics') or, something
else makes clear the declaration of 'foo' is complete.

So, in your example 'foo' is used before the parser "understood" it's
definition.

Not sure it's a bug, more a consequence of the wished parser-behaviour.

>
> I'm currently using `\void {}` as a workaround, but I'd obviously prefer not
> having to do that.



Any new declaration will work:

For example:

\new Voice \foo
will work or separate with
#(begin)

David could explain more detailed.

hth a bit,
  Harm

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


Re: Lines to edges of \center-column

2017-04-22 Thread David Wright
On Sat 22 Apr 2017 at 22:22:30 (+0200), caag...@gmail.com wrote:
> Is there some way to make a center-column draw lines from slightly
> outside the text to the edges of the column (see example)?
> 
> In this specific case, I have both English and Japanese names for
> stuff, and without those lines, I think it's a bit unclear exactly
> what part the Japanese refers to.

You could just put Unicode box-drawing characters to either side
of the Japanese characters, eg ━ is BOX DRAWINGS HEAVY HORIZONTAL
but there are various weights, and corners etc in the same region
as this one (Hex code point 2501, Decimal code point 9473,
Hex UTF-8 bytes E2 94 81, Octal UTF-8 bytes 342 224 201,
UTF-8 bytes as Latin-1 characters bytes â <94> <81>
)

Cheers,
David.

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


Can't refer to variable directly after defining it

2017-04-22 Thread caagr98
For some reason, it seems I can't refer to a variable directly after 
defining it. As soon as I do /anything/ else, it works, but `foo={...} 
\foo` gives errors.


```
$ cat bug.ly
\version "2.18.2"
foo = {c' c' c' c'}
% bar = {d' d' d' d'}
% {e' e' e' e'}
% #foo
\foo
$ lilypond bug.ly
GNU LilyPond 2.18.2
Processing `bug.ly'
Parsing...
bug.ly:6:1: error: unknown escaped string: `\foo'

\foo
bug.ly:6:5: error: syntax error, unexpected end of input
\foo

fatal error: failed files: "bug"
```

Uncommenting either of the three commented-out lines makes it work, all 
with the same resulting PDF.


I'm currently using `\void {}` as a workaround, but I'd obviously prefer 
not having to do that.



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


Lines to edges of \center-column

2017-04-22 Thread caagr98
Is there some way to make a center-column draw lines from slightly 
outside the text to the edges of the column (see example)?


In this specific case, I have both English and Japanese names for stuff, 
and without those lines, I think it's a bit unclear exactly what part 
the Japanese refers to.


```
subtitle = \markup \bold \large \line {
  "from"
  \center-column {
"Legend of Heroes"
\smaller \smaller \smaller
"英雄伝説"
  }
  "VI:"
  \center-column {
"Trails in the Sky"
\smaller \smaller \smaller
"空の軌跡"
  }
}
```
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Center Systems

2017-04-22 Thread Johannes Roeßler

Hi Kieren,

yes, I did search - obviously not in the right way.. was to fixated on 
"centered" that I didn't look for "middle of the page" - anyway, thx - 
your hint was the one I needed!


@Harm: thx for trying to help too - should have posted a pic... 
http://joeigraphie.de/lily/CenteredSystem.png


cheers, Joei



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


Re: Center Systems

2017-04-22 Thread Kieren MacMillan
Hi Johannes,

> Nobody? :(

Did you search the archive first?
http://lists.gnu.org/archive/html/lilypond-user/2017-03/msg00452.html

Hope this helps,
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


Re: Center Systems

2017-04-22 Thread Thomas Morley
2017-04-22 18:16 GMT+02:00 Johannes Roeßler :
> Nobody? :(
>
> Hi again,
>
> I'd like to centre my systems vertically. Up to now the only options to
> manipulate the vertical features I use/know are
> ragged-bottom = ##f or ##t in the \paper-Env or explicit
> system-system-spacings. But is there an option to keep the auto-distance
> that
> is used for ragged-bottom = ##t but all systems not top-aligned but
> centre-aligned?

Hi,

well, I did not understand what you're aiming at...

Maybe an image would help. Probably faked by a graphic program.

Did you already try the flexible-vertical-spacing-paper-variables as
listed here:
http://lilypond.org/doc/v2.19/Documentation/notation-big-page#list-of-flexible-vertical-spacing-paper-variables
?

Probably:

\header { tagline = ##f }
\paper {
  ragged-bottom = ##f
  ragged-last-bottom = ##f
  annotate-spacing = ##t
  top-system-spacing =
#'((basic-distance . 6)
   (minimum-distance . 24)
   (padding . 1)
   (stretchability . 0))
  last-bottom-spacing =
#'((basic-distance . 6)
   (minimum-distance . 24)
   (padding . 1)
   (stretchability . 0))
  system-system-spacing =
#'((basic-distance . 12)
   (minimum-distance . 6)
   (padding . 1)
   (stretchability . 1000))

}

\score {
  <<
\new Staff <<
  \repeat unfold 15 { c'4 c' c' c' }
>>
\new Staff {
  \repeat unfold 15 { d'4 d' d' d' }
}
  >>
}

Cheers,
  Harm


>
>
> \version "2.19.58"
>
> \header { tagline = ##f }
> \paper {
>   ragged-bottom = ##f
>   ragged-last-bottom = ##f
> }
>
> \score {
>   <<
> \new Staff <<
>   \repeat unfold 15 { c'4 c' c' c' }
> >>
> \new Staff {
>   \repeat unfold 15 { d'4 d' d' d' }
> }
>   >>
> }
>
> cheers Joei
>
> ***

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


Re: LilyPond Slack channel

2017-04-22 Thread Paul

On 04/22/2017 09:41 AM, Rachael Carlson wrote:


The #lilypond channel IRC is a public space.  I've used it for
communicating with a GSoC student in the past.


Here is a nice little article on the subject: 
https://drewdevault.com/2015/11/01/Please-stop-using-slack.html. It's 
a little old.


Given that LilyPond is a Gnu project it certainly makes more sense to 
me to use IRC --- the whole respecting your freedom thing.


+1 for IRC.

In my GSOC with Mozilla last summer the vast majority of our 
communication happened on the project's IRC channel (...which is also 
the case for all of that project's communication in general).


-Paul

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


Re: Center Systems

2017-04-22 Thread Johannes Roeßler

Nobody? :(

Hi again,

I'd like to centre my systems vertically. Up to now the only options to
manipulate the vertical features I use/know are
ragged-bottom = ##f or ##t in the \paper-Env or explicit
system-system-spacings. But is there an option to keep the auto-distance that
is used for ragged-bottom = ##t but all systems not top-aligned but
centre-aligned?


\version "2.19.58"

\header { tagline = ##f }
\paper {
  ragged-bottom = ##f
  ragged-last-bottom = ##f
}

\score {
  <<
\new Staff <<
  \repeat unfold 15 { c'4 c' c' c' }
>>
\new Staff {
  \repeat unfold 15 { d'4 d' d' d' }
}
  >>
}

cheers Joei

***


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


Portable Lilypond?

2017-04-22 Thread Allen Farley

Hi!
First time in this group, thank you all so much for helpful info!

My Question:
I use portableapps on a flash drive for much of my work, is there a version on 
Lilypond that could work in that environment? I saw Musescore or some such, but 
would like to go with what I know even if I only know a little!

Thank you for the help!
Allen
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond Slack channel

2017-04-22 Thread Rachael Carlson
The #lilypond channel IRC is a public space.  I've used it for
communicating with a GSoC student in the past.


Here is a nice little article on the subject:
https://drewdevault.com/2015/11/01/Please-stop-using-slack.html. It's a
little old.

Given that LilyPond is a Gnu project it certainly makes more sense to me to
use IRC --- the whole respecting your freedom thing.

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


Re: LilyPond Slack channel

2017-04-22 Thread David Kastrup
Jeffery Shivers  writes:

> Hi everyone,
>
> I thought it might be useful to create a Slack channel for LilyPond,
> particularly with the advent of another Google Summer of Code term.
>
> Most GSoC orgs encourage some sort of IRC or other chat protocol for
> students / mentors / admins to interact, but of course the downside is
> that these aren't usually public spaces.

The #lilypond channel IRC is a public space.  I've used it for
communicating with a GSoC student in the past.

Anything wrong with that that a proprietary non-standard tool likely to
go away in few years at most would fix?

-- 
David Kastrup

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