lilypond-user
[Top][All Lists]
Advanced

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

Re: Problems with music-function for shortcut for \relative command


From: Urs Liska
Subject: Re: Problems with music-function for shortcut for \relative command
Date: Tue, 16 Dec 2014 00:00:35 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

It's define-music-function, not "define-music function"

HTH
Urs

Am 15.12.2014 23:56, schrieb Hans Sommer:
Hello,

Ich wrote a scheme function for getting a shortcut for the \relative command.



rel = #(define-music function                                              
                                    
     (parser location p notes)                                             
                                    
     (ly:pitch? ly:music?)
   #{
  \relative #p  #notes

   #})

I used it in with 
\rel c' {f4 g a b }

and get the following 

GNU LilyPond 2.16.2
Processing `base.ly'
Parsing...
addons.ly:46:12: error: wrong type for argument 2.  Expecting music, found
#<Pitch c' >
  \relative
            #p  #notes
test.ly:1:27: error: error in #{ ... #}
myscore = { \rel c' {f4 g a b }
                           }
Interpreting music...
Preprocessing graphical objects...
Interpreting music...Segmentation fault

Do somebody have a hint?

Thank you

Hans



_______________________________________________
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]