lilypond-user
[Top][All Lists]
Advanced

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

Re: List of articulations into a scheme variable


From: David Kastrup
Subject: Re: List of articulations into a scheme variable
Date: Sun, 25 Feb 2018 18:57:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Paolo Prete <address@hidden> writes:

> I'm sorry if I re-post a previous question, but I try to be more
> precise.How can I extract and print the list of articulations, keeping
> them into a new variable, from an argument passed as ly:music to a
> scheme function?I tried with the snippet below: it compiles but the
> articulations are not shown.
>
> fun = #(define-music-function (parser location note) (ly:music?) 
> (let    (     (mypitch (ly:music-property note 'pitch '()))   
>  (myduration (ly:music-property note 'duration '()))   
>  (myarticulations (ly:music-property note 'articulations '()))    
> )#{$mypitch $myduration $myarticulations  #}))
> { \fun c'8-> e' f'}

myarticulations isn't an articulation but a list of articulations.  Try
address@hidden to splice them in.

-- 
David Kastrup



reply via email to

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