< Back to IRCAM Forum

Patch input initialisation corruption

Hi All,

I noticed an unexpected behaviour with patch inputs in OM 7.6. When a patch input is initialised with a list and then evaluated, the list is returned, as expected, in the original order. But if a sort function is connected and evaluated, thereafter the input will also return the sorted list, not the list as originally ordered.

Best,
Fergal

Screenshot 2025-11-17 at 10.30.48

Dear Fergal,

No corruption here. You are using the generic Common Lisp function sort which is destructive see:

http://clhs.lisp.se/Body/f_sort_.htm

Meaning this will destructively set the operation on the given element (here your list).
That is why in graphic programing, we use instead either sort-list which is not destructive and leaves the input list as it was.

Best
K