< Back to IRCAM Forum

User functions and OM 6.9

Hello,

I have made a number of user functions as patches. The RubenOM workspace is at this website:
http://www.bek.no/~ruben/Research/Downloads/software.html
I reported a problem that most of the patches didn’t work any more in OM 6.9, and I received the attached patch from Jean Bresson. This solved most of the problems. But I found another case which still doesn’t work in 6.9:
The demo patch “quantify-instrumentalpart-demo” worked until OM 6.8. In 6.9 I get this error:
“Arithmetic error in = of (nil 17): Arguments must be numbers.”
The problem is in the function “multiseq2poly-legato-tie”.
I hope you have some hints what the problem in this patch may be.
I have started the work reprogramming everything in Lisp, and will hopefully make a library. It may take some time.

Best
Ruben Gjertsen

loop-compilation.xfasl (11.5 KB)

Hi,

that bug was not easy to spot !

your problem actually comes from a recent fix on dealing with NIL elements in the MAT-TRANS function.

OM 6.8: (MAT-TRANS '((1 2 3) (a NIL c))) => ((1 a) (2) (3 c))
OM 6.9: (MAT-TRANS '((1 2 3) (a NIL c))) => ((1 a) (2 NIL) (3 c))

That NIL causes the error in your function.
In order to fix it , you will need to dig inside multiseq2poly-legato-tie to find the substract-rests patch.

Inside this patch, you can add a couple of boxes to remove null values (or keep only numbers) from the output of ‘make-comparison’ (see atached picture).

Best,

Capture-d’écran-2015-11-06-à-14.59.57.png

Thank you! Now I got it working.
Ruben

Hi ,
Can anybody send me the .lisp files of the omloop-compilation since i am using linux plateform.
This will be great.

THank you
K