[CM] Problem with loop/collect

Landspeedrecord landspeedrecord@gmail.com
Tue, 1 May 2007 18:13:24 -0400


Hi...

I was doing the tutorial and I keep getting an error.  It seems to be
related to collecting a list of the outputs of 2 seperate processes. I
am running Common Music 2.10, Xemacs/Clisp on an WinXP machine.  I am
fairly certain I am not doing anything newbie/stupid.  Any help is
much appreciated!

Here is the simple bit of code Common Music doesn't like:

(events (loop repeat 8
          collect (list (jazz-high-hat 120 .99)
                        (jazz-drums 120 .99)))
        "jazz.mid"
        '(0 2 4 6 8 10 12 14))

The code is from here:
http://commonmusic.sourceforge.net/etc/tutorials/jazz.lisp

I am simply entering in the code from the tutorial...

Here is the error I get:

APPLY: too many arguments given to #1=#<STANDARD-GENERIC-FUNCTION
SCHEDULE-OBJECT>
   [Condition of type SYSTEM::SIMPLE-PROGRAM-ERROR]

Restarts:
  0: [ABORT-REQUEST] Abort handling SLIME request.
  1: [ABORT] ABORT

Backtrace:
  0: #<COMPILED-FUNCTION EVENTS>
  1: #<SYSTEM-FUNCTION EVAL>
  2: #<COMPILED-FUNCTION SWANK::EVAL-REGION>
  3: #<COMPILED-FUNCTION SWANK::LISTENER-EVAL-1>
  4: #<COMPILED-FUNCTION #:|281 283 (DEFINTERFACE
CALL-WITH-SYNTAX-HOOKS (FN) ...)-32-3-1-1|>
  5: #<COMPILED-FUNCTION SWANK::CALL-WITH-BUFFER-SYNTAX>
  6: #<COMPILED-FUNCTION SWANK:LISTENER-EVAL>
  7: #<SYSTEM-FUNCTION EVAL>
  8: #<COMPILED-FUNCTION SWANK::EVAL-FOR-EMACS-1>
  9: #<COMPILED-FUNCTION #:|480 485 (DEFINTERFACE
CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-53-3-1-1|>
 10: #<COMPILED-FUNCTION SWANK::EVAL-FOR-EMACS>
 11: #<COMPILED-FUNCTION SWANK::READ-FROM-EMACS>
 12: #<COMPILED-FUNCTION SWANK::HANDLE-REQUEST-1>
 13: #<COMPILED-FUNCTION #:|480 485 (DEFINTERFACE
CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-53-3-1-1|>
 14: #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-1>
 15: #<COMPILED-FUNCTION SWANK::CALL-WITH-REDIRECTED-IO>
 16: #<COMPILED-FUNCTION SWANK::MAYBE-CALL-WITH-IO-REDIRECTION>
 17: #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION>
 18: #<COMPILED-FUNCTION SWANK::HANDLE-REQUEST>
 19: #<COMPILED-FUNCTION SWANK::SIMPLE-SERVE-REQUESTS-2>
 --more--