[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] Suggestion -- NodeProxy:trace
- To: sc-dev <sc-dev@xxxxxxxxxxxxxxxx>
- Subject: [sc-dev] Suggestion -- NodeProxy:trace
- From: James Harkins <jamshark70@xxxxxx>
- Date: Wed, 25 Nov 2015 11:22:35 +0800
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
- User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
Before submitting a PR, I thought I'd ask for feedback on this:
+ NodeProxy {
trace { |index = 0|
var obj = objects[index];
if(obj.nodeID.notNil) {
server.sendMsg(\n_trace, obj.nodeID);
} {
"Cannot trace a% %".format(
if(obj.class.name.asString.first.isVowel) { "n" } { "" },
obj.class.name
).warn;
};
}
}
Rationale: It is *really really irritating* to create a NodeProxy, and it doesn't sound right, and to trace it, you currently have to write:
s.sendMsg(\n_trace, theProxy.objects[0].nodeID);
hjh
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/