Re: Why no numbers allowed in variables?

2018-10-02 Thread Maarten Deen
On 2018-10-02 22:56, David Kastrup wrote: Kieren MacMillan writes: Hi Harm, val = "foo" << \new Staff \repeat unfold 4 c'4 \new Lyrics \lyricmode { \val4 \val2 \val4 } \new Lyrics \lyricmode { \val4 \val4 \val2 } Your proposal would make it impossible. Thanks for the examples. Obvio

Re: Why no numbers allowed in variables?

2018-10-02 Thread Maarten Deen
On 2018-10-02 18:31, Kieren MacMillan wrote: Hi Maarten, Why are there no numbers allowed in variable names? \version "2.18.2" "part1" = { c''4 4 4 4 } \score { \new Staff \"part1" } As for why you need the quotes… well, I’ll leave the explanation up to more knowledgeable people than I.

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
David Kastrup writes: > Thomas Morley writes: > >> It was an observation, not a proposal. >> Speaking only for myself, I can perfectly life without the >> comma-syntax in definitions and their calls. > > It feels weird in definitions. Don't remember whether there was some > original rationale f

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Thomas Morley writes: > It was an observation, not a proposal. > Speaking only for myself, I can perfectly life without the > comma-syntax in definitions and their calls. It feels weird in definitions. Don't remember whether there was some original rationale for it (like consistency, possibly c

Re: Why no numbers allowed in variables?

2018-10-02 Thread Thomas Morley
Am Mi., 3. Okt. 2018 um 00:38 Uhr schrieb David Kastrup : > > Thomas Morley writes: > > > Am Di., 2. Okt. 2018 um 23:17 Uhr schrieb David Kastrup : > > > >> So what is wrong with using \"var2" or \var.2 ? > > > > As a side note. > > > > I wasn't aware a comma works as well > > qwerty,2 = "bar" > >

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Thomas Morley writes: > Am Di., 2. Okt. 2018 um 23:17 Uhr schrieb David Kastrup : > >> So what is wrong with using \"var2" or \var.2 ? > > As a side note. > > I wasn't aware a comma works as well > qwerty,2 = "bar" That's likely a side effect of comma-separated lists having been made identical t

Re: Why no numbers allowed in variables?

2018-10-02 Thread J Martin Rushton
On 02/10/18 23:25, David Kastrup wrote: > J Martin Rushton writes: > >> This discussion is strangely familiar. As one who learnt on FORTRAN IV >> many years ago, I'm used to seeing that: >> >> READ INPUT TAPE 5, 501, IA, IB, IC >> and >> READINPUTTAPE5,501,IA,IB,IC >> or even >> RE ADIN PUTTA

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
J Martin Rushton writes: > This discussion is strangely familiar. As one who learnt on FORTRAN IV > many years ago, I'm used to seeing that: > > READ INPUT TAPE 5, 501, IA, IB, IC > and > READINPUTTAPE5,501,IA,IB,IC > or even > RE ADIN PUTTA PE5,5 01,I A,I B,I C > > are the same. I'm sure there

Re: Why no numbers allowed in variables?

2018-10-02 Thread csmcd
I run into this regularly as well, and have been resigned to using rhPartOne, rhPartTwo, rhPartThree or rhPartA, rhPartB, rhPartC I appreciate hearing about "rh1" and \"rh1". That seems reasonable, albeit ugly. Thanks for that. rh.1 would be preferable, but does not work as of 2.18.2. -- Se

Re: Why no numbers allowed in variables?

2018-10-02 Thread Thomas Morley
Am Di., 2. Okt. 2018 um 23:17 Uhr schrieb David Kastrup : > So what is wrong with using \"var2" or \var.2 ? As a side note. I wasn't aware a comma works as well qwerty,2 = "bar" Although, while calling it, you _must_ use the dot \new Lyrics \lyricmode { \qwerty.2 } Cheers, Harm _

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi all, > > I guess all that’s left is to reiterate my observation that there > appears to be little enthusiasm for pursuing this possible feature. This reminds me a bit of a talk in a "Fuzzy Logic" conference where some speakers basically stated that their approach al

