Discussion:
ThisNode.ir
Hanns Holger Rutz
2014-10-21 21:33:56 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi there,

any1 aware of a UGen that returns the node-ID of the encompassing
synth? this would be very useful for debug Poll instances where I have
multiple synths of the same definition and retro-fitting with
debug-controls is annoying. Like

4.do { play { ThisNode.ir.poll(0, "here"); 0 }}

best, .h.h.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJURtE+AAoJEKZFmaPaYk6QMIsP/2ulYhFJN0y2skcG/1YnzYHn
jwIViUMgIrZsdlExV1N4a0zcnI6LytCtKrShjpnXQrLCdP25nk3+fLK8aXWzgwiV
Qf14yvVvtnU05FXeLv/xSc8bs78V+ZZmJIuZ7KxizeN2B+a0OoVaa+fpUCiakOv5
gBO9TfA4xi283TX1K8b8WBBEJ2bVVrtM8ZkpaKThs5Aifs8rNtUKLWYBkBF3gqMa
N3Rcl7V29MH4nfrYLmrPlvTfWRt5s9BY4P4YDJx8VbOG8ouu9trj5teqDzSsLLIc
rCaDSLCVaaCyNbaSsYkP4Zfq8eolZbY5dxSetK+bkB/pZf+NS0EmxqeA7WUD/NiV
aHQFQOonVEScn/CQYuxjJhouekU7f7ayyyHxdDa1pD6AfHTV0QiUN+pfyzwdlCUc
Jp0Y7/h1ZAV6HrXm+aSPUdey1ohFAacRj+x5JEC84e7oxfPXOZD5aukhyLM4SjQ4
XUgztgFLGcFpdDMx8J1RC5OD1GuWLIZ4k+WTdKJnweukaC9qwuqna8o4lAlif8gv
vE8Apem6uj+bLp5tle4YZU8KsPQKhS4My1sdsJAFFEV19DAhDaSd+GPuEqdb7cEZ
hAOKOioGFvximfTueNckElaoFMBfQjkrpO4A+Ukv+E3a4pnmdDI1+ooyV4kTNMdW
7BCDdoG4UqX1QHHFe2rQ
=iX9q
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
James Harkins
2014-10-22 02:27:41 UTC
Permalink
At Tue, 21 Oct 2014 23:33:56 +0200,
Post by Hanns Holger Rutz
any1 aware of a UGen that returns the node-ID of the encompassing
synth? this would be very useful for debug Poll instances where I have
multiple synths of the same definition and retro-fitting with
debug-controls is annoying. Like
4.do { play { ThisNode.ir.poll(0, "here"); 0 }}
This would be useful. I'm surprised we don't already have something like this in the main distribution, actually. (I used the class browser to search for subclasses of UGen containing "id," but it turned up nothing like what you mentioned.)

Would you mind opening an issue on github?

As a workaround, you could use SendReply to pass the debugging values back to the language, and pick them up with an OSCFunc. SendReply includes the node ID in the message: [ /yourCommandPath, nodeID, replyID, values... ].

hjh



_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-22 08:00:01 UTC
Permalink
Ok, I added an enhancement ticket.

Best, .h.h.
Post by James Harkins
At Tue, 21 Oct 2014 23:33:56 +0200,
Post by Hanns Holger Rutz
any1 aware of a UGen that returns the node-ID of the encompassing
synth? this would be very useful for debug Poll instances where I have
multiple synths of the same definition and retro-fitting with
debug-controls is annoying. Like
4.do { play { ThisNode.ir.poll(0, "here"); 0 }}
This would be useful. I'm surprised we don't already have something like this in the main distribution, actually. (I used the class browser to search for subclasses of UGen containing "id," but it turned up nothing like what you mentioned.)
Would you mind opening an issue on github?
As a workaround, you could use SendReply to pass the debugging values back to the language, and pick them up with an OSCFunc. SendReply includes the node ID in the message: [ /yourCommandPath, nodeID, replyID, values... ].
hjh
_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Loading...