Re: Re-using "\with" contexts

2022-07-15 Thread Alasdair McAndrew
Dear Lukas, Pierre, David, Thank you all for your expert advice and examples. It is indeed quite straightforward - when you know how! I'll now be able to finish off my current piece, and start on the next one... cheers, Alasdair On Sat, Jul 16, 2022 at 1:21 AM David Kastrup wrote: > Alasdair

Re: Acciaccatura question/issue

2022-07-15 Thread Andrew Bernard
As a further aside, because these are graces, there's nothing wrong with having them as 16s but they are not really tuplets three in the space of 2 because the whole point is they occupy no notation time. They'd be clearer just as 3 16s. People like Chopin have long grace runs with maybe 17 not

Re: Acciaccatura question/issue

2022-07-15 Thread Andrew Bernard
Turning this into compilable code with a couple of braces, directly copied from you post, works just fine for me with lilypond 2.23.10. Given they are tuplets technically they are really graces not appogiaturas, but that has no bearing on your issue. And yes it is correct that notation wise gr

Re: Acciaccatura question/issue

2022-07-15 Thread jh
Unfortunately I don't think I can. I can post/send the entire thing which will drive everyone hatefully crazy that's why I just took the part that didn't do what I expected. The first measure is correct with 4 quarters in the bar the second one doesn't only 3 with the acciaccatura. I use a

Re: Acciaccatura question/issue

2022-07-15 Thread Knute Snortum
On Fri, Jul 15, 2022 at 3:34 PM jh wrote: > > using 2.22.2 in fresco, my very old understanding of grace and > acciaccatura is that they receive no duration value in a measure. That's correct. > the > following Minimal example using forget for accidentals when compiled > allows only 3 quarter no

Acciaccatura question/issue

2022-07-15 Thread jh
using 2.22.2 in fresco, my very old understanding of grace and acciaccatura is that they receive no duration value in a measure. the following Minimal example using forget for accidentals when compiled allows only 3 quarter notes in a 4/4 bar. I changed the 8ths in the acciaccatura to 16ths i

Piping contents of SVG directly to stdout

2022-07-15 Thread DoubleFelix
Hello, I'm using lilypond to programmatically generate sheet music. I already have a system in place to crop the SVGs, but now I need to load them in my software. I could use the default behavior of letting lilypond write to some file, and then reading it, but file I/O tends to be pretty expensive

Re: Re-using "\with" contexts

2022-07-15 Thread David Kastrup
Alasdair McAndrew writes: > Hello, > > There are examples of changing a staff context in the manual, for example at > > https://lilypond.org/doc/v2.21/Documentation/snippets/pitches#pitches-creating-custom-key-signatures > > Here a new staff is instantiated; with about 10 lines of "\with" to cha

Re: Re-using "\with" contexts

2022-07-15 Thread Pierre Perol-Schneider
Hi Alasdair, See also: https://lilypond.org/doc/v2.22/Documentation/notation/defining-new-contexts.html Cheers, Pierre Le ven. 15 juil. 2022 à 16:22, Lukas-Fabian Moser a écrit : > Hi Alasdair, > > > Here a new staff is instantiated; with about 10 lines of "\with" to > > change its appearance a

Re: Re-using "\with" contexts

2022-07-15 Thread Lukas-Fabian Moser
Hi Alasdair, Here a new staff is instantiated; with about 10 lines of "\with"  to change its appearance and behaviour. However, if I wish to use several such staves, I don't want to be copying the "\with" material into each one.  Is it possible to create a new context just from such a defini

Re-using "\with" contexts

2022-07-15 Thread Alasdair McAndrew
Hello, There are examples of changing a staff context in the manual, for example at https://lilypond.org/doc/v2.21/Documentation/snippets/pitches#pitches-creating-custom-key-signatures Here a new staff is instantiated; with about 10 lines of "\with" to change its appearance and behaviour. Howe