I can’t work out how to correctly set slot values for objects in Lisp code.
Here is a minimal example:
(defmethod note->chord ((self note) (offset list))
(let ((chord (objfromobjs self (mki 'chord))))
(setf (slot-value chord 'LOffset) offset)
chord))
Please see attached screenshot:
When I evaluate the CHORD from the fourth outlet (lonset) the return value is (0), but I was hoping for (50). Can someone help me out?
Thanks!