[CM] How to fix: no such class MIDIMSG
Tue, 15 Nov 2005 09:18:24 +0100
According to CM's change-log, the midimsg was replaced by several
specialized messages-classes some time ago.
Try replacing with (new midi-pitch-bend :channel c :bend 0)
Youll find the changes in cm/doc/changelog.text.
o New highlevel MIDI event classes replace the MIDIMSG class for
generating events to MIDI files MidiShare streams
1. Channel Messages classes:
2. System Messages classes:
3. MIDI File Meta Message classes:
>>> "ES" == Emre Sevinc <firstname.lastname@example.org> writes:
ES> Hi all,
ES> I'm studying Ch. 15 of the book Notes from the Metalevel
ES> and after successfuly listening to harmonic series
ES> I was stuck at Ex. 2, clearbends:
ES> (define (clearbends)
ES> (process for c below 16
ES> output (new midimsg
ES> :time (now)
ES> :msg (make-pitch-bend c 0))))
ES> ; in: DEFINE (CLEARBENDS)
ES> ; (CM:NEW CM::MIDIMSG :TIME (CM:NOW) :MSG (CM::MAKE-PITCH-BEND CM::C 0))
ES> ; caught ERROR:
ES> ; (in macroexpansion of (NEW MIDIMSG :TIME ...))
ES> ; (hint: For more precise location, try *BREAK-ON-SIGNALS*.)
ES> ; There is no class named MIDIMSG.
ES> What does that mean? Is midimsg a deprecated class? Is there
ES> some similar class with a different name?
ES> I'll be glad if somebody can help me.
ES> Happy musical hacking,
ES> Emre S.
William Congreve: Music has charms to soothe the savage beast,
to soften rocks or bend a knotted oak.