How to programmatically stop all synthesizers?

How to programmatically tell the supercollide to stop all synthesizers, as in the equivalent of Ctrl+. in the IDE?

+4
source share
2 answers

Currently, SC does not load, but s.freeAll has to do the job because it frees up all the nodes connected to the server.

http://doc.sccode.org/Classes/Server.html#freeAll

+4
source

You can all Ctrl +. directly from the code:

  CmdPeriod.run 

This is more complete than s.freeAll, as it also stops threads on the language side, including the one that contains this command. To learn how to avoid CmdPeriod threads, check out the help files for CmdPeriod and for SkipJack

+1
source

Source: https://habr.com/ru/post/1501561/


All Articles