[CM] How to fix: no such class MIDIMSG

Rick Taube taube@uiuc.edu
Tue, 15 Nov 2005 04:39:48 -0600


Yes the class name has changed since the book, now CM provides true 
classes for midi messages

http:/commonmusic.sf.net/doc/dict/midi-topic.html

i think this is what you want:

  (define (clearbends)
    (process for c below 16
             output (new midi-pitch-bend  :time (now) :bend 0 :channel 
c)))

see also
http://commonmusic.sourceforge.net/doc/dict/midi-pitch-bend-cls.html


On Nov 14, 2005, at 5:14 PM, Emre Sevinc wrote:

> Hi all,
>
>  I'm studying Ch. 15 of the book Notes from the Metalevel
>  and after successfuly listening to harmonic series
>  I was stuck at Ex. 2, clearbends:
>
>  (define (clearbends)
>    (process for c below 16
>             output (new midimsg
>                      :time (now)
>                      :msg (make-pitch-bend c 0))))
>
>  ; in: DEFINE (CLEARBENDS)
>  ;     (CM:NEW CM::MIDIMSG :TIME (CM:NOW) :MSG (CM::MAKE-PITCH-BEND 
> CM::C 0))
>  ;
>  ; caught ERROR:
>  ;   (in macroexpansion of (NEW MIDIMSG :TIME ...))
>  ;   (hint: For more precise location, try *BREAK-ON-SIGNALS*.)
>  ;   There is no class named MIDIMSG.
>
>  What does that mean? Is midimsg a deprecated class? Is there
>  some similar class with a different name?
>
>  I'll be glad if somebody can help me.
>
>  Happy musical hacking,
>  Emre S.