Discussion:
Error: NIL is not a number
Brian
2006-06-13 01:40:11 UTC
Permalink
Hi,

I've just set up fomus on cygwin (clisp, cm) but I'm having a little
trouble getting it working.

I'm just trying the first example in the docs as listed below but
I get an error message: "*** - -: NIL is not a number".

I know this is a pretty common Lisp error (excuse the unintentional pun!)
but I'm not sure where I should be looking to resolve it.

Any suggestions would be very much appreciated.

Thanks a million,
Brian


This is the example code:
-------------------------

(fomus
:output '(:lilypond :view t)
:ensemble-type :orchestra
:parts
(list
(make-part
:name "Piano"
:instr :piano
:events
(loop
for off from 0 to 10 by 1/2
collect (make-note :off off
:dur (if (< off 10) 1/2 1)
:note (+ 48 (random 25))
:marks (when (<= (random 3) 0)
'(:staccato)))))))



This is the error message I'm getting
(including some initial startup warnings):
------------------------------------------

CM[1]> (load "/usr/local/lisp/fomus/load.lisp")

...

WARNING: DEFUN/DEFMACRO: redefining function MAKE-PART in
/usr/local/lisp/fomus/classes.fas, was defined in
/usr/local/lisp/cm/bin/clisp_2.38_cygwin_nt-5.1-i686/pkg.fas
WARNING: DEFUN/DEFMACRO: redefining function MAKE-NOTE in
/usr/local/lisp/fomus/classes.fas, was defined in
/usr/local/lisp/cm/bin/clisp_2.38_cygwin_nt-5.1-i686/pkg.fas

...

WARNING: DEFUN/DEFMACRO: redefining function GET-INSTR-SYMS in
/usr/local/lisp/fomus/util.fas, was defined in
/usr/local/lisp/cm/bin/clisp_2.38_cygwin_nt-5.1-i686/pkg.fas

...

WARNING: DEFUN/DEFMACRO: redefining function FOMUS in
/usr/local/lisp/fomus/interface.fas, was defined in
/usr/local/lisp/cm/bin/clisp_2.38_cygwin_nt-5.1-i686/pkg.fas
WARNING: DEFUN/DEFMACRO: redefining function FOMUS-FILE in
/usr/local/lisp/fomus/interface.fas, was defined in
/usr/local/lisp/cm/bin/clisp_2.38_cygwin_nt-5.1-i686/fomus.fas

...

;; FOMUS v0.2.1
;; Lisp music notation formatter
;; Copyright (c) 2005, 2006 David Psenicka, All Rights Reserved
;; See file "COPYING" for terms of use and distribution.

;; Loaded file /usr/local/lisp/fomus/final.fas
;; Loaded file /usr/local/lisp/fomus/load.lisp
T
CM[2]> (fomus "/usr/local/lisp/fomus1.txt")
;; Loading input file "/usr/local/lisp/fomus1.txt"...
;; Formatting music...
*** - -: NIL is not a number
The following restarts are available:
USE-VALUE :R1 You may input a value to be used instead.
ABORT :R2 ABORT
Break 1 CM[3]>
David Psenicka
2006-06-14 17:09:22 UTC
Permalink
Brian,

I made an attempt a while ago to get fomus working in CLISP but didn't
quite get all the bugs worked out--so unfortunately it might take a
little time to solve this. :( There are a few things that CLISP is
picky about that work fine in all the other Lisps. I'll take a look at
it and try to get an update out shortly.
Post by Brian
Hi,
I've just set up fomus on cygwin (clisp, cm) but I'm having a little
trouble getting it working.
David Psenicka
2006-07-30 19:15:03 UTC
Permalink
Most of the CLISP issues should be worked out--I haven't tested it in
Windows yet (only Linux), so another update might come shortly

-David
David Psenicka
2006-08-08 01:50:02 UTC
Permalink
Moved the project to subversion--(there's no "dev" branch anymore, just
the main one, plain and simple)

Admin initial checkout would look something like this:

mkdir fomus
svn checkout
svn+ssh://<username>@common-lisp.net/project/fomus/svn/fomus/trunk fomus

mkdir fomustest
svn checkout
svn+ssh://<username>@common-lisp.net/project/fomus/svn/fomustest/trunk
fomustest

After that if you haven't used subversion before it's very similar to
CVS ("SVN update", etc..). Sorry for the confusion--this is what I'll
stick to now.

"Stable" releases will still be wrapped up in tarballs and deposited on
the web site for download.

Loading...