[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Convert Scheme symbol to pitch
From: |
Urs Liska |
Subject: |
Re: Convert Scheme symbol to pitch |
Date: |
Thu, 2 Mar 2017 22:55:17 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
Am 02.03.2017 um 22:28 schrieb address@hidden:
> Is it possible to convert a symbol (such as `'bes'`) to a pitch (in
> this case `(ly:make-pitch 1 0 0)`)? I know you can do `#{ bes' #}` to
> get a pitch, but that only appears to work for constants.
>
> Or, for a more general question: is there some way to eval() a string
> as Lilypond code?
I'm not fully sure what you really want to achieve, but this works:
{
#(ly:parser-include-string "bes")
}
and may help you further.
Urs
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
--
address@hidden
https://openlilylib.org
http://lilypondblog.org