Re: Automatically set the page size to fit the music

2018-04-15 Thread Paul Morris

Hi Robert,

On 04/15/2018 11:56 AM, Robert Hickman wrote:

I'm using 2.18 but -dpreview seems to do what I want.


Okay, yeah that works as long as the music fits on the first system on 
the page.  These other features will work when the music is longer than 
that.


-Paul

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


Re: Defining custom symbols

2018-04-15 Thread Andrew Bernard
Hi Robert,

I myself have never used safe mode, but according to the NR:

It is also not possible to import LilyPond variables into Scheme while in
safe mode.

Therefore the present code will not work as written. I'll take a look at it.

Andrew



On 16 April 2018 at 06:48, Robert Hickman  wrote:

> These symbols do not work in safe mode.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


special tempo marks: note value = note value = bpm?

2018-04-15 Thread Reilly Farrell
Hi All,

I'm working on compiling excerpts that undergo changes in time signature
while keeping the beat constant.  My hope is to find a way to incorporate a
general tempo instruction reading something like:

 4 = 4 = 120.

Thus far I haven't found a way of accomplishing this.  Any suggestions you
may have are deeply appreciated!

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


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
These symbols do not work in safe mode.

On 15 April 2018 at 17:32, Thomas Morley  wrote:

> 2018-04-15 18:22 GMT+02:00 Robert Hickman :
> > ok, the latest compiled version seems to be 2.19.80
>
> 2.19.81
>
> http://lilypond.org/downloads/binaries/linux-64/
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Changing spacing between notes a lot

2018-04-15 Thread nokel81
Hello I was wondering if there is a way to change the spacing between notes
many times in a staff. I have tried using \newSpacingSection and \override
Score.SpacingSpanner.spacing-increment but it has not worked.

What I would like to do is to make something like this.
 



--
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: Defining custom symbols

2018-04-15 Thread Thomas Morley
2018-04-15 18:22 GMT+02:00 Robert Hickman :
> ok, the latest compiled version seems to be 2.19.80

2.19.81

http://lilypond.org/downloads/binaries/linux-64/

Cheers,
  Harm

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


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
ok, the latest compiled version seems to be 2.19.80

On 15 April 2018 at 16:58, Andrew Bernard  wrote:

> Strongly recommend using 2.19.81, especially if I am going to help you out
> extending this symbol code library. The wording of unstable on the website
> is open source over modesty, a conventional trope. The latest releases are
> very stable, and I bang away at them all day on very very complex scores
> and even I cant crash them. There are lots of new features in the 2.19
> series that I cannot imagine not wanting to have.
>
> The Ubuntu repo is stuck at the nominated stable release. Just download
> from lilypond.org.
>
> Andrew
>
>
> On 16 April 2018 at 01:50, Robert Hickman  wrote:
>
>> -dpreview does what I want.
>>
>> I have version 2.18 and it looks like -dcrop was added later. using
>> ubuntu16.4 stock repo.
>>
>>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Andrew Bernard
Strongly recommend using 2.19.81, especially if I am going to help you out
extending this symbol code library. The wording of unstable on the website
is open source over modesty, a conventional trope. The latest releases are
very stable, and I bang away at them all day on very very complex scores
and even I cant crash them. There are lots of new features in the 2.19
series that I cannot imagine not wanting to have.

The Ubuntu repo is stuck at the nominated stable release. Just download
from lilypond.org.

Andrew


On 16 April 2018 at 01:50, Robert Hickman  wrote:

> -dpreview does what I want.
>
> I have version 2.18 and it looks like -dcrop was added later. using
> ubuntu16.4 stock repo.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatically set the page size to fit the music

2018-04-15 Thread Robert Hickman
Hi Paul,

I'm using 2.18 but -dpreview seems to do what I want.

On 15 April 2018 at 16:41, Paul Morris  wrote:

