[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Abbreviations
From: |
Mattes |
Subject: |
Re: Abbreviations |
Date: |
Fri, 03 Apr 2015 20:28:57 +0200 |
User-agent: |
SOGoMail 2.2.16 |
Am Freitag, 03. April 2015 20:15 CEST, Urs Liska <address@hidden> schrieb:
>
>
> Am 03.04.2015 um 19:45 schrieb Kevin Barry:
> >
> > On Fri, Apr 3, 2015 at 2:23 PM, Urs Liska <address@hidden
> > <mailto:address@hidden>> wrote:
> >
> > I'll note that for explaining in a blog post because it seems like
> > a good example for demonstrating the relation between Scheme and
> > LilyPond variables and the role of symbols.
> >
> > Maybe it fits into a post I've just started to plan (explaining
> > what "#(define-music-function" actually means).
> >
> >
> > I would be very interested to read it. I have figured out over time
> > what kind of things tend to work and which things don't (when it comes
> > to variables and substitution) but I don't always understand why, for
> > example `t = \tuplet' doesn't work, but `#(define t tuplet)' does.
Well, think of it like this (slightly oversimplified):
'tuplet' is a lilypond function, '\' will _call_ this function.
Let's quickly check that:
guile> tuplet
#<Music function #<procedure #f (parser location ratio tuplet-span music)>>
If you do '#(define t tuplet)' 't' will have the same value as 'tuplet':
guile> (define t tuplet)
guile> t
#<Music function #<procedure #f (parser location ratio tuplet-span music)>>
If you write:
t = \tuplet
't' would have the value of calling 'tuplet' .
HTH RalfD
> I've started writing the post today, and it may well be that it fits in.
> But I'll have to figure out if I've understood it fully myself (or if I
> manage to do so during the process of writing ...).
> If it doesn't fit it would also be a good topic for an individual post.
> Nothing bad with having some shorter posts in between ...
>
> Best
> Urs
- Re: Abbreviations, (continued)
- Re: Abbreviations, Andrew Bernard, 2015/04/03
- Re: Abbreviations, Thomas Morley, 2015/04/03
- Re: Abbreviations, Pierre Perol-Schneider, 2015/04/03
- Re: Abbreviations, Thomas Morley, 2015/04/03
- Re: Abbreviations, Pierre Perol-Schneider, 2015/04/03
- Re: Abbreviations, Neil Puttock, 2015/04/03
- Re: Abbreviations, Steve Downes, 2015/04/03
- Re: Abbreviations, Urs Liska, 2015/04/03
- Re: Abbreviations, Kevin Barry, 2015/04/03
- Re: Abbreviations, Urs Liska, 2015/04/03
- Re: Abbreviations,
Mattes <=
- Re: Abbreviations, David Nalesnik, 2015/04/03
- Re: Abbreviations, Mattes, 2015/04/03
- Re: Abbreviations, David Nalesnik, 2015/04/03
- Re: Abbreviations, Marc Hohl, 2015/04/04
- Re: Abbreviations, Urs Liska, 2015/04/04
- Re: Abbreviations, Pierre Perol-Schneider, 2015/04/03
- Re: Abbreviations, Urs Liska, 2015/04/03
Re: Abbreviations, Reedmace Star, 2015/04/04