forked from crucialfelix/supercolliderjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTypes.js
92 lines (75 loc) · 1.99 KB
/
Types.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
export type JSONType =
| string
| number
| boolean
| null
| JSONObjectType
| JSONArrayType;
export type JSONObjectType = { [key: string]: JSONType };
export type JSONArrayType = Array<JSONType>;
// @typedef
export type SclangResultType = JSONType;
export type SynthDefResultType = {
name: string,
bytes: Buffer,
synthDesc: JSONObjectType
};
export type SynthDefResultMapType = { [defName: string]: SynthDefResultType };
// @typedef
export type OscType = string | number | Buffer | null;
// @typedef
export type MsgType = [OscType];
// @typedef
export type CallAndResponseType = { call: MsgType, response: MsgType };
// @typedef
export type PairsType = Array<MsgType> | Object;
// @typedef
export type OSCTimeType = null | number | [number] | Date;
// @typedef
export type OSCMinMsgType = { oscType: string, address: string, args: MsgType };
// @typedef
export type NodeStateType = {
parent: ?number,
previous: ?number,
next: ?number,
isGroup: boolean,
head: ?number,
tail: ?number
};
// @typedef
export type ServerOptions = {
host: ?string,
serverPort: ?string,
protocol: ?string,
commandLineOptions: ?Array<string>,
numPrivateAudioBusChannels: ?number,
numAudioBusChannels: ?number,
numControlBusChannels: ?number,
numInputBusChannels: ?number,
numOutputBusChannels: ?number,
numBuffers: ?number,
maxNodes: ?number,
maxSynthDefs: ?number,
blockSize: ?number,
hardwareBufferSize: ?number,
memSize: ?number,
numRGens: ?number,
numWireBufs: ?number,
sampleRate: ?number,
loadDefs: ?boolean,
inputStreamsEnabled: ?boolean,
outputStreamsEnabled: ?boolean,
device: ?string,
verbosity: ?number,
zeroConf: ?boolean,
restrictedPath: ?string,
ugenPluginsPath: ?string,
initialNodeID: ?number,
remoteControlVolume: ?boolean,
memoryLocking: ?boolean,
threads: ?boolean,
useSystemClock: ?boolean,
// Environment variables to set for server process
// eg. SC_JACK_DEFAULT_INPUTS: "system:capture_1,system:capture_2"
env: ?Object
};