[CM] Re: metalevel problem

Rick Taube taube@uiuc.edu
Thu, 6 Oct 2005 07:36:05 -0500

Hi, the examples in the book are several years old now -- Im suprised 
that this is the only problem youve run into so far! Here is how to 
reset pitch bend values in  cm 2.7.0:

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

In 2.7.0 ther3 are class objects for all midi message types in addtion 
to the "low level" messages that are created using function like 
Documentation for both levels can be found at:


For more info on tunings and modes you might also look in the tutorial:


and also in drew krauses code archive:


On Oct 5, 2005, at 9:54 PM, Denis Fitzpatrick wrote:

> Rick
> When running the following from Metalevel Ch. 15 (scales.cm)
> (define (clearbends )
>   (process for c below 16
>            output (new midi :time (now)
>                        :msg (make-pitch-bend c 0))))
> I get the following:
> *** - FIND-CLASS: MIDIMSG does not name a class
> I'm running cm 2.7.0 under xemacs on windows xp
> Everything has worked great to this point.  I'm enjoying metalevel 
> immensely
> - thanks.
> Denis Fitzpatrick