parser location inTab

2019-01-25 Thread Gack McShite
Trying to clean up errors.  I see this pattern a lot, so I assume it
should work.

TrackAVoiceAMusic = #(define-music-function (parser location inTab) (boolean?)
#{
   \tempo 4=106
   \clef #(if $inTab "tab" "treble_8")

and then later

   \context Voice = "TrackAVoiceAMusic" {
  \TrackAVoiceAMusic ##f
   }


or

   \context TabVoice = "TrackAVoiceAMusic" {
  \removeWithTag #'chords
  \removeWithTag #'texts
  \TrackAVoiceAMusic ##t
   }

Originally had \version "2.14.0"
changed to \version "2.18.0"
Same result.

Thanks for hints.

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


Re: lyluatex collection for user without internet connection

2019-01-25 Thread Karlin High
On Fri, Jan 25, 2019 at 7:10 PM Aaron Hill  wrote:
> > In case it helps your friend, I've attached a PDF of the Guile 1.8.7
> > docs which can be used as a more technical reference for the specific
> > flavor of Scheme used by LilyPond.
> >
> > The other day I was putting together a set of PDFs for my own offline
> > reference

Oh, thank you! Did you also build the LilyPond PDF manuals in that
Google Drive share? I notice they are 2.19.82 without the defects in
the notation images currently found on the website copies. I'm glad to
see all the GUB work happening, hopefully there can soon be a clean
build of LilyPond that gets proper PDFs put up again.
-- 
Karlin High
Missouri, USA

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


Re: LP output directive to annotate contexts, staves, voices

2019-01-25 Thread Guy Stalnaker
Thank you.  I'll take a look at that snippet.

--
"Happiness is the meaning and the purpose of life, the whole aim and end of 
human existence."
? Aristotle


From: Barbara Mroczek 
Sent: Friday, January 25, 2019 6:36:58 PM
To: Guy Stalnaker; lilypond-user Mailinglist
Subject: Re: LP output directive to annotate contexts, staves, voices

I believe that this snippet from the first answer may be helpful:
https://stackoverflow.com/questions/5370326/changing-all-the-colors-in-lilypond

But from what understand, more useful may by this part of documentation
http://lilypond.org/doc/v2.19/Documentation/internals/contexts
or rather this
http://lilypond.org/doc/v2.19/Documentation/internals/all-layout-objects
where you can find relevant engraver and check, of which context(s) it is part 
of.

Cheers,
Basia

On śro, 2019-01-23 at 15:50 -0600, Guy Stalnaker wrote:
Wondering if such a thing exists?

I know I can color-code voices (e.g., /voiceOne, etc.) but I'm thinking about 
annotated output for all contexts, staves, voices (something like the Annotate 
Spacing option).

Because LP is written to create implicit contexts it is sometimes difficult to 
see what's being done by LP when it parses code if things go awry. Having 
contexts, named or otherwise, shown in the output would be helpful. I recently 
tried to move lyric output above a staff in a temporary polyphonic context and 
could not get it to work on my own. I eventually found a snippet that the job. 
Having LP show which contexts are which might have revealed why my \lyricsto 
"name" was not working.

Guy

Guy Stalnaker
jimmyg...@gmail.com

___
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


Re: lyluatex collection for user without internet connection

2019-01-25 Thread Aaron Hill

On 2019-01-25 3:52 am, Aaron Hill wrote:

On 2019-01-25 2:56 am, Karlin High wrote:

I know it's incomplete, but I still consider it the best resource for
learning Scheme in LilyPond.


In case it helps your friend, I've attached a PDF of the Guile 1.8.7
docs which can be used as a more technical reference for the specific
flavor of Scheme used by LilyPond.

The other day I was putting together a set of PDFs for my own offline
reference and found that the GNU website only includes a PDF download
for the latest version.  As there are some differences from the
version LilyPond employs, I had to download the source and manually
run the docs through texi2pdf.