> Hi,
>
> On 04/15/2018 10:56 AM, Robert Hickman wrote:
> > I'm trying to set the page size so that it automatically
> > matches the size of the staff with zero margins.
>
> Take a look at "One-page page breaking" and "One-line-auto-height page
> breaking":
>
> http://lilypond.org/doc/v2.19/Documentation/notation/page-br
> eaking#index-ly_003aone_002dpage_002dbreaking
>
> These features are in LilyPond 2.19 (not in LilyPond 2.18).
>
> (Changed subject from "Defining custom symbols".)
>
> -Paul
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
-dpreview does what I want.

I have version 2.18 and it looks like -dcrop was added later. using
ubuntu16.4 stock repo.

On 15 April 2018 at 16:38, Robert Hickman  wrote:

> Hi Andrew,
>
> lilypond -dcrop larsen-symbols-test.ly
>
> dosn't seem to do anything.
>
> On 15 April 2018 at 16:25, Andrew Bernard 
> wrote:
>
>> Hi Robert,
>>
>> Not sure what you want re size but lilypond -dcrop will make a cropped
>> image.
>>
>> Andrew
>>
>>
>>
>> On 16 April 2018 at 01:20, Robert Hickman  wrote:
>>
>>> I'm not setting the size to "quarto", I'm asking basically how to
>>> disable fixed page sizing. I want the output to be like the attached image,
>>> zero white-space. I made this by cropping the image in gimp, doing that for
>>> every one would be a nightmare.
>>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Automatically set the page size to fit the music

2018-04-15 Thread Paul Morris

Hi,

On 04/15/2018 10:56 AM, Robert Hickman wrote:
> I'm trying to set the page size so that it automatically
> matches the size of the staff with zero margins.

Take a look at "One-page page breaking" and "One-line-auto-height page 
breaking":


http://lilypond.org/doc/v2.19/Documentation/notation/page-breaking#index-ly_003aone_002dpage_002dbreaking

These features are in LilyPond 2.19 (not in LilyPond 2.18).

(Changed subject from "Defining custom symbols".)

-Paul



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


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
Hi Andrew,

lilypond -dcrop larsen-symbols-test.ly

dosn't seem to do anything.

On 15 April 2018 at 16:25, Andrew Bernard  wrote:

> Hi Robert,
>
> Not sure what you want re size but lilypond -dcrop will make a cropped
> image.
>
> Andrew
>
>
>
> On 16 April 2018 at 01:20, Robert Hickman  wrote:
>
>> I'm not setting the size to "quarto", I'm asking basically how to
>> disable fixed page sizing. I want the output to be like the attached image,
>> zero white-space. I made this by cropping the image in gimp, doing that for
>> every one would be a nightmare.
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Andrew Bernard
Hi Robert,

Not sure what you want re size but lilypond -dcrop will make a cropped
image.

Andrew



On 16 April 2018 at 01:20, Robert Hickman  wrote:

> I'm not setting the size to "quarto", I'm asking basically how to disable
> fixed page sizing. I want the output to be like the attached image, zero
> white-space. I made this by cropping the image in gimp, doing that for
> every one would be a nightmare.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
I'm not setting the size to "quarto", I'm asking basically how to disable
fixed page sizing. I want the output to be like the attached image, zero
white-space. I made this by cropping the image in gimp, doing that for
every one would be a nightmare.

\version "2.18.2"
\include "larsen-symbols.ily"

{
\numericTimeSignature
\time 2/2

g'2\cut | g'2\strike |
}



On 15 April 2018 at 16:15, Thomas Morley  wrote:

> 2018-04-15 16:56 GMT+02:00 Robert Hickman :
> > I'm trying to set the page size so that it automatically
> > matches the size of the staff with zero margins. Looking
> > at the documentation on this shows the following command,
> >
> > but I cannot see how to set it to scale 'as big or small
> > as needed'. The section on automatic scaling isn't clear
> > as this appears to relate to internal operation of the software,
> >
> > not to automatically scaling the size of the page..
> >
> >
> > #(set-default-paper-size "quarto")
> >
> > Attached is what I'm currently getting, with a large amount
> >
> > of empty space.
>
>
> Hi,
>
> I'm pretty sure the attached pdf isn't "quarto".
>
> Could you share your code?
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Thomas Morley
2018-04-15 16:56 GMT+02:00 Robert Hickman :
> I'm trying to set the page size so that it automatically
> matches the size of the staff with zero margins. Looking
> at the documentation on this shows the following command,
>
> but I cannot see how to set it to scale 'as big or small
> as needed'. The section on automatic scaling isn't clear
> as this appears to relate to internal operation of the software,
>
> not to automatically scaling the size of the page..
>
>
> #(set-default-paper-size "quarto")
>
> Attached is what I'm currently getting, with a large amount
>
> of empty space.


