<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [CM] How to fix: no such class MIDIMSG</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>-----Original Message-----<BR>
From: Rick Taube [<A HREF="mailto:taube@uiuc.edu">mailto:taube@uiuc.edu</A>]<BR>
Sent: Tue 11/15/2005 12:39 PM<BR>
To: Emre Sevinc<BR>
Cc: cmdist@ccrma.Stanford.EDU<BR>
Subject: Re: [CM] How to fix: no such class MIDIMSG<BR>
<BR>
&gt;Yes the class name has changed since the book, now CM provides true<BR>
&gt;classes for midi messages<BR>
&gt;<BR>
&gt;<A HREF="http:/commonmusic.sf.net/doc/dict/midi-topic.html">http:/commonmusic.sf.net/doc/dict/midi-topic.html</A><BR>
&gt;<BR>
&gt;i think this is what you want:<BR>
&gt;<BR>
&gt;&nbsp; (define (clearbends)<BR>
&gt;&nbsp;&nbsp;&nbsp; (process for c below 16<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output (new midi-pitch-bend&nbsp; :time (now) :bend 0 :channel<BR>
&gt;c)))<BR>
<BR>
Thank you very much for the information.<BR>
<BR>
Thanks to&nbsp; andersvi at extern.uio.no, too for explanation<BR>
of scaler-&gt;cents details.<BR>
<BR>
<BR>
<BR>
&gt;see also<BR>
&gt;<A HREF="http://commonmusic.sourceforge.net/doc/dict/midi-pitch-bend-cls.html">http://commonmusic.sourceforge.net/doc/dict/midi-pitch-bend-cls.html</A><BR>
<BR>
<BR>
On Nov 14, 2005, at 5:14 PM, Emre Sevinc wrote:<BR>
<BR>
&gt; Hi all,<BR>
&gt;<BR>
&gt;&nbsp; I'm studying Ch. 15 of the book Notes from the Metalevel<BR>
&gt;&nbsp; and after successfuly listening to harmonic series<BR>
&gt;&nbsp; I was stuck at Ex. 2, clearbends:<BR>
&gt;<BR>
&gt;&nbsp; (define (clearbends)<BR>
&gt;&nbsp;&nbsp;&nbsp; (process for c below 16<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output (new midimsg<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :time (now)<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :msg (make-pitch-bend c 0))))<BR>
&gt;<BR>
&gt;&nbsp; ; in: DEFINE (CLEARBENDS)<BR>
&gt;&nbsp; ;&nbsp;&nbsp;&nbsp;&nbsp; (CM:NEW CM::MIDIMSG :TIME (CM:NOW) :MSG (CM::MAKE-PITCH-BEND<BR>
&gt; CM::C 0))<BR>
&gt;&nbsp; ;<BR>
&gt;&nbsp; ; caught ERROR:<BR>
&gt;&nbsp; ;&nbsp;&nbsp; (in macroexpansion of (NEW MIDIMSG :TIME ...))<BR>
&gt;&nbsp; ;&nbsp;&nbsp; (hint: For more precise location, try *BREAK-ON-SIGNALS*.)<BR>
&gt;&nbsp; ;&nbsp;&nbsp; There is no class named MIDIMSG.<BR>
&gt;<BR>
&gt;&nbsp; What does that mean? Is midimsg a deprecated class? Is there<BR>
&gt;&nbsp; some similar class with a different name?<BR>
&gt;<BR>
&gt;&nbsp; I'll be glad if somebody can help me.<BR>
&gt;<BR>
&gt;&nbsp; Happy musical hacking,<BR>
&gt;&nbsp; Emre S.<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>