Re: Including a score fragment in LaTeX document

2018-10-02 Thread Urs Liska
Am 02.10.2018 um 23:49 schrieb Francesco Napoleoni: Now the (newbie) question: how can I include this code in a LaTeX document (using \lilypondfile) without the last empty measure? I have tried clip- regions in the \layout block with no success. You can do that by making the last spacer rest u

Re: How to hide fingering in the output

2018-10-02 Thread csmcd
Strange, it's 100% reproducible on my system and I was able to narrow it down to the tiny segment above. My system is i686 Ubuntu 16.04. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 16.04.4 LTS Release:16.04 Codename: xenial $ uname -s

Re: Why no numbers allowed in variables?

2018-10-02 Thread J Martin Rushton
This discussion is strangely familiar. As one who learnt on FORTRAN IV many years ago, I'm used to seeing that: READ INPUT TAPE 5, 501, IA, IB, IC and READINPUTTAPE5,501,IA,IB,IC or even RE ADIN PUTTA PE5,5 01,I A,I B,I C are the same. I'm sure there were those back in the late '50s arguing ove

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> The logic does not change every time you cheer > > That’s demonstrably false: there have been features which were > requested years ago which were too difficult to implement at the time, > but which became easier to implement later because of other code >

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi all, I guess all that’s left is to reiterate my observation that there appears to be little enthusiasm for pursuing this possible feature. Thanks for the discussion, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenma

Re: Including a score fragment in LaTeX document

