Re: Defining custom symbols
Hi Robert, Hmm. I have played around with this a bit. I think if you are using safe mode of necessity then you simply can't use lilypond for this use case. Sooner or later you have to mix Lilypond and Scheme, and it is forbidden in safe mode. Transforming the code for the cut from the repo in question, I came up with this: \version "2.19.81" #(define larsenSymbolsOutlineWidth 0.065) #(define larsenSymbolsScale 1.5) #(define larsenSymbolsOutlineWidth 0.065) #(define larsenSymbolsHalignFactor (+ (* larsenSymbolsScale ( / 2 3 ) ) .15 )) #(define larsenSymbolsHalfSize (* .5 larsenSymbolsScale)) #(define larsenSymbolsFlipVertical (* -1 larsenSymbolsScale)) cutCoordinates = #'( (.4 .9) (.55 .825) ) cutStencil = \markup \halign #(/ -3 larsenSymbolsHalignFactor) \stencil #(make-connected-path-stencil cutCoordinates larsenSymbolsOutlineWidth larsenSymbolsScale larsenSymbolsScale #t #t ) #(append! default-script-alist (list `("cut" . ( (text . ,#{ \cutStencil #}) (stencil . ,ly:text-interface::print) ; any other properties (toward-stem-shift-in-column . 0.0) (padding . 0.20) (avoid-slur . around) (direction . ,UP) %cut = #(make-articulation "cut") #(define cut (make-articulation "cut")) test = { \time 2/4 c''2\cut c'' c''\cut } \score { \new Staff \test } But under safe mode Guile throws errors, in accordance with the NR statements. At this point, we need to turn to greater experts than me. I am sure that my posting this weak code above will stimulate somebody of greater knowledge to show if this really is possible. In the meantime, the set of Larsen ornamentation glyphs is a really nice library if one is using it in a 'normal' context. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Defining custom symbols
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 Hickmanwrote: > These symbols do not work in safe mode. > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Defining custom symbols
These symbols do not work in safe mode. On 15 April 2018 at 17:32, Thomas Morleywrote: > 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 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
ok, the latest compiled version seems to be 2.19.80 On 15 April 2018 at 16:58, Andrew Bernardwrote: > 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
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 Hickmanwrote: > -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
-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 Hickmanwrote: > 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
Hi Andrew, lilypond -dcrop larsen-symbols-test.ly dosn't seem to do anything. On 15 April 2018 at 16:25, Andrew Bernardwrote: > 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
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 Hickmanwrote: > 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
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 Morleywrote: > 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 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
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 Hickmanwrote: > 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: LilyPond in a CMS [was: Re: Defining custom symbols]
good to know, thanks. On 15 April 2018 at 13:06, Urs Liskawrote: > > > 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]
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]
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]
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 Meynwrote: > > > 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
Cool, I hope you do well with it. On 15 April 2018 at 11:46, Andrew Bernardwrote: > 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
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]
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: Defining custom symbols
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 Hickmanwrote: > 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
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 Bernardwrote: > 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
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 Hickmanwrote: > 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
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 Hickmanwrote: > 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
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 Bernardwrote: > 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
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