Resending with link to a shared folder instead of attachment:
https://drive.google.com/open?id=19NYnDmx9bQ4gPUkv0hUUSeJOh6PFSVMc

-- Aaron Hill

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


Re: LP output directive to annotate contexts, staves, voices

2019-01-25 Thread Barbara Mroczek
I believe that this snippet from the first answer may be helpful:
https://stackoverflow.com/questions/5370326/changing-all-the-colors-in-
lilypond
But from what understand, more useful may by this part of documentation
http://lilypond.org/doc/v2.19/Documentation/internals/contexts
or rather this
http://lilypond.org/doc/v2.19/Documentation/internals/all-layout-object
s
where you can find relevant engraver and check, of which context(s) it
is part of.
Cheers,
Basia
On śro, 2019-01-23 at 15:50 -0600, Guy Stalnaker wrote:
> Wondering if such a thing exists?
> 
> I know I can color-code voices (e.g., /voiceOne, etc.) but I'm
> thinking about annotated output for all contexts, staves, voices
> (something like the Annotate Spacing option).
> 
> Because LP is written to create implicit contexts it is sometimes
> difficult to see what's being done by LP when it parses code if
> things go awry. Having contexts, named or otherwise, shown in the
> output would be helpful. I recently tried to move lyric output above
> a staff in a temporary polyphonic context and could not get it to
> work on my own. I eventually found a snippet that the job. Having LP
> show which contexts are which might have revealed why my \lyricsto
> "name" was not working.
> 
> Guy
> 
> Guy Stalnaker
> jimmyg...@gmail.com
> ___
> 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


Re: Text spanner shorten-pair

2019-01-25 Thread Carl Sorensen


From: Andrew Bernard 
Date: Friday, January 25, 2019 at 6:21 AM
To: lilypond-user Mailinglist 
Subject: Re: Text spanner shorten-pair

Hi Aaron,

I know. This then implies the NR is in error. Do we report a bug? [For the 
reason that being thrown off the scent I spent hours looking all in the 
interfaces to no avail.]

I think this is absolutely a bug.  It should not say shorten-pair applies to 
TextSpanners when it does not.

There are three possible solutions I can see:


  1.  Fix the description of shorten-pair to indicate which spanners it applies 
to
  2.  Create a new interface e.g. shortenable-spanner-interface that contains 
shorten-pair, and then give that interface to all the grobs that accept 
shorten-pair (see dynamic-line-spanner-interface for a similar single-property 
interface).

The padding works. Seems inconsistent to me. Why do we leave TextSpanners out 
of the group?

  1.  Add the shorten-pair property to the spanner-interface (or maybe the 
text-spanner interface) and make sure it works with all of the objects having 
that interface.

My preference right now would probably be #2.

I have not made an exhaustive study of this, but my initial thought is that 
there are two kinds of spanners.

Spanner type A goes from one grob to another (e.g. TextSpanner, glissando).  
These spanners can be shortened by adding padding, because they will need to 
move away from the grobs that they connect when the padding is increased.

Spanner type B goes from one column to another (e.g. hairpin, pedal bracket).  
These spanners don’t have grobs at their ends, so padding will not be effective 
at shortening them.  Hence the need for another method, as met by the 
shorten-pair property.

One could add the shorten-pair property to the type A spanners, but it’s not 
necessary to do so to shorten them.

I don’t know what I prefer for the long-term solution.  It would take more 
study and consideration of the pros and cons of each method.

Thanks,

Carl


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


Re: harp basic muffle

2019-01-25 Thread Rachel Knight
Hi all,

In super old scores, an asterisk was used, but that is not true of scores 
today. The example below that says English Ballad is from 1942. The next one is 
from 2005 and seems to be what is standard. The final one is one I created last 
year with Finale so you could see what proportions they chose. (It is extra 
large as the book is for younger students.)

