File: Record.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 (28 lines) | stat: -rw-r--r-- 330 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
25
26
27
28
(
OSCFunc(
	{
		arg msg, time, addr, port;
		var flag, path;

		// Get  filename

		flag = msg[1];

		path = msg[2].asString;

		// Print a message to the user

		("Started recording to" + path).postln;

		// Record or stop / recording

		if (flag==1,
			{s.record(path)},
			{s.stopRecording()},
		);

	},
	'foxdot-record'
);
)