Re: [frogs] Re: Naming output files

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Donnerstag, 26. Februar 2009 22:38:53 Marek Klein wrote:
>        (output-count (assoc-ref counter-alist 'output-suffix))
>        (base (ly:parser-output-name parser))
>        (output-suffix (ly:parser-lookup parser 'output-suffix)) )

You need to reverse this! The key for the assoc-ref lookup should NOT be the 
'output-suffix symbol (note the '), but rather the value output-suffix, which 
you look up only later. So, simply move the definition of output-count after 
the output-suffix and use output-suffix instead of 'output-suffix.

Later on, you use output-suffix in assoc-set!, so you need to use the same 
value in the assoc-ref, too.

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, reinhold@xxxxxxxxxxxxx, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJpxHUTqjEwhXvPN0RAv6SAKDWJVF3JktwicyyLODpBKVyplDpggCeKZ0j
n2M448y1+kzkKLCS+TFKeFA=
=yfFP
-----END PGP SIGNATURE-----

---

----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/