After studying these examples more, I adjusted the settings to make it 
consistent with current examples.

mufflePath= \markup \path #'0.15 #'((moveto -1.125 0)
(lineto 1.125 0)
(moveto 0 -1.125)
(lineto 0 1.125))

muffleMarkup= \markup \translate #'(1.2 . -1.5) 
 \combine \mufflePath \draw-circle #.75 #0.15 ##f

It would be wonderful for harpists if this glyph could be added.

Best,
Rachel

 














> On Jan 24, 2019, at 10:21 PM, Werner LEMBERG  wrote:
> 
> 
>>> This is Valentins code with a few values changed to get the
>>> appearance closer to what you are looking for: [...]
>> 

>> Perfect, thanks so much!
> 
> Is the exact shape of this symbol `universal'?  I.e., do German,
> French, and US publishers use exactly this shape?  If the answer is
> yes the glyph should be added to the lilypond music fonts.
> 
> 
>Werner

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


Re: harp basic muffle

2019-01-25 Thread Rachel Knight
My piece with the adjusted muffle:


> On Jan 25, 2019, at 10:30 AM, Rachel Knight  wrote:
> 
> Hi all,
> 
> In super old scores, an asterisk was used, but that is not true of scores 
> today. The example below that says English Ballad is from 1942. The next one 
> is from 2005 and seems to be what is standard. The final one is one I created 
> last year with Finale so you could see what proportions they chose. (It is 
> extra large as the book is for younger students.)
> 
> After studying these examples more, I adjusted the settings to make it 
> consistent with current examples.
> 
> mufflePath= \markup \path #'0.15 #'((moveto -1.125 0)
> (lineto 1.125 0)
> (moveto 0 -1.125)
> (lineto 0 1.125))
> 
> muffleMarkup= \markup \translate #'(1.2 . -1.5) 
>\combine \mufflePath \draw-circle #.75 #0.15 ##f
> 
> It would be wonderful for harpists if this glyph could be added.
> 
> Best,
> Rachel
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> On Jan 24, 2019, at 10:21 PM, Werner LEMBERG > > wrote:
>> 
>> 
 This is Valentins code with a few values changed to get the
 appearance closer to what you are looking for: [...]
>>> 
> 
>>> Perfect, thanks so much!
>> 
>> Is the exact shape of this symbol `universal'?  I.e., do German,
>> French, and US publishers use exactly this shape?  If the answer is
>> yes the glyph should be added to the lilypond music fonts.
>> 
>> 
>>Werner
> 

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


Re: lyluatex collection for user without internet connection

2019-01-25 Thread Michael Gerdau
> > at least the windows version of texlive 2018 contains lyluatex 1.06 
> > (installed via the net).
> >
> > However for windows the path provided on the program option must not 
> > include spaces - luatex or whoever parses them reliably removes any blanks. 
> > I had to copy my LP installation to a path w/o spaces
> 
> 
> Enclosing the option in curly brackets didn't help?
> 
>    [program={C:/Path/to/my local lilypond/lilypond-windows.exe}]

At least here
\usepackage[debug=true, nofragment, noragged-right, 
program=C:/LilyPond/usr/bin/lilypond.exe, 
includepaths=C:/Users/mgd/Documents/lilypond-Noten/include]{lyluatex}
works while
\usepackage[debug=true, nofragment, noragged-right, program={C:/Program Files 
(x86)/LilyPond/usr/bin/lilypond.exe}, 
includepaths=C:/Users/mgd/Documents/lilypond-Noten/include]
{lyluatex}
doesn't. However the errormsg seems to indicate that when enclosed in {} the 
problem is that when invoking LP the path would either need to be enclosed in 
'' or the spaces should be escaped.

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: Text spanner shorten-pair

2019-01-25 Thread Andrew Bernard
Hi Aaron,

I know. This then implies the NR is in error. Do we report a bug? [For the
reason that being thrown off the scent I spent hours looking all in the
interfaces to no avail.]