2018-10-02 Thread Francesco Napoleoni
> > Now the (newbie) question: how can I include this code in a LaTeX document > > (using \lilypondfile) without the last empty measure? I have tried clip- > > regions in the \layout block with no success. > > You can do that by making the last spacer rest use no time by writing > s1*0\! > >

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi David, > The logic does not change every time you cheer That’s demonstrably false: there have been features which were requested years ago which were too difficult to implement at the time, but which became easier to implement later because of other code improvements (many your own doing).

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Thomas Morley writes: > Am Di., 2. Okt. 2018 um 23:17 Uhr schrieb David Kastrup : > >> So what is wrong with using \"var2" or \var.2 ? > > Ah, I forgot about var.1 etc > > Ofcourse below is a bit ugly I'd say: > > val.1 = "foo" > << > \new Staff \repeat unfold 4 c'4 > \new Lyrics \lyricmode {

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> So what is wrong with using \"var2" > > That’s what I generally use — it requires extra typing, looks less > attractive, looks (and is often colourized) Well, that would warrant improving your LilyPond code colorifier. > different from variables without

Re: #vspace not working after text?

2018-10-02 Thread Tom Campbell
Thanks, all. The solution I arrived at thanks to your input looked like the following: #(define-markup-command (headerThree layout props text) (markup?) "Create a level 3 header" (interpret-markup layout props #{ \markup { \column { \vspace #.5 \bold \sans { #text } \vspace #2 } }

Re: Why no numbers allowed in variables?

2018-10-02 Thread Thomas Morley
Am Di., 2. Okt. 2018 um 23:17 Uhr schrieb David Kastrup : > So what is wrong with using \"var2" or \var.2 ? Ah, I forgot about var.1 etc Ofcourse below is a bit ugly I'd say: val.1 = "foo" << \new Staff \repeat unfold 4 c'4 \new Lyrics \lyricmode { \val.1 4 \val.1 2 \val.1 4 } >> Another p

Re: How to hide fingering in the output

2018-10-02 Thread Torsten Hämmerle
csmcd wrote > When I try to hide the fingering using either of these methods, I get a > core > dump. It even works in my Windows 7 (32bit) and Windows 10 (64 bit) environments, tested with a variety of LilyPond versions. What's your operating system and is there any useful error message?

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi David, > So what is wrong with using \"var2" That’s what I generally use — it requires extra typing, looks less attractive, looks (and is often colourized) different from variables without numbers, etc. > or \var.2 ? I was under the impression that mechanism has limitations? In any case, th

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> I can understand newcomers coming up with this proposal: LilyPond is >> different to how most languages bar TeX treat numbers. But it does >> puzzle me to have the old hands cheer them on. > > Only because I’ve needed/wanted numbered variables literally

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> I can understand newcomers coming up with this proposal: LilyPond is >> different to how most languages bar TeX treat numbers. But it does >> puzzle me to have the old hands cheer them on. > > Only because I’ve needed/wanted numbered variables literally

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Thomas Morley writes: > Am Di., 2. Okt. 2018 um 22:37 Uhr schrieb Kieren MacMillan > : >> >> Hi Harm, >> >> > val = "foo" >> > << >> > \new Staff \repeat unfold 4 c'4 >> > \new Lyrics \lyricmode { \val4 \val2 \val4 } >> > \new Lyrics \lyricmode { \val4 \val4 \val2 } >> >>> >> > >> > Your propo

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > > Thanks for the examples and explanations. > >> You'd probably also think that >> >> { c = -3 } >> >> is an assignment. It isn't. It is a note c with a relative octave >> check and a fingering of 3 . > > Fair enough. So there would, at the very least, b

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi Harm, > >> val = "foo" >> << >> \new Staff \repeat unfold 4 c'4 >> \new Lyrics \lyricmode { \val4 \val2 \val4 } >> \new Lyrics \lyricmode { \val4 \val4 \val2 } >> >> Your proposal would make it impossible. > > Another good example — thanks. That being said,

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi David, > I can understand newcomers coming up with this proposal: LilyPond is > different to how most languages bar TeX treat numbers. But it does > puzzle me to have the old hands cheer them on. Only because I’ve needed/wanted numbered variables literally thousands of times in the past 15 y

Re: Why no numbers allowed in variables?

2018-10-02 Thread Thomas Morley
Am Di., 2. Okt. 2018 um 22:37 Uhr schrieb Kieren MacMillan : > > Hi Harm, > > > val = "foo" > > << > > \new Staff \repeat unfold 4 c'4 > > \new Lyrics \lyricmode { \val4 \val2 \val4 } > > \new Lyrics \lyricmode { \val4 \val4 \val2 } > >>> > > > > Your proposal would make it impossible. > > Anoth

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi Harm, > val = "foo" > << > \new Staff \repeat unfold 4 c'4 > \new Lyrics \lyricmode { \val4 \val2 \val4 } > \new Lyrics \lyricmode { \val4 \val4 \val2 } >>> > > Your proposal would make it impossible. Another good example — thanks. That being said, putting a syllable in a variable and th

Re: Why no numbers allowed in variables?

2018-10-02 Thread Thomas Morley
Am Di., 2. Okt. 2018 um 21:57 Uhr schrieb Kieren MacMillan : > If I were developing Lilypond code, I simply wouldn’t allow a note value to > be post-fixed to a variable, so > >\part2 > > would have only one interpretation (i.e., as the variable "part2"). But > that’s only because I can’t see

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> It's easy to tell the developers "make it so". But before you can tell >> a compiler to "make it so", you need to have a logically coherent >> proposal. > > I wasn’t trying to tell anybody to "make it so" — I was just avoiding > offering my limited (and

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi David, Thanks for the examples and explanations. > You'd probably also think that > > { c = -3 } > > is an assignment. It isn't. It is a note c with a relative octave > check and a fingering of 3 . Fair enough. So there would, at the very least, be some sort of new assignment syntax for

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi David, > It's easy to tell the developers "make it so". But before you can tell > a compiler to "make it so", you need to have a logically coherent > proposal. I wasn’t trying to tell anybody to "make it so" — I was just avoiding offering my limited (and almost certainly flawed) understandin

Re: How to hide fingering in the output

2018-10-02 Thread Noeck
Am 02.10.2018 um 19:34 schrieb csmcd: > When I try to hide the fingering using either of these methods, I get a core > dump. Both versions compile fine and hide the fingering number here. LilyPond 2.18.2 on Ubuntu (Linux). Joram ___ lilypond-user ma

Re: Why no numbers allowed in variables?

2018-10-02 Thread David Kastrup
Kieren MacMillan writes: > Hi Maarten, > >> Why are there no numbers allowed in variable names? > > \version "2.18.2" > > "part1" = { c''4 4 4 4 } > > \score { > \new Staff \"part1" > } > > As for why you need the quotes… well, I’ll leave the explanation up to > more knowledgeable people than I

Re: How to hide fingering in the output

2018-10-02 Thread csmcd
When I try to hide the fingering using either of these methods, I get a core dump. It appears to be related to tuplets. \version "2.18.2" \score { \tuplet 3/2 4 { c'8 d'^1 c' } \layout { % Assertion failure if either of the two lines below is uncommented: % D

Re: Why no numbers allowed in variables?

2018-10-02 Thread immanuel litzroth
I also miss numbers in variables and some kind of scoping for variables. Immanuel On Tue, Oct 2, 2018 at 5:45 PM Maarten Deen wrote: > Why are there no numbers allowed in variable names? I like to have some > kind of descriptive name for parts of the scores that I make in > Lilypond, and not ha

Re: Why no numbers allowed in variables?

2018-10-02 Thread Kieren MacMillan
Hi Maarten, > Why are there no numbers allowed in variable names? \version "2.18.2" "part1" = { c''4 4 4 4 } \score { \new Staff \"part1" } As for why you need the quotes… well, I’ll leave the explanation up to more knowledgeable people than I. Hope that helps! Kieren.

Why no numbers allowed in variables?

2018-10-02 Thread Maarten Deen
Why are there no numbers allowed in variable names? I like to have some kind of descriptive name for parts of the scores that I make in Lilypond, and not having the possibility to use numbers in a snippet name is a bit awkward. I make do with Roman numerals to get partI, partII, partIII, partIV

Re: Frescobaldi Log Error -1073741819 on Windows10

2018-10-02 Thread David Wright
On Sun 30 Sep 2018 at 16:49:13 (+0100), peter.gen...@sunscales.myzen.co.uk wrote: > Date: Thu, 27 Sep 2018 15:10:25 -0700 > From: Aaron Hill mailto:lilyp...@hillvisions.com> > > > > An Access Violation has nothing to do with permissions as was stated > > earlier. This error code is specific to v

Re: Including a score fragment in LaTeX document

2018-10-02 Thread Orm Finnendahl
Hi Francesco try this: \version "2.19.80" \score { \new Staff { \clef treble \key c \major \time 12/8 % excerpt from Grieg Piano sonata op. 7 \relative c'' { % 16 4.->\ff -> -> ->\> | % 17 s1.*0\! | % I had to add this measure to get the hairpin printed }

Re: Including a score fragment in LaTeX document

2018-10-02 Thread Urs Liska
Am 02.10.2018 um 11:42 schrieb Francesco Napoleoni: Hi list, I’m fiddling with lilypond-book and XeLaTeX for the first time and have a little problem with a fragment that I want to include. I have a little Lilypond file like this \version "2.19.80" \score { \new Staff { \clef treble

Including a score fragment in LaTeX document

2018-10-02 Thread Francesco Napoleoni
Hi list, I’m fiddling with lilypond-book and XeLaTeX for the first time and have a little problem with a fragment that I want to include. I have a little Lilypond file like this \version "2.19.80" \score { \new Staff { \clef treble \key c \major \time 12/8 % excerpt from Grieg P

Re: #vspace not working after text?

2018-10-02 Thread Robin Bannister
Tom Campbell wrote: I want vertical space to occur after a heading. But it seems that the following still puts the space before it, or am I going insane? See also http://lists.gnu.org/archive/html/lilypond-user/2010-04/msg00057.html Cheers, Robin

Re: #vspace not working after text?

2018-10-02 Thread David Kastrup
Tom Campbell writes: > I want vertical space to occur after a heading. But it seems that the > following still puts the space before it, or am I going insane? > > #(define-markup-command (headerThree layout props text) > (markup?) > "Create a level 3 header" > (interpret-markup layout props >