-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChain.py
More file actions
268 lines (227 loc) · 7.88 KB
/
Chain.py
File metadata and controls
268 lines (227 loc) · 7.88 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# All referenced (missing descriptions)
from typing import Callable
from Live.Base import Vector
from Live.ChainMixerDevice import ChainMixerDevice
from Live.Device import Device
class Chain:
"""
This class represents a group device chain in Live
"""
@property
def _live_ptr(self) -> int:
"""
:return: The pointer to the Live object.
"""
return 0
@property
def canonical_parent(self):
"""
Get the canonical parent of the chain.
"""
return
@property
def color(self) -> int:
"""
Access the color index of the Chain.
"""
return 0
@property
def color_index(self) -> int:
"""
Access the color index of the Chain.
"""
return 0
@property
def devices(self) -> Vector[Device]:
"""
Return const access to all available Devices that are present in the chains
"""
return Vector()
@property
def has_audio_input(self) -> bool:
"""
return True, if this Chain can be feed with an Audio signal. This is true for all Audio Chains.
"""
return False
@property
def has_audio_output(self) -> bool:
"""
return True, if this Chain sends out an Audio signal. This is true for all Audio Chains, and MIDI chains with an Instrument.
"""
return False
@property
def has_midi_input(self) -> bool:
"""
return True, if this Chain can be feed with an Audio signal. This is true for all MIDI Chains.
"""
return False
@property
def has_midi_output(self) -> bool:
"""
return True, if this Chain sends out MIDI events. This is true for all MIDI Chains with no Instruments.
"""
return False
@property
def is_auto_colored(self) -> bool:
"""
Get/set access to the auto color flag of the Chain.
If True, the Chain will always have the same color as the containing Track or Chain.
"""
return False
@property
def mixer_device(self) -> ChainMixerDevice:
"""
Return access to the mixer device that holds the chain's mixer parameters:
the Volume, Pan, and Send amounts.
"""
return ChainMixerDevice()
@property
def mute(self) -> bool:
"""
Mute/unmute the chain.
"""
return False
@property
def muted_via_solo(self) -> bool:
"""
Return const access to whether this chain is muted due to some other chain being soloed.
"""
return False
@property
def name(self) -> str:
"""
Read/write access to the name of the Chain, as visible in the track header.
"""
return ""
@property
def solo(self) -> bool:
"""
Get/Set the solo status of the chain. Note that this will not disable the solo state of any other Chain in the same rack.
If you want exclusive solo, you have to disable the solo state of the other Chains manually.
"""
return False
def add_color_index_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "color_index" has changed.
"""
pass
def add_color_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "color" has changed.
"""
pass
def add_devices_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "devices" has changed.
"""
pass
def add_is_auto_colored_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "is_auto_colored" has changed.
"""
pass
def add_mute_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "mute" has changed.
"""
pass
def add_muted_via_solo_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "muted_via_solo" has changed.
"""
pass
def add_name_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "name" has changed.
"""
pass
def add_solo_listener(self, arg2: Callable):
"""
Add a listener function or method, which will be called as soon as the property "solo" has changed.
"""
pass
def color_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "color".
"""
return False
def color_index_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "color_index".
"""
return False
def delete_device(self, arg2: int):
"""
Remove a device identified by its index from the chain. Throws runtime error if bad index.
"""
pass
def devices_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "devices".
"""
return False
def is_auto_colored_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "is_auto_colored".
"""
return False
def mute_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "mute".
"""
return False
def muted_via_solo_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "muted_via_solo".
"""
return False
def name_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "name".
"""
return False
def remove_color_index_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "color_index".
"""
pass
def remove_color_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "color".
"""
pass
def remove_devices_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "devices".
"""
pass
def remove_is_auto_colored_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "is_auto_colored".
"""
pass
def remove_mute_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "mute".
"""
pass
def remove_muted_via_solo_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "muted_via_solo".
"""
pass
def remove_name_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "name".
"""
pass
def remove_solo_listener(self, arg2: Callable):
"""
Remove a previously set listener function or method from property "solo".
"""
pass
def solo_has_listener(self, arg2: Callable) -> bool:
"""
Returns true, if the given listener function or method is connected to the property "solo".
"""
return False