Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-21 Thread Thomas Morley
Hi, please ignore, if this is mentioned before (I couldn't find anything about it). Numbers in LilyPond-variables are already possible, if superscript-numbers are used. note⁰ = \relative c' { c1 } note¹ = \relative c' { d1 } note² = \relative c' { d1 } note³ = \relative c' { f1 } note⁴ = \relati

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-20 Thread lilypond
Updates: Status: Accepted Comment #4 on issue 2072 by philehol...@gmail.com: Add proper complex variables to Lilypond http://code.google.com/p/lilypond/issues/detail?id=2072 (No comment was entered for this change.) ___ bug-lilypond mailin

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-12 Thread lilypond
Comment #3 on issue 2072 by d...@gnu.org: Add proper complex variables to Lilypond http://code.google.com/p/lilypond/issues/detail?id=2072 Cf http://permalink.gmane.org/gmane.comp.gnu.lilypond.bugs/30761> for some more thoughts: The definition would be something like violin = \vector 2

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-10 Thread Werner LEMBERG
> sonata = \vector 2 > sonata1 = \struct #'(expo modulation reprise) > sonata1 #'expo = { ... } > sonata1 #'modulation = { ... } > sonata1 #'reprise = { ... } This looks nice! Werner ___ bug-lilypond mailing list bug-lilypond@gnu.org https://list

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-10 Thread David Kastrup
Ian Hulin writes: > Hi David, > On 09/12/11 12:55, lilyp...@googlecode.com wrote: >> >> Comment #2 on issue 2072 by d...@gnu.org: Add proper complex >> variables to Lilypond >> http://code.google.com/p/lilypond/issues/detail?id=2072 >> >> After thinking about it, assignments are possible only

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-10 Thread Ian Hulin
Hi David, On 09/12/11 12:55, lilyp...@googlecode.com wrote: > > Comment #2 on issue 2072 by d...@gnu.org: Add proper complex > variables to Lilypond > http://code.google.com/p/lilypond/issues/detail?id=2072 > > After thinking about it, assignments are possible only in contexts > where strings ca

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-09 Thread lilypond
Comment #2 on issue 2072 by d...@gnu.org: Add proper complex variables to Lilypond http://code.google.com/p/lilypond/issues/detail?id=2072 After thinking about it, assignments are possible only in contexts where strings can't occur by themselves. So it should actually be possible to use t

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-04 Thread David Kastrup
Werner LEMBERG writes: >>> part[3].violin[1] >> >> That's the logic of the musician rather than the programmer speaking. >> If you wanted it to be _that_, you'd have to call it \part3violin1, I am >> afraid. > > Oh, yes, of course, I forgot to mention it. > >> I actually don't see all that man

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-04 Thread Werner LEMBERG
>> part[3].violin[1] > > That's the logic of the musician rather than the programmer speaking. > If you wanted it to be _that_, you'd have to call it \part3violin1, I am > afraid. Oh, yes, of course, I forgot to mention it. > I actually don't see all that many uses for it (possibly because I

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-04 Thread David Kastrup
Werner LEMBERG writes: >>> However, I can live with "violin1" or "violin1part3" also. >> >> "part" would be a more like a tag of a struct or index of an >> associative array, so \violin1part3 could access something >> corresponding to violin[1].part[3] in C-speak when defined properly. > > Actua

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-04 Thread Werner LEMBERG
>> However, I can live with "violin1" or "violin1part3" also. > > "part" would be a more like a tag of a struct or index of an > associative array, so \violin1part3 could access something > corresponding to violin[1].part[3] in C-speak when defined properly. Actually, it would be rather part[

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-04 Thread David Kastrup
Werner LEMBERG writes: >> Uh, at the moment, nothing is possible since no line of code has >> been written. If you are interested about what goes on in my head, >> you'd be able to use either \violin1 or \violin#1 naturally > > \violin1 is OK for me. Regarding the calling syntax, I prefer to >

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-03 Thread Werner LEMBERG
> Uh, at the moment, nothing is possible since no line of code has > been written. If you are interested about what goes on in my head, > you'd be able to use either \violin1 or \violin#1 naturally \violin1 is OK for me. Regarding the calling syntax, I prefer to define with \set \violin1 an

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-03 Thread lilypond
Comment #1 on issue 2072 by d...@gnu.org: Add proper complex variables to Lilypond http://code.google.com/p/lilypond/issues/detail?id=2072 Well, I have to take back that particular syntax since it could not be made to work: detecting assignment would require seeing the = as a lookahead to

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-03 Thread David Kastrup
Werner LEMBERG writes: >> I propose developing the infrastructure that allows saying >> violin = \makeVector 2 >> and afterwards using >> \violin 1 = { ... } % backslash is no typo here >> as well as { ... \violin 1 } >> It will be possible to use arbitrary numbers (or Scheme expressions) >> as i

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-03 Thread Werner LEMBERG
> I propose developing the infrastructure that allows saying > violin = \makeVector 2 > and afterwards using > \violin 1 = { ... } % backslash is no typo here > as well as { ... \violin 1 } > It will be possible to use arbitrary numbers (or Scheme expressions) > as index, and this would straightfo

Re: Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-03 Thread Keith OHara
googlecode.com> writes: > I propose developing the infrastructure that allows saying > violin = \makeVector 2 > and afterwards using > \violin 1 = { ... } % backslash is no typo here > as well as { ... \violin 1 } Remember that issue 1670 asked for numbers embedded in identifiers violin1mvt2

Issue 2072 in lilypond: Add proper complex variables to Lilypond

2011-12-03 Thread lilypond
Status: New Owner: d...@gnu.org Labels: Type-Enhancement Bounty New issue 2072 by d...@gnu.org: Add proper complex variables to Lilypond http://code.google.com/p/lilypond/issues/detail?id=2072 A frequent complaint on the mailing list is that Lilypond does not permit identifiers with numbers in