10

How do I programmatically tell supercollider to stop all synths, as in the equivalent of Ctrl+. in the IDE?

David
  • 15,750
  • 22
  • 90
  • 150

2 Answers2

8

I don't have SC booted at the moment, but s.freeAll should do the job, as it frees all nodes attached to the server.

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

David
  • 15,750
  • 22
  • 90
  • 150
MrSynAckSter
  • 1,681
  • 1
  • 18
  • 34
4

You can all Ctrl+. from code directly:

    CmdPeriod.run

This is more complete than s.freeAll as it also stops language-side Threads, including the one that contains this command. To see how to have threads escape CmdPeriod, check out the helpfiles for CmdPeriod and for SkipJack

les_h
  • 347
  • 1
  • 8