lilypond-user
[Top][All Lists]
Advanced

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

Re: Globally disable transposition


From: David Kastrup
Subject: Re: Globally disable transposition
Date: Mon, 04 Nov 2013 08:56:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Joseph Rushton Wakeling <address@hidden> writes:

> On 03/11/13 17:44, Urs Liska wrote:
>> But you should be able to define a music function that simply prints the 
>> music
>> it is passed. Use parameters for the two pitches and ignore them.
>> Can't try out because I'm on the phone, but you should be able to go that 
>> way.
>
> Ahh, of course.  Here's what I came up with -- seems to work:
>
> transpose = #(define-music-function
>                (parser location arg1 arg2)
>                (ly:music? ly:music?)
>                #{ #}
>              )

Ugh.  Why not
#(define-music-function (parser location p1 p2 m)
  (ly:pitch? ly:pitch? ly:music?) m)

> transposition = #(define-music-function
>                    (parser location arg)
>                    (ly:music?)
>                    #{ #}
>                  )

Better, but I'd use ly:pitch? instead of ly:music? here.  And frankly: I
have my doubts the results will sound great in all cases.

-- 
David Kastrup




reply via email to

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