The padding works. Seems inconsistent to me. Why do we leave TextSpanners
out of the group?

Andrew


On Fri, 25 Jan 2019 at 23:32, Aaron Hill  wrote:

> On 2019-01-25 3:36 am, Andrew Bernard wrote:
> > Do TextSpanners support shorten-pair?
> >
> > The NR for 2.19.82 says:
> >
> > shorten-pair (pair of numbers)
> > The lengths to shorten on both sides a hairpin or text-spanner such as
> > a
> > pedal bracket. Positive values shorten the hairpin or text-spanner,
> > while
> > negative values lengthen it.
>
> It's not listed under any of the interfaces that TextSpanner supports.
> Instead, it looks like Hairpin, HorizontalBracket, OttavaBracket,
> PianoPedalBracket, TupletBracket, and VoltaBracket are the only things
> referencing shorten-pair.  And in NEWS.txt there is this comment:
>
>  The ends of hairpins may now be fine-tuned using the ‘shorten-pair’
>  grob property.  This previously only affected text-spanners (e.g.
>  ‘TupletBracket’ and ‘OttavaBracket’).
>
> That all said, it looks like bound-details.left/right support padding:
>
>\override TextSpanner.bound-details.left.padding = #-2
>\override TextSpanner.bound-details.right.padding = #-3
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text spanner shorten-pair

2019-01-25 Thread Aaron Hill

On 2019-01-25 3:36 am, Andrew Bernard wrote:

Do TextSpanners support shorten-pair?

The NR for 2.19.82 says:

shorten-pair (pair of numbers)
The lengths to shorten on both sides a hairpin or text-spanner such as 
a
pedal bracket. Positive values shorten the hairpin or text-spanner, 
while

negative values lengthen it.


It's not listed under any of the interfaces that TextSpanner supports.  
Instead, it looks like Hairpin, HorizontalBracket, OttavaBracket, 
PianoPedalBracket, TupletBracket, and VoltaBracket are the only things 
referencing shorten-pair.  And in NEWS.txt there is this comment:


The ends of hairpins may now be fine-tuned using the ‘shorten-pair’
grob property.  This previously only affected text-spanners (e.g.
‘TupletBracket’ and ‘OttavaBracket’).

That all said, it looks like bound-details.left/right support padding:

  \override TextSpanner.bound-details.left.padding = #-2
  \override TextSpanner.bound-details.right.padding = #-3


-- Aaron Hill

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


Re: lyluatex collection for user without internet connection

2019-01-25 Thread Karlin High

On 1/25/2019 5:09 AM, Urs Liska wrote:

In fact I would consider switching from Gitbook to another build system


For now, it's going to be easier for everyone if I make do with...

wget -r -k -p https://scheme-book.ursliska.de/

...and hope the results are reasonably functional offline.
--
Karlin High
Missouri, USA

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


Text spanner shorten-pair

2019-01-25 Thread Andrew Bernard
Do TextSpanners support shorten-pair?

The NR for 2.19.82 says:

shorten-pair (pair of numbers)
The lengths to shorten on both sides a hairpin or text-spanner such as a
pedal bracket. Positive values shorten the hairpin or text-spanner, while
negative values lengthen it.

This does not work:

\version "2.19.82"

{
  \override TextSpanner.shorten-pair = #'(-3 . 2)
  c''4\startTextSpan
  c''4
  c''
  c''\stopTextSpan
}

What's happening? Did this work in the past?

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


Re: lyluatex collection for user without internet connection

2019-01-25 Thread Urs Liska

Hi Karlin,

thank you for your interest.

Am 25.01.19 um 11:56 schrieb Karlin High:

Urs, is your Scheme Book available as a PDF?





Unfortunately not.


I know it's incomplete, but I still consider it the best resource for 
learning Scheme in LilyPond. The website seems generated with GitBook, 
which appears capable of making PDF and ebooks.


 




