Re: Convert Scheme symbol to pitch

2017-03-02 Thread David Kastrup
caag...@gmail.com writes: > On 03/02/17 23:41, Jeffery Shivers wrote: >> Where does the string originate? If it is produced by some other >> programming interface/language, maybe it be easier to adjust your code >> so that the string is wrapped in something like `\myMusic = { > here> }`. >> >> Wha

Re: Convert Scheme symbol to pitch

2017-03-02 Thread caagr98
On 03/02/17 23:39, David Kastrup wrote: caag...@gmail.com writes: 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 questio

Re: Convert Scheme symbol to pitch

2017-03-02 Thread caagr98
On 03/02/17 23:41, Jeffery Shivers wrote: Where does the string originate? If it is produced by some other programming interface/language, maybe it be easier to adjust your code so that the string is wrapped in something like `\myMusic = { }`. What does the input look like? A bunch of strings

Re: Convert Scheme symbol to pitch

2017-03-02 Thread David Kastrup
Urs Liska writes: > Am 02.03.2017 um 22:28 schrieb caag...@gmail.com: >> 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 g

Re: Convert Scheme symbol to pitch

2017-03-02 Thread Jeffery Shivers
On Thu, Mar 2, 2017 at 4:55 PM, Urs Liska wrote: > > > Am 02.03.2017 um 22:28 schrieb caag...@gmail.com: >> 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

Re: Convert Scheme symbol to pitch

2017-03-02 Thread David Kastrup
caag...@gmail.com writes: > 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 str

Re: Convert Scheme symbol to pitch

2017-03-02 Thread Urs Liska
Am 02.03.2017 um 22:28 schrieb caag...@gmail.com: > 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

Convert Scheme symbol to pitch

2017-03-02 Thread caagr98
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?