[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Want to try Scgraph on os x, any advice?



I find this that works

(

 (

 "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 );