lilypond-user
[Top][All Lists]
Advanced

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

Re: define-scheme-function


From: Лысов Дмитрий
Subject: Re: define-scheme-function
Date: Sun, 21 Aug 2022 18:00:23 +0300

These are not notes, these are text strings (lyrics).


21.08.2022, 17:51, "David Kastrup" <dak@gnu.org>:

Лысов Дмитрий <siitop@yandex.ru> writes:

 Спасибо, Павел. Структура мне понятна, помогите правильно определить передачу
 данных для функции. Если мы прямо записываем в функции
 define-scheme-function текстовую строку {e f g h}, то она выводится на странице:
        \new Lyrics
         \lyricsto "melody"
         {e f g h}
 А если заменяю {e f g h} на переменную функции #lyricdown, то получается
 ошибка. Функция вызывается
 так \makeScore "Удра" {e4 c d f e d c d e d e1} {a b c d} {e f g hh}
 Определение функции такое:
 makeScore =
 #(define-scheme-function (mark notes lyricup lyricdown) (markup? ly:music?
 ly:music? ly:music?)
 Где ошибка?
  
 Thank you, Pavel. The structure is clear to me, help me correctly determine the data
 transfer for the function. If we directly write the text string {e f g h} in the
 define-scheme-function, then it is output on the page:
        \new Lyrics
         \lyricsto "melody"
         {e f g h}
 And if I replace {e f g h} with a variable of the #lyricdown function, then an error is
 obtained. The function is called
 so \makeScore "Удра" {e4 c d f e d c d e d e1} {a b c d} {e f g hh}
 The function definition is:
 makeScore =
 #(define-scheme-function (mark notes lyricup lyricdown) (markup? ly:music?
 ly:music? ly:music?)
 Where is the error?


What is hh supposed to be?

--
David Kastrup

reply via email to

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