[CM] How to fix: no such class MIDIMSG

Emre Sevinc emres@bilgi.edu.tr
Wed, 16 Nov 2005 06:34:43 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C5EA67.621B50CC
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

-----Original Message-----
From: Rick Taube [mailto:taube@uiuc.edu]
Sent: Tue 11/15/2005 12:39 PM
To: Emre Sevinc
Cc: cmdist@ccrma.Stanford.EDU
Subject: Re: [CM] How to fix: no such class MIDIMSG
=20
>Yes the class name has changed since the book, now CM provides true=20
>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=20
>c)))

Thank you very much for the information.

Thanks to  andersvi at extern.uio.no, too for explanation
of scaler->cents details.



>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=20
> 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.



------_=_NextPart_001_01C5EA67.621B50CC
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"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=3D2>-----Original Message-----<BR>
From: Rick Taube [<A =
HREF=3D"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=3D"http:/commonmusic.sf.net/doc/dict/midi-topic.html">http:/commonmu=
sic.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;&nb=
sp; 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=3D"http://commonmusic.sourceforge.net/doc/dict/midi-pitch-bend-cls.h=
tml">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;&nb=
sp; output (new midimsg<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :time =
(now)<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&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>
------_=_NextPart_001_01C5EA67.621B50CC--