Re: Termination of variable definitions

2016-04-19 Thread Johannes Waldmann
http://lists.gnu.org/archive/html/lilypond-user/2016-04/msg00465.html > ... But it's recursive. what does that mean? - J.W. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Lilypond error behaviour

2016-04-19 Thread Johannes Waldmann
Peter Gentry wrote: > ... how the heck does the code know what your intentions are > and what is an "error" in your source. (wearing my professional hat for a moment) in the programing languages I use and teach, the answer is: "from static type declarations". I declare types of

temporarily add extra staff - two times in a row?

2016-04-19 Thread Johannes Waldmann
Hi, How could I get a extra staff temporarily, and then a second time, and both at the same distance to the staff that is running through? I am starting from this: http://lsr.di.unimi.it/LSR/Item?id=110 but it does not work two times in a row: \score{ \new StaffGroup { \new Staff

"lilypond for programmers" untutorial, inviting comments

2016-04-18 Thread Johannes Waldmann
Dear all, I thought I should not just ask naively and complain loudly, but also contribute something. So I made an attempt at explaining (the basics, as I see them, of) "lilypond for programmers" http://www.imn.htwk-leipzig.de/~waldmann/etc/untutorial/lilypond/ ("un-tutorial" in the sense that

Re: Lilypond error behaviour

2016-04-18 Thread Johannes Waldmann
> > ... since this is a regular source of confusion, > You are the first to have complained. This is similar, I think: http://lists.gnu.org/archive/html/lilypond-user/2015-11/msg00282.html - J.W. ___ lilypond-user mailing list lilypond-user@gnu.org

Re: how to send raw MIDI?

2016-04-05 Thread Johannes Waldmann
There is really no way to do this? E.g., this source code http://git.savannah.gnu.org/cgit/lilypond.git/tree/lily/midi-control-function-performer.cc#n74 seems to indicate that I can set values for properties but I'm forced to name them, and the name gets translated to a number via the table at the

Re: Re: Lilypond structure / implicit - explicit / with statement

2016-04-04 Thread Johannes Waldmann
interesting discussion! > My ultimate question boils down to how to assign > a value to a property. That should not even be a question. That ("should not be a question") depends on the mental model. Why do you assume that a property is assignable, or in fact that a (sub)program should consist of

how to send raw MIDI?

2016-04-04 Thread Johannes Waldmann
Hi. Is there a way to send raw MIDI messages (that is, sequences of bytes) from a description inside a lilypond text? (possibly embedded LISP) my application: to an external synthesizer device that accepts a lot of control messages. Base case: I want to send "program changes" where the argument

Re: unfold: volta for typesetting, unfold for MIDI generation?

2016-04-04 Thread Johannes Waldmann
Hi. turns out my previous question already is answered in the docs: http://lilypond.org/doc/v2.18/Documentation/notation/repeats-in-midi and it handles \alternative correctly as well. - J. ___ lilypond-user mailing list lilypond-user@gnu.org

booleans and conditional compilation?

2016-04-01 Thread Johannes Waldmann
Hi. Is there a standard way of conditional compilation, e.g., to turn parts (on any level) of a score on and off? >From a programmer's standpoint, I'd want booleans, and branching, something like let foo = true % or false, somewhere at the top of the file, % or even on the

unfold: volta for typesetting, unfold for MIDI generation?

2016-03-30 Thread Johannes Waldmann
Hi. What is the recommended way to obtain the following behaviour from one and the same source code: repeats typeset as "\repeat volta N" (so the page is not filled with duplicates) but MIDI generated as with "\repeat unfold N" (so the duplicates are heard). Thanks, Johannes. (in other words,

misleading message and exit code when "program too old"

2015-11-11 Thread Johannes Waldmann
Hi. I am getting this: Parsing... error: program too old: 2.18.2 (file requires: 2.19.0) but apparently it's not an error, since the processing continues, and the pdf file is produced. but still, my Makefile is confused because the exit code is 1 (not 0) I can turn off exit code checking in

Re: Re: misleading message and exit code when "program too old"

2015-11-11 Thread Johannes Waldmann
Hi, it's really not a big deal since I have a work-around (ignore the exit code in my Makefile) I understand that specifying and checking the version can be useful. I am just saying that the actual message and behaviour (exit code) is surprising. >From the compilers I know (say, gcc) there's a

Re: lyrics placement change from 2.18 to 2.19 ?

2015-10-16 Thread Johannes Waldmann
On 10/09/2015 06:57 AM, David Kastrup wrote: > ... thanks, that's a very useful code snippet, and it solves my immediate problem. - Johannes. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

lyrics placement change from 2.18 to 2.19 ?

2015-10-08 Thread Johannes Waldmann
Hi. The following snippet is interpreted differently by 2.18.* and 2.19.* : \score { << \new Staff { \key a \minor \relative c'' { a1 \new Voice { c2 d2 } e1 }} \addlyrics { foo bar } >> } notes are displayed identically, but lyrics placement is changed: with 2.18.2, foo -> a1, bar ->