File: OscFunc.scd

package info (click to toggle)
python-renardo-lib 0.9.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,220 kB
  • sloc: python: 10,999; sh: 34; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(
OSCFunc(
	{
		arg msg, time, addr, port;
		var fn;

		// Get local filename

		fn = msg[1].asString;

		// Print a message to the user

		("Loading SynthDef from" + fn).postln;

		// Add SynthDef to file

		fn = File(fn, "r");
		fn.readAllString.interpret;
		fn.close;

	},
	'foxdot'
);
)