< Back to IRCAM Forum

Error when chord-seq

I am getting a really strange error whenever I try to create a chord-seq object. I am running OM 6.8 on Mavericks. Just to be sure I have tried with OM 6.5.1 with similar results.

Anybody had a similar problem?

See the screenshot attached

Michele

Screen-Shot-2014-04-11-at-5.30.40-PM.tiff (1.35 MB)

apparently what is bugging OM is this function I put in the patches folder
(defun legato (lst)
(cond ((= (length lst) 1) lst)
((>= (+ (cadar lst) (caar lst)) (caadr lst))
(cons (append (list (caar lst)) (list (+ (cadar lst) (cadadr lst)))) (if (null (cddr lst)) nil (legato (cddr lst)))))
(t (cons (car lst) (legato (cdr lst))))))
all of the remaining LISP buffer loads fine without giving any problem, but when i insert this function if i create a chord-seq in the pacth OM will not let me save
I attached the screenshot this time…
(the function takes lists of pair of elements, the first is the onset and the second the duration: if one note touches the following one in the list they will be merged into one)

Thanks for any help!

Screen-Shot-2014-04-11-at-6.58.55-PM.png

figured out: the name of my funtion “legato” is also used by the chord seq object. I changed the name to “mylegato” and it works… in case anybody was wondering