[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>
>Yes the class name has changed since the book, now CM provides =
true<BR>
>classes for midi messages<BR>
><BR>
><A =
HREF=3D"http:/commonmusic.sf.net/doc/dict/midi-topic.html">http:/commonmu=
sic.sf.net/doc/dict/midi-topic.html</A><BR>
><BR>
>i think this is what you want:<BR>
><BR>
> (define (clearbends)<BR>
> (process for c below 16<BR>
> &nb=
sp; output (new midi-pitch-bend :time (now) :bend 0 :channel<BR>
>c)))<BR>
<BR>
Thank you very much for the information.<BR>
<BR>
Thanks to andersvi at extern.uio.no, too for explanation<BR>
of scaler->cents details.<BR>
<BR>
<BR>
<BR>
>see also<BR>
><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>
> Hi all,<BR>
><BR>
> I'm studying Ch. 15 of the book Notes from the Metalevel<BR>
> and after successfuly listening to harmonic series<BR>
> I was stuck at Ex. 2, clearbends:<BR>
><BR>
> (define (clearbends)<BR>
> (process for c below 16<BR>
> &nb=
sp; output (new midimsg<BR>
> &nb=
sp; :time =
(now)<BR>
> &nb=
sp; :msg =
(make-pitch-bend c 0))))<BR>
><BR>
> ; in: DEFINE (CLEARBENDS)<BR>
> ; (CM:NEW CM::MIDIMSG :TIME (CM:NOW) =
:MSG (CM::MAKE-PITCH-BEND<BR>
> CM::C 0))<BR>
> ;<BR>
> ; caught ERROR:<BR>
> ; (in macroexpansion of (NEW MIDIMSG :TIME =
...))<BR>
> ; (hint: For more precise location, try =
*BREAK-ON-SIGNALS*.)<BR>
> ; There is no class named MIDIMSG.<BR>
><BR>
> What does that mean? Is midimsg a deprecated class? Is =
there<BR>
> some similar class with a different name?<BR>
><BR>
> I'll be glad if somebody can help me.<BR>
><BR>
> Happy musical hacking,<BR>
> Emre S.<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C5EA67.621B50CC--