lilypond-user
[Top][All Lists]
Advanced

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

Re: Parametric variables?


From: Tomas Valusek
Subject: Re: Parametric variables?
Date: Sat, 14 Mar 2009 17:10:54 +0100
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Hello,

thanks for answer. I tried my best, but I don't understand what's wrong. I have slightly modified last example in NR 6.1.2 like this:

fng = #(define-music-function (parser location marktext) (string?)
#\markup {\finger $marktext}
#)

{<c' d'>1^\fng #"2\n1"}

And a resulting log looks like this:

# -*-compilation-*-
Processing `I:/Documents and Settings/Tom/Plocha/prsoklad.ly'
Analyzuji...
I:/Documents and Settings/Tom/Plocha/prsoklad.ly:1:10: error: GUILE signaled an error for the expression beginning here
fng = #
          (define-music-function (parser location marktext) (string?)

I:/Documents and Settings/Tom/Plocha/prsoklad.ly:1:17: error: syntax error, unexpected '-', expecting '='
fng = #(define
                 -music-function (parser location marktext) (string?)

I:/Documents and Settings/Tom/Plocha/prsoklad.ly:2:1: error: GUILE signaled an error for the expression beginning here
#
 \markup {\finger $marktext}

I:/Documents and Settings/Tom/Plocha/prsoklad.ly:2:10: error: neznámá escape sekvence: `\finger'
#\markup {
          \finger $marktext}

I:/Documents and Settings/Tom/Plocha/prsoklad.ly:3:1: error: GUILE signaled an error for the expression beginning here
#
 )

I:/Documents and Settings/Tom/Plocha/prsoklad.ly:2:9: error: errors found, ignoring music expression
#\markup
         {\finger $marktext}

I:/Documents and Settings/Tom/Plocha/prsoklad.ly:5:10: error: syntax error, unexpected SCM_IDENTIFIER
{<c' d'>1^
\fng #"2\n1"}I:/Documents and Settings/Tom/Plocha/prsoklad.ly:5:0: error: errors found, ignoring music expression

{<c' d'>1^\fng #"2\n1"}I:/Documents and Settings/Tom/Plocha/prsoklad.ly:0: varování: : no \version statement found, please add

\version "2.12.2"

for future compatibility
error: failed files: "I:\\Documents and Settings\\Tom\\Plocha\\prsoklad.ly"

I don't understand anything from it. How to modify my file so that it works as expected?

Tomas Valusek

Graham Percival napsal(a):
On Sat, Mar 14, 2009 at 03:59:13PM +0100, Tomas Valusek wrote:
Is it possible without diving into Scheme?

No.

That is - is it possible to  have "parametrized" variables,
which could take an expression as a  parameter?

This is possible with Scheme.  Depending on what exactly you want
to do, it could be very simple.

See the relevant chapter of the Notation Reference; it starts off
with very simple examples.

Cheers,
- Graham





reply via email to

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