[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c#(+6 2)
From: |
David Kastrup |
Subject: |
Re: c#(+6 2) |
Date: |
Sun, 11 Mar 2018 10:58:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Gianmaria Lari <address@hidden> writes:
> Just to understand how does it work the relation between scheme and
> lilypond. Why this does not work?
>
> \version "2.19.81"
> { c#(+6 2) }
>
> I would expect this compile to
>
> \version "2.19.81"
> { c8 }
So much wrong with this... First, (+6 2) calls 6 as function on 2.
That doesn't work. You need (+ 6 2) here.
Then Scheme expressions written using # in the middle of music are
expected to be music expressions. If you want to insert an actual
duration, you need to write it preceded with $ so that it can have
different type (and trigger different syntactic rules).
But $8 is not a duration. $(ly:make-duration 3 0) would be a duration.
--
David Kastrup
- c#(+6 2), Gianmaria Lari, 2018/03/11
- Re: c#(+6 2),
David Kastrup <=
- Re: c#(+6 2), Gianmaria Lari, 2018/03/12
- Re: c#(+6 2), David Kastrup, 2018/03/12
- Re: c#(+6 2), Gianmaria Lari, 2018/03/12
- Re: c#(+6 2), Gianmaria Lari, 2018/03/14
- Re: c#(+6 2), David Kastrup, 2018/03/14
- Re: c#(+6 2), Gianmaria Lari, 2018/03/14