Hi,

I'm pretty sure the attached pdf isn't "quarto".

Could you share your code?

Cheers,
  Harm

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


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
I'm trying to set the page size so that it automatically
matches the size of the staff with zero margins. Looking
at the documentation on this shows the following command,

but I cannot see how to set it to scale 'as big or small
as needed'. The section on automatic scaling isn't clear
as this appears to relate to internal operation of the software,

not to automatically scaling the size of the page..


#(set-default-paper-size "quarto")

Attached is what I'm currently getting, with a large amount

of empty space.



On 15 April 2018 at 11:49, Robert Hickman  wrote:

> Cool, I hope you do well with it.
>
> On 15 April 2018 at 11:46, Andrew Bernard 
> wrote:
>
>> Hi Robert,
>>
>> That symbol set is so nice I have decided to dig out my tin whistle and
>> learn it properly!
>>
>> Andrew
>>
>>
>


larsen-symbols-test.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Pedal bracket alignment

2018-04-15 Thread Mark Stephen Mrotek
Edward,

Your requirements are more exacting than my knowledge/skill can meet.

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Edward Neeman
Sent: Saturday, April 14, 2018 8:04 PM
To: Lilypond-user 
Subject: Re: Pedal bracket alignment

 

Hello Mark,

 

After playing around with this problem, I’ve found a few ways to get a 
reasonable result. Some of the strategies I tried are in the attached file. My 
dream option would be to be able to create a function that would give one set 
of shorten-pair values at the Ped. marking, and another set of values for the 
pedal changes.

 

Thanks,

Edward

 

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


Re: numeric time signature (was Defining custom symbols)

2018-04-15 Thread Robert Hickman
Thanks, I have been reading the documentation, but missed that the example
was wrong.

On 15 April 2018 at 14:54, Andrew Bernard  wrote:

> Hi Robert,
>
> You can search the lilypond user mailing list archives. There is a large
> amount of discussion on this topic.
>
> https://lists.gnu.org/archive/html/lilypond-user/
>
> Andrew
>
>
>
> On 15 April 2018 at 23:13, Robert Hickman  wrote:
>
>>
>>
>> What option do I need to crop the output to the size of the score,
>> getting rid of the blank page area?
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: numeric time signature (was Defining custom symbols)

2018-04-15 Thread Andrew Bernard
Hi Robert,

You can search the lilypond user mailing list archives. There is a large
amount of discussion on this topic.

https://lists.gnu.org/archive/html/lilypond-user/

Andrew



On 15 April 2018 at 23:13, Robert Hickman  wrote:

>
>
> What option do I need to crop the output to the size of the score, getting
> rid of the blank page area?
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: numeric time signature (was Defining custom symbols)

2018-04-15 Thread Robert Hickman
Hello again,

I've just downloaded the symbol repo and have been experimenting. I Noticed
that the time signature set in the file is not reflected in the output
(using the example from the repo). It displays common time 'C' instead of
2/4.  Adding \numericTimeSignature causes it to create a second blank score
at the top of the output.

What option do I need to crop the output to the size of the score, getting
rid of the blank page area?

\version "2.18.2"
\include "larsen-symbols.ily"

\numericTimeSignature
\time 2/4

{
b'2\cut
b'\strike
b'\slideUp
b'\slideDown
b'\longRoll
b'\shortRoll
b'\longDoubleCutRoll
b'\shortDoubleCutRoll
b'\crann
b'\shortCrann
b'\trill
b'\singleTrill
b'\shake
b'\breathe

  }