That's basically correct.




That does look like it needs changes to project settings, though. I 
tried cloning or downloading the GitLab repository so I could do that 
myself, but the private GitLab instance appears to not allow that. The 
downloads save as empty files and git clone gave an HTTP error of some 
sort.


This is a configuration problem of the Gitlab instance on that 
particular server, for some reason (unknown to me) both downloading and 
cloning is only possible through SSH with a registered SSH key. I was 
basically interrupted in the middle of moving all my stuff to a new 
server and didn't really recover from that shakeup.


What I *can* do is move this repository to my new server where it should 
be possible to get the code - but ...




Comments? If this project wasn't intended for availability as a PDF, 
I'll just omit it from the collection I'm gathering.


... I would be happy to provide this resource as a PDF too, and yet, 
Gitbook allows to do that.


However, the "other" thing I got stuck with at some point is that I 
couldn't get Gitbook working anymore. The basic Gitbook process would 
still work, but I didn't manage to get my custom plugin to work that 
uses python-ly to produce the syntax highlighting. That shouldn't be 
rocket science, but I didn't have the time to familiarize myself more 
with the matter.
(In addition this means that a number of fixes that I applied after 
people pointed me to them aren't available in the online version of the 
book).


In fact I would consider switching from Gitbook to another build system, 
for example based on Pandoc, maybe readthedocs.org would also be an 
alternative. The content is encoded as a bunch of Markdown files, with 
one "TOC" file organizing them to a hierarchy. The specific syntax for 
including stuff like code examples should easily be convertible with 
'sed' or similar tools, so that should in fact be a viable solution - 
provided there's someone who'd be willing to help me with the transition.


Best
Urs


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


Re: lyluatex collection for user without internet connection

2019-01-25 Thread Karlin High

Urs, is your Scheme Book available as a PDF?



I know it's incomplete, but I still consider it the best resource for 
learning Scheme in LilyPond. The website seems generated with GitBook, 
which appears capable of making PDF and ebooks.




That does look like it needs changes to project settings, though. I 
tried cloning or downloading the GitLab repository so I could do that 
myself, but the private GitLab instance appears to not allow that. The 
downloads save as empty files and git clone gave an HTTP error of some sort.


Comments? If this project wasn't intended for availability as a PDF, 
I'll just omit it from the collection I'm gathering.


--
Karlin High
Missouri, USA

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


Re: Compiling lilypond in emacs etc

2019-01-25 Thread David Kastrup
Andrew Bernard  writes:

> What is the best way to add flags and options to the lilypond compile
> command in the emacs lilypond mode?

I use M-x compile RET for that.

> Also, regarding the failure to widen the buffer after the narrowing
> that takes place in certain cases, I see in the archives the
> suggestion to wrap the instances of narrow-to-region in a
> save-restriction block. Is that the proper solution?

Depends on the code, of course.

> And if so, why can't this be incorporated into the lilypond emacs code
> in the distribution builds?

Somebody has to do it.  Things still don't happen by magic.

-- 
David Kastrup

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


Re: lyluatex collection for user without internet connection

2019-01-25 Thread Urs Liska


Am 25.01.19 um 08:30 schrieb Michael Gerdau:

Hi list,

at least the windows version of texlive 2018 contains lyluatex 1.06 (installed 
via the net).

However for windows the path provided on the program option must not include 
spaces - luatex or whoever parses them reliably removes any blanks. I had to 
copy my LP installation to a path w/o spaces



Enclosing the option in curly brackets didn't help?

  [program={C:/Path/to/my local lilypond/lilypond-windows.exe}]



(c:/LilyPond/... in my case; also replacing any backslash with regular forward 
slashes helped )

After that it works like a charm on my windows 10 (mixing Gregorio, LilyPond 
and utilising TeX‘s powerful text processing capabilities)

Kind regards,
Michael


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