ddw_music
2014-07-21 00:31:36 UTC
Bizarro messed up thing #1:
1. Play synth by {}.play. Its duration is very short.
2. Install OSCFunc to watch for the '/n_end' message.
3. The OSCFunc *does not fire*.
(
a = {
FreeSelf.kr(Phasor.ar(0, 1, 0, 1e6) < 2048);
Silent.ar(1)
}.play;
o.free;
o = OSCFunc({ |msg| msg.debug("got it") }, '/n_end', s.addr);
)
This is weird because OSC transmission takes time; d_recv takes time; the
synth takes time (46 ms); and the return OSC transmission takes time, and
somehow all of that takes less time than "o.free; o = OSCFunc..." -- if this
is really true, then the interpreter is running like molasses on my machine.
NO WAY should those two expressions take such a long time.
bench {
o.free;
o = OSCFunc({ |msg| msg.debug("got it") }, '/n_end', s.addr);
};
time to run: 9.8943710327148e-05 seconds.
So basically the OSCFunc should have been put in at least 46 ms before it
would be triggered, but... it didn't trigger.
???
hjh
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/OSCFunc-may-not-respond-if-triggered-quickly-tp7612372.html
Sent from the SuperCollider Developers New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-dev 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-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/
1. Play synth by {}.play. Its duration is very short.
2. Install OSCFunc to watch for the '/n_end' message.
3. The OSCFunc *does not fire*.
(
a = {
FreeSelf.kr(Phasor.ar(0, 1, 0, 1e6) < 2048);
Silent.ar(1)
}.play;
o.free;
o = OSCFunc({ |msg| msg.debug("got it") }, '/n_end', s.addr);
)
This is weird because OSC transmission takes time; d_recv takes time; the
synth takes time (46 ms); and the return OSC transmission takes time, and
somehow all of that takes less time than "o.free; o = OSCFunc..." -- if this
is really true, then the interpreter is running like molasses on my machine.
NO WAY should those two expressions take such a long time.
bench {
o.free;
o = OSCFunc({ |msg| msg.debug("got it") }, '/n_end', s.addr);
};
time to run: 9.8943710327148e-05 seconds.
So basically the OSCFunc should have been put in at least 46 ms before it
would be triggered, but... it didn't trigger.
???
hjh
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/OSCFunc-may-not-respond-if-triggered-quickly-tp7612372.html
Sent from the SuperCollider Developers New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-dev 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-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/