On 15 April 2018 at 11:49, Robert Hickman  wrote:

> Cool, I hope you do well with it.
>
> On 15 April 2018 at 11:46, Andrew Bernard 
> wrote:
>
>> Hi Robert,
>>
>> That symbol set is so nice I have decided to dig out my tin whistle and
>> learn it properly!
>>
>> Andrew
>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond in a CMS [was: Re: Defining custom symbols]

2018-04-15 Thread Robert Hickman
good to know, thanks.

On 15 April 2018 at 13:06, Urs Liska  wrote:

>
>
> Am 15. April 2018 13:47:43 MESZ schrieb Simon Albrecht <
> simon.albre...@mail.de>:
> >On 15.04.2018 13:25, Robert Hickman wrote:
> >> |Is it sufficient to concatenate the symbol file at the beginning of
> >> the user code?|
> >
> >\include does exactly that: read the contents of the included file
> >verbatim.
>
> That means: yes, you can prohibit the use of \include and instead include
> some (safe) code before it even reaches LilyPond.
>
> Urs
>
> >
> >Best, Simon
> >
> >___
> >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: LilyPond in a CMS [was: Re: Defining custom symbols]

2018-04-15 Thread Urs Liska


Am 15. April 2018 13:47:43 MESZ schrieb Simon Albrecht :
>On 15.04.2018 13:25, Robert Hickman wrote:
>> |Is it sufficient to concatenate the symbol file at the beginning of 
>> the user code?|
>
>\include does exactly that: read the contents of the included file
>verbatim.

That means: yes, you can prohibit the use of \include and instead include some 
(safe) code before it even reaches LilyPond.

Urs

>
>Best, Simon
>
>___
>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: LilyPond in a CMS [was: Re: Defining custom symbols]

2018-04-15 Thread Simon Albrecht

On 15.04.2018 13:25, Robert Hickman wrote:
|Is it sufficient to concatenate the symbol file at the beginning of 
the user code?|


\include does exactly that: read the contents of the included file verbatim.

Best, Simon

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


Re: LilyPond in a CMS [was: Re: Defining custom symbols]

2018-04-15 Thread Robert Hickman
Thanks, -dsafe looks like the simplest to use but 'In addition, safe mode
disallows \include' which I need to use the symbol file. Is it sufficient
to concatenate the symbol file at the beginning of the user code?


On 15 April 2018 at 11:45, Malte Meyn  wrote:

>
>
> Am 15.04.2018 um 12:41 schrieb Robert Hickman:
>
>> Second thought: (see my previous, sorry about double posting).
>>
>> What are the risks of integrating lillypond into a CMS from a security
>> perspective, does it allow you to run shell commands for instance? I will
>> not be exposing this publicly, just to the admin interface only I use. I
>> like to know what exploits anything I use could expose howeaver.
>>
>
> Have a look at the options --jail and -dsafe at
> http://lilypond.org/doc/v2.19/Documentation/usage-big-page.html
>
> ___
> 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: Defining custom symbols

2018-04-15 Thread Robert Hickman
Cool, I hope you do well with it.

On 15 April 2018 at 11:46, Andrew Bernard  wrote:

> Hi Robert,
>
> That symbol set is so nice I have decided to dig out my tin whistle and
> learn it properly!
>
> Andrew
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Andrew Bernard
Hi Robert,

That symbol set is so nice I have decided to dig out my tin whistle and
learn it properly!

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


LilyPond in a CMS [was: Re: Defining custom symbols]

2018-04-15 Thread Malte Meyn



Am 15.04.2018 um 12:41 schrieb Robert Hickman:

Second thought: (see my previous, sorry about double posting).

What are the risks of integrating lillypond into a CMS from a security 
perspective, does it allow you to run shell commands for instance? I 
will not be exposing this publicly, just to the admin interface only I 
use. I like to know what exploits anything I use could expose howeaver.


Have a look at the options --jail and -dsafe at 
http://lilypond.org/doc/v2.19/Documentation/usage-big-page.html


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


Re: \include command and local network folders

