lilypond-user
[Top][All Lists]
Advanced

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

Re: Set a temporary tempo change


From: Aaron Hill
Subject: Re: Set a temporary tempo change
Date: Mon, 18 Nov 2019 16:23:01 -0800
User-agent: Roundcube Webmail/1.3.8

On 2019-11-18 4:18 pm, Aaron Hill wrote:
%%%%
registerContextProperty = #(define-void-function
  (symbol type? description)
  (symbol? procedure? string?)
  (if (not (equal? #f (object-property symbol 'translation-doc)))
    (ly:error (_ "symbol ~S redefined") symbol))
  (set-object-property! symbol 'translation-type? type?)
  (set-object-property! symbol 'translation-doc description)
(set! all-translation-properties (cons symbol all-translation-properties))
  symbol)
%%%%

And the useless return value should be omitted.

%%%%
registerContextProperty = #(define-void-function
  (symbol type? description)
  (symbol? procedure? string?)
  (if (not (equal? #f (object-property symbol 'translation-doc)))
    (ly:error (_ "symbol ~S redefined") symbol))
  (set-object-property! symbol 'translation-type? type?)
  (set-object-property! symbol 'translation-doc description)
(set! all-translation-properties (cons symbol all-translation-properties)))
%%%%

-- Aaron Hill



reply via email to

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