(
(
"export SCGRAPH_PLUGIN_PATH=/Applications/SuperCollider/scgraph/lib/scgraph/plugins;"
"export SCGRAPH_SC_PLUGIN_PATH=/Applications/SuperCollider/plugins;"
"/Applications/SuperCollider/scgraph/bin/scgraph"
).unixCmd;
)
a = NetAddr( "localhost", 37291 ); // dir original "192.168.1.8"
g = Server.new( \scgraph, a );
Server.default = g;
(
SynthDef(
\SimpleView,
{
GGLRenderer.gr( In.ar( 0 ) );
}
).store; // original store...
)
a.sendMsg( "/s_new", "SimpleView", -1, 0, 0 );
(
SynthDef(
\WobblingCube,
{
Out.gr( 0, GCube.gr( size: SinOsc.kr( freq: 0.2 ) ) );
}
).play;
)
a.sendMsg( "/s_new", "WobblingCube", -1, 0, 0 );