2018-04-15 Thread foxfanfare
David Wright wrote
> It might be worth posting screenshots of Fresco failing with correctly
> specified filenames, particularly if you want to report a bug.
> 
> What happens if you run your test file directly from LP, both .ly
> and .ily files—does that work correctly? If so, there may be a
> problem with how filenames are passed around in Fresco.
> I don't know how you do system call tracing in windows, particularly
> from a GUI. That's one for windows users.
> 
> Cheers,
> David.


Hi everyone,

As suggested, I have conducted some tests in order to know a bit more about
the rendering problem in Lilypond. And I found some things weird!

Here are my test conditions:

- Windows 10 (I tested this on two computers, Home Edition & Professional
Edition)
- Lilypond version: 2.18.2 (I also had the same results with the latest
2.19.81, but I prefered post here the logs of the stable version in case it
was beta related)
- Conditions: 
1. I have generated the "A scale in LilyPond" default first score and save
it as "test.ly"
2. I will use two types of rendering the score:
a) drag & drop the *.ly file on the "LilyPond" shortcut created
automatically on Windows
b) double click directly on the *.ly file
3. In each cases, I get the log.txt, but the creation of the *.PS and its
conversion to *.PDF vary according to the source folders.

So here it is:

1. Beta test with the original file saved on the desktop:

a) Drag & Drop the file (it works)

# -*-compilation-*-
Traitement de « test.ly »
Analyse...
Interprétation en cours de la musique...
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Sortie mise en page vers « Users/MYNAME/Desktop/test.ps »...
Conversion « ./Users/MYNAME/Desktop/test.pdf »...
Compilation menée à son terme, avec succès.

b) Double click on the file (it works)

# -*-compilation-*-
Traitement de « test.ly »
Analyse...
Interprétation en cours de la musique...
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Sortie mise en page vers « Users/MYNAME/Desktop/test.ps »...
Conversion « ./Users/MYNAME/Desktop/test.pdf »...
Compilation menée à son terme, avec succès.

***

2. Moving the test.ly on my local d:\ drive

a) Drag & Drop the file (doesn't work)

# -*-compilation-*-
Avertissement : fichier non trouvé : « D:\test.ly »
erreur fatale : erreur sur les fichiers "D:\\test.ly"

b) Double click on the file (works)

# -*-compilation-*-
Traitement de « test.ly »
Analyse...
Interprétation en cours de la musique...
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Sortie mise en page vers « test.ps »...
Conversion à « ./test.pdf »...
Compilation menée à son terme, avec succès.

***

3. Accessing a distant folder by its IP adress:

a) Drag & Drop the file (doesn't work)

# -*-compilation-*-
Avertissement : fichier non trouvé : « \\192.168.0.13\Public\test.ly »
erreur fatale : erreur sur les fichiers "192.168.0.13\\Public\\test.ly"

b) Double Click on the file (doesn't work)

# -*-compilation-*-
Avertissement : fichier non trouvé : « \\192.168.0.13\Public\test.ly »
erreur fatale : erreur sur les fichiers "192.168.0.13\\Public\\test.ly"

***

4. Accessing a distant folder by its server name

a) Drag & Drop the file (doesn't work)

# -*-compilation-*-
Avertissement : fichier non trouvé : « \\WDMYCLOUDEX2\Public\test.ly »
erreur fatale : erreur sur les fichiers "WDMYCLOUDEX2\\Public\\test.ly"

b) Double Click on the file (doesn't work)

# -*-compilation-*-
Avertissement : fichier non trouvé : « \\WDMYCLOUDEX2\Public\test.ly »
erreur fatale : erreur sur les fichiers "WDMYCLOUDEX2\\Public\\test.ly"

***

5. Accessing a distant folder after mapping it in Windows (Z:\):

a) Drag & Drop the file (doesn't work)

# -*-compilation-*-
Avertissement : fichier non trouvé : « Z:\test.ly »
erreur fatale : erreur sur les fichiers "Z:\\test.ly"

b) Double Click on the file (works)

