Reorder Ndef sources?

I think the answer is no, but is there a quick and easy way to reorder Ndef sources? So:

Ndef(\x, {zort});
Ndef(\x).filter(1, {foo});
Ndef(\x).filter(2, {bar});

… swap it around so that bar comes before foo?


this won’t do?
Ndef(\x).filter(2, {foo}); Ndef(\x).filter(1, {bar});

If you use ProxyChain there’s a neat way of doing it. Take a look at the example in the Help System “Replacing a slot and reordering slots:”

1 Like

I don’t think there is a built-in way with NodeProxies if you don’t want to recreate the filters. Ultimately you can get references to all the running nodes that are created under the covers and do things manually.

var node = Ndef(\x);
var index1 = 1, index2 = 2;
var obj1 = node.objects[index1];
var obj2 = node.objects[index2];

var synth1 = Synth.basicNew(, Server.default, obj1.nodeID);
var synth2 = Synth.basicNew(, Server.default, obj2.nodeID);


node.objects[index1] = obj2;
node.objects[index2] = obj1;

Aha, ProxyChain was what I was thinking about, thanks!

1 Like