Permalink
Browse files

class library: provide convenience methods to switch between scsynth …

…and supernova

Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information...
1 parent 0bd7dba commit 5acfc5163380225cecbe948a1252b468a52cfd8c @timblechmann timblechmann committed Sep 13, 2012
Showing with 15 additions and 0 deletions.
  1. +7 −0 HelpSource/Classes/Server.schelp
  2. +8 −0 SCClassLibrary/Common/Control/Server.sc
View
7 HelpSource/Classes/Server.schelp
@@ -102,6 +102,13 @@ query the system for any sc-server apps and hard quit them
method:: freeAll
free all nodes in all registered servers
+method:: supernova
+
+Switches server program to use supernova. Check link::Classes/ParGroup:: how to make use of multicore hardware with the supernova server.
+
+method:: scsynth
+
+Switches server program to use supernova.
InstanceMethods::
View
8 SCClassLibrary/Common/Control/Server.sc
@@ -1084,4 +1084,12 @@ Server {
^serverInterface.setControlBusValues(busIndex, valueArray)
}
}
+
+ *scsynth {
+ this.program = this.program.replace("supernova", "scsynth")
+ }
+
+ *supernova {
+ this.program = this.program.replace("scsynth", "supernova")
+ }
}

0 comments on commit 5acfc51

Please sign in to comment.