lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract pitch and duration from ly:music


From: Joshua Stutter
Subject: Re: Extract pitch and duration from ly:music
Date: Wed, 21 Feb 2018 14:50:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Wow, I did not know that, thanks. I think I've learned the most today.

Joshua.


On 21/02/18 14:48, Malte Meyn wrote:


Am 21.02.2018 um 15:46 schrieb Malte Meyn:
Oh, I forgot to say: This doesn’t work with 2.18.2 so you’re partially right.

And again I made a mistake: It *does* work but only if you surround the pitch by ##{ #}

\version "2.18.2"

fun = #(define-music-function (parser location note dur) (ly:pitch? ly:duration?)
#{ $note $dur #})

\fun ##{c'#} 4

Sorry for the mess.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

[Prev in Thread] Current Thread [Next in Thread]