[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme function problems
From: |
Jan Nieuwenhuizen |
Subject: |
Re: Scheme function problems |
Date: |
Sat, 15 Apr 2006 08:08:31 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Kieren Richard MacMillan writes:
> Hello, all --
>
> Can anyone tell me why the code
>
> returns
>
> ERROR: Wrong type (expecting real number): lilyvartmpa
$padding is used inside a quoted list, but it should be unquoted. Try
barpadding = #(define-music-function (parser location padding music)
(number? ly:music?)
#{
\once \override Score.BarLine #'space-alist =
#`((first-note extra-space . ,$padding))
$music
#}
)
{ c'1 \barpadding #32 { c' c' } c' }
The error message is horrible; programmers who implement constant
error messages should consider a career switch.
Jan.
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org