supercollider/supercollider — pull request #1042 by miguel-negrao (2014-02-24 17:13:42+00:00)
Title: sclang: add functionality of scp-ing SynthDef when it's too big to send over osc

When working with a server on a remote machine one can't send big synthdefs over osc. This patch allows to bypass that limitation by scp-ing the synthdef file over to the remote machine. ssh must be properly configured with ssh keys installed so that no password is needed. Note that remote folder paths with spaces must be properly escapped.

Example usage:

```
Server.default = s = Server("remote", NetAddr("143.117.78.26",57110));

s.options.sshSynthDefs = true;
s.options.sshUser = "mnegrao";
s.options.sshRemoteSynthDefDir = "Library/Application\\ Support/SuperCollider/synthdefs/"

s.makeWindow
s.initTree

SynthDef(\aaabbbccc, { 1000.collect{ Saw.ar(100) }.sum }).add
Synth(\aaabbbccc)
s.freeAll
```

Note that paths on the remote directory have to be escaped.