Hello Simon,
my goal is to create a set of functions for manipulating a single note passed 
as a parameter, in many ways.This is the basic of music variation.
For example:
(function 1)c'4 ---->  r8 c'8
(function 2)c'4 ---->  c'16 c'16 c'16 c'16
(function 3)c'4 ---->  r4 \grace c'8 
etc.

    Il Domenica 25 Febbraio 2018 19:13, Simon Albrecht <simon.albre...@mail.de> 
ha scritto:
 

 Hi Paolo,

as more questions like these pour in, it would indeed be interesting to 
know what you are trying to achieve/why you need this function. :-)

Best, Simon


On 25.02.2018 18:44, Paolo Prete wrote:
> 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'
> }
>
>
> Thanks for your help.
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user



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

Reply via email to