# -*-compilation-*-
Traitement de « test.ly »
Analyse...
Interprétation en cours de la musique...
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Sortie mise en page vers « test.ps »...
Conversion à « ./test.pdf »...
Compilation menée à son terme, avec succès.

***

So, here are some basic conclusions:

1. Drag & Drop a *.ly file on the LilyPond shortcut (as suggested in the
first automatically generated score), doesn't work AT ALL... Except when the
file was on the desktop with the shortcut.
2. Accessing a distant folder on Windows works ONLY after mapping the same
folder with a drive letter.
3. The problem isn't Frescobaldi but LilyPond 

Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
Second thought: (see my previous, sorry about double posting).

What are the risks of integrating lillypond into a CMS from a security
perspective, does it allow you to run shell commands for instance? I will
not be exposing this publicly, just to the admin interface only I use. I
like to know what exploits anything I use could expose howeaver.

On 15 April 2018 at 11:31, Robert Hickman  wrote:

> Yes that looks good thanks. I asked about the font because I asked Grey if
> he was aware of symbols for lillypond. He handn't heard of LP but mentioned
> the font and asked if it was compatible.
>
> On 15 April 2018 at 11:20, Andrew Bernard 
> wrote:
>
>> Hi Robert,
>>
>> I cloned the git repository and compiled the Larsen symbols. I all works
>> beautifully with the current highest revision of lilypond 2.19.81, even
>> though the code is somewhat old.
>>
>> Here's the result of the test code attached as an image.
>>
>> The code fr this is not hard to understand:
>>
>> 
>>
>> \version "2.19.81"
>> \include "larsen-symbols.ily"
>>
>>   \time 2/4
>>   {
>>
>> b'2\cut
>> b'\strike
>> b'\slideUp
>> b'\slideDown
>> b'\longRoll
>> b'\shortRoll
>> b'\longDoubleCutRoll
>> b'\shortDoubleCutRoll
>> b'\crann
>> b'\shortCrann
>> b'\trill
>> b'\singleTrill
>> b'\shake
>> b'\breathe
>>   }
>>
>> 
>>
>> I'd really recommend you go with lilypond as it is incredibly powerful -
>> witness this extension as an example - and it does not take long to learn
>> the basics.
>>
>>
>> Andrew
>>
>>
>> On 15 April 2018 at 20:07, Robert Hickman  wrote:
>>
>>> Yes that's what I was looking for, thanks.
>>>
>>> I've also found that Grey has published a font with his symbols, how
>>> does one approach integrating fonts? Chris Throup, who  is linked to from
>>> the page  Andrew shared linked  to, suggests this is difficult to do.
>>>
>>> On 15 April 2018 at 06:22, Andrew Bernard 
>>> wrote:
>>>
 Hi Robert,

 Is this of any use?

 https://bretpimentel.com/irish-flutewhistle-ornamentation-sy
 mbols-a-la-grey-larsen-in-lilypond/

 If you need adjustments to anything I can help.

 [Lilypond can be made to do pretty much anything as it is powerfully
 extensible,]

 Andrew


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


Re: Pedal bracket alignment

2018-04-15 Thread Thomas Morley
2018-04-15 5:04 GMT+02:00 Edward Neeman :
> My dream option would be to be able to create a function that would give one
> set of shorten-pair values at the Ped. marking, and another set of values
> for the pedal changes.


How about attached.

It doesn't move the "Ped."-marking, though.
Please read comments and doc-strings.
Not tested beyond the given example!

Cheers,
  Harm
\version "2.18.2" 


