Discussion:
Sending SynthDef and creating PAUSED Synth with completion message ?
TriggerSneaker
2014-09-20 21:00:31 UTC
Permalink
This question currently gives me a headache ... besides, i'm somewhat new to
SuperCollider, but anyway ...

Regarding the examples concering asynchronous server communication, it's
quite easy to send a SynthDef to the server and create a synth in the
completion message with the synth running immediately.

But for my current project, i'd like to send a SynthDef to the server and,
on completion, create a synth in PAUSED state, and save the reference of
that synth for later use. This seems several magnitudes more difficult ... i
didn't manage so far.

Anybody got a hint for me? Or is my approach to that task completely off ?






--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Sending-SynthDef-and-creating-PAUSED-Synth-with-completion-message-tp7613489.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
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/
Daniel Mayer
2014-09-20 22:39:58 UTC
Permalink
Would something be feasible ?
You wouldn't have to poke around with messages -
see help file "Bundled Server Messages"

(
s.bind {
n = 1000.rand.asSymbol;
"Synth nr: ".post; n.postln;
SynthDef(n, { Out.ar(0, SinOsc.ar({rrand(200,400)}!2 * EnvGate.new, 0, 0.1)) }).send;
s.sync;
x = Synth.newPaused(n);
}
)


x.run

x.release


Greetings

Daniel

-----------------------------
www.daniel-mayer.at
-----------------------------


_______________________________________________
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/
TriggerSneaker
2014-09-20 22:58:49 UTC
Permalink
Hello Daniel,

yes, this seems to be eactly what i was looking for !

Thanks for pointing me to this!

Regards



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Sending-SynthDef-and-creating-PAUSED-Synth-with-completion-message-tp7613489p7613494.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
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...