Re: Scheme function to return pitchnames as markup/text

2019-11-27 Thread Stephen Cummings
David, a follow-up-- I came across a post of yours from some years back in response to a sort-of-similar question, in which you suggested a more direct/more succinct way to access LilyPond's music-to-string functionality, via "value->lilystring." (More succinct, that is, if don't count the

Re: Scheme function to return pitchnames as markup/text

2019-11-20 Thread David Kastrup
Stephen Cummings writes: > Quite comfortable with such cheek. Thank you. > > Still, I will try to package up a more formally named version of that > little function. A translating map or loop will then be needed to > extract note names and render them in more conventional form, but that > won't

Re: Scheme function to return pitchnames as markup/text

2019-11-19 Thread Steve Cummings
e pitch-datum)) (out-acc (pitch->alteration pitch-datum))) #{\markup \bold \concat {$out-notename $out-acc } #} ) ) \notenamer {ees d b c g} From: Aaron Hill Subject:Re: Scheme function to return pitchnames a

Re: Scheme function to return pitchnames as markup/text

2019-11-19 Thread Stephen Cummings
Quite comfortable with such cheek. Thank you. Still, I will try to package up a more formally named version of that little function. A translating map or loop will then be needed to extract note names and render them in more conventional form, but that won't require inscrutable-for-me ly:xxx

Re: Scheme function to return pitchnames as markup/text

2019-11-19 Thread David Kastrup
Stephen Cummings writes: > Am I missing a basic LilyPond command/directive--something built-in > that takes music as input and returns note names as text? Such a > functionality would seem to be useful in all kinds of > annotations/quotations. I know about \displayMusic but its output only >

Re: Scheme function to return pitchnames as markup/text

2019-11-19 Thread Aaron Hill
On 2019-11-19 6:05 am, Stephen Cummings wrote: Am I missing a basic LilyPond command/directive--something built-in that takes music as input and returns note names as text? There is the NoteNames context, but its functionality is wrapped up in C++ code and is not easily customizable.

Re: Scheme function to return pitchnames as markup/text

2019-11-19 Thread Stephen Cummings
Am I missing a basic LilyPond command/directive--something built-in that takes music as input and returns note names as text? Such a functionality would seem to be useful in all kinds of annotations/quotations. I know about \displayMusic but its output only goes to the console/output stream

Re: Scheme function to return pitchnames as markup/text

2019-11-19 Thread Jacques Menu
Oups, answered the wrong post, sorry… JM > Le 19 nov. 2019 à 09:43, Jacques Menu a écrit : > > Hello Steve, > > Maybe starting this way: > > \version "2.19.83" > > { > % initial shared music > c'1 e | > > % the two alternatives > \override Staff.StaffSymbol.line-count = 0 >

Re: Scheme function to return pitchnames as markup/text

2019-11-19 Thread Jacques Menu
Hello Steve, Maybe starting this way: \version "2.19.83" { % initial shared music c'1 e | % the two alternatives \override Staff.StaffSymbol.line-count = 0 \stopStaff \startStaff \hide Staff.BarLine << \new Staff { \hide Staff.Clef \hide Staff.KeySignature

Scheme function to return pitchnames as markup/text

2019-11-18 Thread Steve Cummings
Though I remain baffled by Scheme and its use in LilyPond, my hope is to build one or more functions/procedures that would transpose input music and for each chord display the transposed chord's note names, with control over the way the names are represented (as in Cb or F# instead of ces and