#(define (note-column::main-extent grob)
"Return extent of the noteheads in the 'main column', (i.e. excluding any
suspended noteheads), or extent of the rest (if there are no heads)."
  (let* ((note-heads (ly:grob-object grob 'note-heads))
 (stem (ly:grob-object grob 'stem))
 (rest (ly:grob-object grob 'rest)))
(cond ((ly:grob-array? note-heads)
   (let (;; get the cdr from all note-heads-extents, where the car
 ;; is zero
 (n-h-right-coords
   (filter-map
 (lambda (n-h)
   (let ((ext (ly:grob-extent n-h grob X)))
  (and (= (car ext) 0) (cdr ext
 (ly:grob-array->list note-heads
 ;; better be paranoid, find the max of n-h-right-coords and 
 ;; return a pair with (cons 0 )
 (cons 0.0 (reduce max 0 n-h-right-coords
  ((ly:grob? rest)
   (ly:grob-extent rest grob X))
  ;; better be paranoid
  (else '(0 . 0)

#(define (adjust-piano-pedal-bracket val)
  (lambda (grob)
;; grob is supposed to be PianoPedalBracket.
;; Returns a number-pair to set shorten-pair.
;; This pair is calculated warranting no gap between consecutive
;; PianoPedalBrackets.
;; If `val' is #f the extent of left and right bounding
;; NoteColumns are calculated. Half of those lengths are taken then.
;; (Only the NoteColumn's main extent is taken, disregarding suspended
;; NoteHeads)
 (let* ((orig (ly:grob-original grob))
(siblings (if (ly:grob? orig)
  (ly:spanner-broken-into orig) '()))
(with-text? (ly:grob? (ly:grob-object grob 'pedal-text)))
(left-val #f)
(right-val #f))

   (if val
   (begin
 (set! left-val val)
 (set! right-val (- val)))
   (let* ((left-bound (ly:spanner-bound grob LEFT))
  (left-bound-elts-array (ly:grob-object left-bound 'elements))
  (left-bound-elts-list 
(if (ly:grob-array? left-bound-elts-array)
(ly:grob-array->list left-bound-elts-array)
'()))
  (left-bound-nc-list
(filter
  (lambda (g)
(grob::has-interface g 'note-column-interface))
  left-bound-elts-list))
  (left-bound-note-column
(if (pair? left-bound-nc-list)
(car left-bound-nc-list)
#f))
  (left-val-default
(if left-bound-note-column
(/
   (interval-length 
 (note-column::main-extent left-bound-note-column))
   2)
0))
  (right-bound (ly:spanner-bound grob RIGHT))
  (right-bound-elts-array 
(ly:grob-object right-bound 'elements))
  (right-bound-elts-list 
(if (ly:grob-array? right-bound-elts-array)
(ly:grob-array->list right-bound-elts-array)
'()))
  (right-bound-nc-list
(filter
  (lambda (g)
(grob::has-interface g 'note-column-interface))
  right-bound-elts-list))
  (right-bound-note-column
(if (pair? right-bound-nc-list)
(car right-bound-nc-list)
#f))
  (right-val-default
(if right-bound-note-column
(/ 
   (interval-length 
 (note-column::main-extent right-bound-note-column))
   -2)
0)))
  (set! left-val left-val-default)
  (set! right-val right-val-default)))

   (if (pair? siblings) 
   (cond
 ((equal? grob (car siblings))
   (if with-text?
   (cons 0 0)
   (cons left-val 0)))
 ((equal? grob (last siblings))
   (cons 0 right-val))
 (else
   (cons 0 0)))
   (if with-text?
   (cons 0 right-val)
   (cons left-val right-val))


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
Yes that looks good thanks. I asked about the font because I asked Grey if
he was aware of symbols for lillypond. He handn't heard of LP but mentioned
the font and asked if it was compatible.

On 15 April 2018 at 11:20, Andrew Bernard  wrote:

> Hi Robert,
>
> I cloned the git repository and compiled the Larsen symbols. I all works
> beautifully with the current highest revision of lilypond 2.19.81, even
> though the code is somewhat old.
>
> Here's the result of the test code attached as an image.
>
> The code fr this is not hard to understand:
>
> 
>
> \version "2.19.81"
> \include "larsen-symbols.ily"
>
>   \time 2/4
>   {
>
> b'2\cut
> b'\strike
> b'\slideUp
> b'\slideDown
> b'\longRoll
> b'\shortRoll
> b'\longDoubleCutRoll
> b'\shortDoubleCutRoll
> b'\crann
> b'\shortCrann
> b'\trill
> b'\singleTrill
> b'\shake
> b'\breathe
>   }
>
> 
>
> I'd really recommend you go with lilypond as it is incredibly powerful -
> witness this extension as an example - and it does not take long to learn
> the basics.
>
>
> Andrew
>
>
> On 15 April 2018 at 20:07, Robert Hickman  wrote:
>
>> Yes that's what I was looking for, thanks.
>>
>> I've also found that Grey has published a font with his symbols, how does
>> one approach integrating fonts? Chris Throup, who  is linked to from the
>> page  Andrew shared linked  to, suggests this is difficult to do.
>>
>> On 15 April 2018 at 06:22, Andrew Bernard 
>> wrote:
>>
>>> Hi Robert,
>>>
>>> Is this of any use?
>>>
>>> https://bretpimentel.com/irish-flutewhistle-ornamentation-sy
>>> mbols-a-la-grey-larsen-in-lilypond/
>>>
>>> If you need adjustments to anything I can help.
>>>
>>> [Lilypond can be made to do pretty much anything as it is powerfully
>>> extensible,]
>>>
>>> Andrew
>>>
>>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Andrew Bernard
Hi Robert,

I cloned the git repository and compiled the Larsen symbols. I all works
beautifully with the current highest revision of lilypond 2.19.81, even
though the code is somewhat old.

Here's the result of the test code attached as an image.

The code fr this is not hard to understand:



\version "2.19.81"
\include "larsen-symbols.ily"

  \time 2/4
  {

b'2\cut
b'\strike
b'\slideUp
b'\slideDown
b'\longRoll
b'\shortRoll
b'\longDoubleCutRoll
b'\shortDoubleCutRoll
b'\crann
b'\shortCrann
b'\trill
b'\singleTrill
b'\shake
b'\breathe
  }



I'd really recommend you go with lilypond as it is incredibly powerful -
witness this extension as an example - and it does not take long to learn
the basics.


Andrew


On 15 April 2018 at 20:07, Robert Hickman  wrote:

> Yes that's what I was looking for, thanks.
>
> I've also found that Grey has published a font with his symbols, how does
> one approach integrating fonts? Chris Throup, who  is linked to from the
> page  Andrew shared linked  to, suggests this is difficult to do.
>
> On 15 April 2018 at 06:22, Andrew Bernard 
> wrote:
>
>> Hi Robert,
>>
>> Is this of any use?
>>
>> https://bretpimentel.com/irish-flutewhistle-ornamentation-
>> symbols-a-la-grey-larsen-in-lilypond/
>>
>> If you need adjustments to anything I can help.
>>
>> [Lilypond can be made to do pretty much anything as it is powerfully
>> extensible,]
>>
>> Andrew
>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Andrew Bernard
Hi Robert,

Using a font is not how this is done in lilypond. It's a matter of defining
new symbols that can be used by the engraver modules for the notes, like
articulations and so on. This is fairly advanced to build from scratch, but
you can just use the results of the work I pointed to as a type of library,
without having to know all the low level details.

Looking for a font with Irish symbols is not the way to go.

Andrew


On 15 April 2018 at 20:07, Robert Hickman  wrote:

> Yes that's what I was looking for, thanks.
>
> I've also found that Grey has published a font with his symbols, how does
> one approach integrating fonts? Chris Throup, who  is linked to from the
> page  Andrew shared linked  to, suggests this is difficult to do.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Defining custom symbols

2018-04-15 Thread Robert Hickman
Yes that's what I was looking for, thanks.

I've also found that Grey has published a font with his symbols, how does
one approach integrating fonts? Chris Throup, who  is linked to from the
page  Andrew shared linked  to, suggests this is difficult to do.

On 15 April 2018 at 06:22, Andrew Bernard  wrote:

> Hi Robert,
>
> Is this of any use?
>
> https://bretpimentel.com/irish-flutewhistle-ornamentation-symbols-a-la-
> grey-larsen-in-lilypond/
>
> If you need adjustments to anything I can help.
>
> [Lilypond can be made to do pretty much anything as it is powerfully
> extensible,]
>
> Andrew
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user