/EDIT/MERGE vs. /EDIT

I'm trying to dynamically add widgets to a panel by updating the widgets array remotely. Ideally, if a panel already contains, say fader_1, I'd like to add fader_2 by sending a JSON string from SuperCollider without removing fader_1 from the widgets array...it seems the only way I can do this now is to /GET the widgets array, make a new array with the existing widgets and the one I want to add, and then /EDIT panel_1 again...or am I missing something?

I assumed that /EDIT/MERGE would allow me to add to the array without overwriting all the contents of widgets but I guess I misunderstood the documentation. If anyone has a better solution to this, please let me know! :slight_smile:

Okay, turns out I can solve my problem by doing some bookkeeping on the SuperCollider side of things, no problem! But if anyone can help me understand the distinction between /EDIT/MERGE and /EDIT I would be very happy!

Also, thanks again to @jean-emmanuel for such great work! Recently discovered the remote control interface and things are getting wild! :slight_smile:

/EDIT/MERGE was an attempt to address such use cases but it didn't turn out so well and now I come to think I'd better deprecate it to avoid any confusion (see also this post).

Thank you for the kind words, always appreciated !

1 Like