Am 21.02.2018 um 15:44 schrieb Malte Meyn:
Am 21.02.2018 um 15:40 schrieb Joshua Stutter:
[…]
fun = #(define-music-function (parser location note dur) (ly:pitch?
ly:duration?)
#{ $note$dur #})
and create notes from pitches and durations within #{ #}. I explained
that, to the best of my knowledge, this is not possible and new notes
must be constructed within Scheme and cannot be concatenated like this.
That’s not true, you simply need a space between $note and $dur:
\version "2.19.81"
fun = #(define-music-function (parser location note dur) (ly:pitch?
ly:duration?)
#{ $note $dur #})
\fun c' 4
Oh, I forgot to say: This doesn’t work with 2.18.2 so you’re partially
right. I should’ve seen that: in 2.19.81 you wouldn’t need parser and
location anymore.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user