Re: Having trouble understanding optional and variable amount of arguments

2018-02-28 Thread David Kastrup
Stefano Troncaro writes: > Thank you! I see that this is not an option then. Also, I now understand > why I couldn't make the optional arguments work, since I always left them > for last. > > Do you know if it is possible to have a flexible amount of optional >

Re: Having trouble understanding optional and variable amount of arguments

2018-02-28 Thread David Kastrup
Stefano Troncaro writes: > Thank you! I see that this is not an option then. Also, I now understand > why I couldn't make the optional arguments work, since I always left them > for last. You can use an explicit \default to substitute optional arguments in final

Re: Having trouble understanding optional and variable amount of arguments

2018-02-28 Thread Urs Liska
Am 1. März 2018 03:26:31 MEZ schrieb Stefano Troncaro : >Thank you! I see that this is not an option then. Also, I now >understand >why I couldn't make the optional arguments work, since I always left >them >for last. > >Do you know if it is possible to have a

Re: Having trouble understanding optional and variable amount of arguments

2018-02-28 Thread Stefano Troncaro
Thank you! I see that this is not an option then. Also, I now understand why I couldn't make the optional arguments work, since I always left them for last. Do you know if it is possible to have a flexible amount of optional arguments that appear before the last mandatory one? Say, for example

Edition Engraver -- multiple editions

2018-02-28 Thread Craig Dabelstein
Hi all, I thought I had my head around the edition engraver but I'm going wrong somewhere. If I want to have different mods for a score, the parts, and a selection of mods applicable to both the score and the parts, do I need to create three different editions such as this: \addEdition score

Re: Having trouble understanding optional and variable amount of arguments

2018-02-28 Thread Simon Albrecht
On 28.02.2018 23:54, Stefano Troncaro wrote: I need a little help again. I'm struggling to understand how one would make a music function like \tempo, that accepts a variable number of arguments. I couldn't find its definition so I couldn't look for myself. So far I know about making lambdas

Re: Having trouble understanding optional and variable amount of arguments

2018-02-28 Thread Caagr98
I think \tempo (and a few other commands such as \repeat\alternative, \set, and \override) are hardcoded in the Lilypond compiler using methods not accessible through Scheme, so you can't make that kind of functions yourself. You can make functions with optional arguments, though. I think the

Having trouble understanding optional and variable amount of arguments

2018-02-28 Thread Stefano Troncaro
Hello everyone, I need a little help again. I'm struggling to understand how one would make a music function like \tempo, that accepts a variable number of arguments. I couldn't find its definition so I couldn't look for myself. So far I know about making lambdas that take additional arguments

Re: transpose to a set of pitches

2018-02-28 Thread Sirius Barras
On 27 February 2018 at 22:24, Thomas Morley wrote: > 2018-02-27 19:12 GMT+01:00 Sirius Barras : > > I would like to transpose a motif (using \modalTranspose) to a _set_ of > > different pitches. At the moment this is what I do: > > > > scale = {c d

Re: \pralllUp inside Staff

2018-02-28 Thread David Kastrup
Ali Cuota writes: > Hi Torsten, > > done. Again many thanks, this works perfectly. > > BTW: I will publish in imslp, this seems more interesting for > everybody, than mutopia. One does not preclude the other, and the focus of Mutopia is on LilyPond sources. So if I want