< Back to IRCAM Forum

Trouble Loading OM-Pursuit

Cheers everyone,

While trying to load the OM-Pursuit library on OM 6.8, I get this message:

Error while loading the library OM-Pursuit:
“No applicable methods for #<standard-generic-function (setf name) 234376BA>
with args (\”PREPARETOPLAY\” #<standard-method preparetoplay (t note t) 2010FD47>)”

The sole instance of PreparetoPlay in the OM-Pursuit folder is in the dispatch-cseq.lisp file and is defined as follows:

(defmethod* PrepareToPlay ((player t) (self note) at &key approx port interval voice)
(when (and midiplayer (not (memq (tie self) '(continue end))))
(setf port (or port (port self)))
(let ((chan (+ (1- (chan self)) (1- (micro-channel (approx-m (midic self) approx) approx))))
(pitch (truncate (approx-scale (get-current-scale approx) (midic self)) 100))
(vel (vel self))
(dur (- (real-dur self) 2))
(date (+ MidiShare-start-time at))
(voice (or voice 0)))
(if interval
(let ((newinterval (interval-intersec interval (list at (+ at (- (real-dur self) 1))))))
(when newinterval
(playnote port chan pitch vel (- (second newinterval) (first newinterval) 1)
(- (+ MidiShare-start-time (first newinterval))
(first interval))
voice)))
(playnote port chan pitch vel dur date voice)))))

I’m sure this is just a matter of some minor debugging of the Library in Lisp. All help, or a working version of OM-Pursuit, will be most welcome.

All the best,
António

Hi António,

Thanks for your interest! Note, that OM-Pursuit has not been officially released yet. As it is currently unsupported it is possible (and likely) that there are artefacts or dependencies in the code which might prevent it from loading. In the meantime, you can still experiment/play around with it as-is (PrepareToPlay is not required), it might work :stuck_out_tongue:

There are also a number of other OpenMusic users interested in OM-Pursuit. Without promising too much, I think we should have a stable version by the end of the year. Once it’s ready for the community I will make sure to post it here!

Cheers,
Marlon

Hi Marlon,

Thanks for the great news and the tip.

With PreparetoPlay out of the picture, it does load perfectly.

Best,
António