lilypond-user
[Top][All Lists]
Advanced

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

Re: define-scheme-function


From: David Kastrup
Subject: Re: define-scheme-function
Date: Sun, 21 Aug 2022 16:50:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Лысов Дмитрий <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]