@types/gorilla-engine 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. gorilla-engine/LICENSE +0 -0
  2. gorilla-engine/README.md +1 -1
  3. gorilla-engine/components/AmpEnv.d.ts +1 -1
  4. gorilla-engine/components/BarStepEditor.d.ts +0 -0
  5. gorilla-engine/components/ComboBox.d.ts +2 -2
  6. gorilla-engine/components/DragContainer.d.ts +0 -0
  7. gorilla-engine/components/DragTarget.d.ts +0 -0
  8. gorilla-engine/components/DropZone.d.ts +0 -0
  9. gorilla-engine/components/Knob.d.ts +14 -1
  10. gorilla-engine/components/Label.d.ts +3 -1
  11. gorilla-engine/components/LevelMeter.d.ts +0 -0
  12. gorilla-engine/components/ListBox.d.ts +1 -1
  13. gorilla-engine/components/LottieAnimation.d.ts +1 -0
  14. gorilla-engine/components/MidiKeyboard.d.ts +0 -0
  15. gorilla-engine/components/Pad.d.ts +1 -1
  16. gorilla-engine/components/Rubberband.d.ts +9 -0
  17. gorilla-engine/components/ScrollView.d.ts +2 -0
  18. gorilla-engine/components/SliceEditor.d.ts +103 -96
  19. gorilla-engine/components/Slider.d.ts +1 -1
  20. gorilla-engine/components/StepEditor.d.ts +3 -1
  21. gorilla-engine/components/TagBrowser.d.ts +17 -0
  22. gorilla-engine/components/TagEditor.d.ts +15 -0
  23. gorilla-engine/components/TextBox.d.ts +8 -3
  24. gorilla-engine/components/Toggle.d.ts +1 -1
  25. gorilla-engine/components/Trigger.d.ts +2 -1
  26. gorilla-engine/components/Waveform.d.ts +54 -53
  27. gorilla-engine/components/Window.d.ts +0 -0
  28. gorilla-engine/components/XYPad.d.ts +19 -0
  29. gorilla-engine/index.d.ts +305 -252
  30. gorilla-engine/interfaces/Background.d.ts +0 -0
  31. gorilla-engine/interfaces/Bounds.d.ts +0 -0
  32. gorilla-engine/interfaces/Clickable.d.ts +19 -19
  33. gorilla-engine/interfaces/Common.d.ts +0 -0
  34. gorilla-engine/interfaces/Component.d.ts +0 -0
  35. gorilla-engine/interfaces/Font.d.ts +11 -11
  36. gorilla-engine/interfaces/Highlight.d.ts +12 -0
  37. gorilla-engine/interfaces/Keyable.d.ts +6 -0
  38. gorilla-engine/interfaces/KeyboardFocus.d.ts +2 -0
  39. gorilla-engine/interfaces/MIDILearn.d.ts +7 -0
  40. gorilla-engine/interfaces/Margin.d.ts +11 -0
  41. gorilla-engine/interfaces/Scrollable.d.ts +0 -0
  42. gorilla-engine/interfaces/Skinnable.d.ts +0 -0
  43. gorilla-engine/interfaces/Tag.d.ts +10 -0
  44. gorilla-engine/package.json +3 -3
gorilla-engine/index.d.ts CHANGED
@@ -17,6 +17,11 @@
17
17
  /// <reference path = "interfaces/KeyboardFocus.d.ts" />
18
18
  /// <reference path = "interfaces/Scrollable.d.ts" />
19
19
  /// <reference path = "interfaces/Skinnable.d.ts" />
20
+ /// <reference path = "interfaces/MIDILearn.d.ts" />
21
+ /// <reference path = "interfaces/Highlight.d.ts" />
22
+ /// <reference path = "interfaces/Keyable.d.ts" />
23
+ /// <reference path = "interfaces/Margin.d.ts" />
24
+ /// <reference path = "interfaces/Tag.d.ts" />
20
25
 
21
26
  /// <reference path = "components/AmpEnv.d.ts" />
22
27
  /// <reference path = "components/BarStepEditor.d.ts" />
@@ -40,289 +45,337 @@
40
45
  /// <reference path = "components/Trigger.d.ts" />
41
46
  /// <reference path = "components/Waveform.d.ts" />
42
47
  /// <reference path = "components/Window.d.ts" />
48
+ /// <reference path = "components/TagBrowser.d.ts" />
49
+ /// <reference path = "components/TagEditor.d.ts" />
50
+ /// <reference path = "components/XYPad.d.ts" />
51
+ /// <reference path = "components/Rubberband.d.ts" />
43
52
 
44
53
  declare namespace GorillaEngine {
45
- /**
46
- * Instrument parameter session persistence
47
- */
48
- interface InstrumentPropertyPersistence {
49
54
  /**
50
- * Indicates that the parameter is not exposed to the host DAW, should not saved in a preset and should not be saved in the session.
55
+ * Instrument parameter session persistence
51
56
  */
52
- private: boolean;
57
+ interface InstrumentPropertyPersistence {
58
+ /**
59
+ * Indicates that the parameter is not exposed to the host DAW, should not saved in a preset and should not be saved in the session.
60
+ */
61
+ private: boolean;
62
+ /**
63
+ * Indicates the the parameter is exposed to the host DAW.
64
+ */
65
+ showInHost: boolean;
66
+ /**
67
+ * Indicates that the parameter should be saved in the session.
68
+ */
69
+ saveInSession: boolean;
70
+ /**
71
+ * Indicates that the parameter should be saved into a preset.
72
+ */
73
+ saveInPreset: boolean;
74
+ }
53
75
  /**
54
- * Indicates the the parameter is exposed to the host DAW.
76
+ * Instrument property
55
77
  */
56
- showInHost: boolean;
57
- /**
58
- * Indicates that the parameter should be saved in the session.
59
- */
60
- saveInSession: boolean;
61
- /**
62
- * Indicates that the parameter should be saved into a preset.
63
- */
64
- saveInPreset: boolean;
65
- }
66
- /**
67
- * Instrument property
68
- */
69
- interface InstrumentProperty {
70
- /**
71
- * A normalised representation of its value.
72
- */
73
- normValue: number;
74
- /**
75
- * Its actual value.
76
- */
77
- value: number;
78
- normValueAsync: number;
79
- valueAsync: number;
80
- readonly defaultValue: number;
81
- readonly minValue: number;
82
- readonly maxValue: number;
83
- readonly resolution: number;
84
- /**
85
- * The number of its steps if it's a stepped parameter
86
- */
87
- readonly numSteps: number;
88
- readonly key: string;
89
- readonly name: string;
90
- readonly category: string;
91
- readonly label: string;
92
- readonly text: string;
93
- readonly unit: string;
94
- /**
95
- * Its steps if it's a stepped paramter
96
- */
97
- readonly steps: string[];
98
- readonly persistence: InstrumentPropertyPersistence;
99
- }
78
+ interface InstrumentProperty {
79
+ /**
80
+ * A normalised representation of its value.
81
+ */
82
+ normValue: number;
83
+ /**
84
+ * Its actual value.
85
+ */
86
+ value: number;
87
+ normValueAsync: number;
88
+ valueAsync: number;
89
+ readonly defaultValue: number;
90
+ readonly minValue: number;
91
+ readonly maxValue: number;
92
+ readonly resolution: number;
93
+ /**
94
+ * The number of its steps if it's a stepped parameter
95
+ */
96
+ readonly numSteps: number;
97
+ readonly key: string;
98
+ readonly name: string;
99
+ readonly category: string;
100
+ readonly label: string;
101
+ readonly text: string;
102
+ readonly unit: string;
103
+ /**
104
+ * Its steps if it's a stepped paramter
105
+ */
106
+ readonly steps: string[];
107
+ readonly persistence: InstrumentPropertyPersistence;
108
+ }
100
109
 
101
- /**
102
- * Instrument
103
- */
104
- interface Instrument {
105
- on(propName: string, handler: (normValue: number) => void): void;
106
- /**
107
- * Method used to retrieve a serialised module from the Gorilla Engine.
108
- *
109
- * @param path The path to the module that should be retrieved.
110
- * @returns The serialised module found at the given `path` or `false` if nothing was found.
111
- */
112
- getModuleAtPath(path: string): string | boolean;
113
110
  /**
114
- * Method used to determine if a value from the Gorilla Engine is a module.
115
- *
116
- * @param path The path to the value that should be determined.
117
- * @returns `true` if the value found at the given `path` is a module or `false` if it's not or nothing was found.
111
+ * Instrument
118
112
  */
119
- isModuleAtPath(path: string): boolean;
120
- /**
121
- * Method used to retrieve a value from the Gorilla Engine.
122
- *
123
- * @param path The path to the value that should be retrieved.
124
- * @returns The value found at the given `path` or `false` if nothing was found.
125
- */
126
- getValueAtPath(path: string): string | object | number | Int32Array | Float64Array | boolean;
113
+ interface Instrument {
114
+ on(propName: string, handler: (normValue: number) => void): void;
115
+ /**
116
+ * Method used to retrieve a serialised module from the Gorilla Engine.
117
+ *
118
+ * @param path The path to the module that should be retrieved.
119
+ * @returns The serialised module found at the given `path` or `false` if nothing was found.
120
+ */
121
+ getModuleAtPath(path: string): string | boolean;
122
+ /**
123
+ * Method used to determine if a value from the Gorilla Engine is a module.
124
+ *
125
+ * @param path The path to the value that should be determined.
126
+ * @returns `true` if the value found at the given `path` is a module or `false` if it's not or nothing was found.
127
+ */
128
+ isModuleAtPath(path: string): boolean;
129
+ /**
130
+ * Method used to retrieve a value from the Gorilla Engine.
131
+ *
132
+ * @param path The path to the value that should be retrieved.
133
+ * @returns The value found at the given `path` or `false` if nothing was found.
134
+ */
135
+ getValueAtPath(path: string): string | object | number | Int32Array | Float64Array | boolean;
127
136
 
128
- /**
129
- * Method used to set a string at a certain path in the engine.
130
- * This method could for example be used to set a user sample to a certain Zone in the Gorilla Engine.
131
- *
132
- * @param path The path to the string that should be set.
133
- * @param value The string that should be set at the given `path`.
134
- * @returns `true` if the value has been set succcessfully or `false` otherwise.
135
- */
136
- setStringAtPath(path: string, value: string): boolean;
137
+ /**
138
+ * Method used to set a string at a certain path in the engine.
139
+ * This method could for example be used to set a user sample to a certain Zone in the Gorilla Engine.
140
+ *
141
+ * @param path The path to the string that should be set.
142
+ * @param value The string that should be set at the given `path`.
143
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
144
+ */
145
+ setStringAtPath(path: string, value: string): boolean;
137
146
 
138
- /**
139
- * Method used to render a section of a sample to a waveform. Commonly used to source the `value` property of the `waveform` control.
140
- *
141
- * @param numPoints The number of points that the waveform should be rendered into.
142
- * @param zoneId The id of the zone whichs sample should be rendered to a waveform.
143
- * @param start A normalised value indicating from where in the sample waveform rendering should start.
144
- * @param end A normalised value indicating where in the sample waveform rendering should end.
145
- * @returns The waveform of the sample found at `zoneId`.
146
- */
147
- getWaveformData(numPoints: number, zoneId: number, start: number, end: number): Uint8Array;
147
+ /**
148
+ * Method used to render a section of a sample to a waveform. Commonly used to source the `value` property of the `waveform` control.
149
+ *
150
+ * @param numPoints The number of points that the waveform should be rendered into.
151
+ * @param zoneId The id of the zone whichs sample should be rendered to a waveform.
152
+ * @param start A normalised value indicating from where in the sample waveform rendering should start.
153
+ * @param end A normalised value indicating where in the sample waveform rendering should end.
154
+ * @returns The waveform of the sample found at `zoneId`.
155
+ */
156
+ getWaveformData(numPoints: number, zoneId: number, start: number, end: number): Uint8Array;
148
157
 
149
- /**
150
- * Method used to retrieve an array of integers from the Gorilla Engine.
151
- *
152
- * @param path The path to the array that should be retrieved.
153
- * @returns The array of integers found at the given `path` or `false` if nothing was found.
154
- */
155
- getIntArrayAtPath(path: string): Int32Array | boolean;
158
+ /**
159
+ * Method used to retrieve an array of integers from the Gorilla Engine.
160
+ *
161
+ * @param path The path to the array that should be retrieved.
162
+ * @returns The array of integers found at the given `path` or `false` if nothing was found.
163
+ */
164
+ getIntArrayAtPath(path: string): Int32Array | boolean;
156
165
 
157
- /**
158
- * Method used to set an array of integers at a ceterain path in the Gorilla Engine.
159
- *
160
- * @param path The path to the integer array that should be set.
161
- * @param value The integer array that should be set at the given `path`.
162
- * @returns `true` if the value has been set succcessfully or `false` otherwise.
163
- */
164
- setIntArrayAtPath(path: string, value: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array): boolean;
166
+ /**
167
+ * Method used to set an array of integers at a ceterain path in the Gorilla Engine.
168
+ *
169
+ * @param path The path to the integer array that should be set.
170
+ * @param value The integer array that should be set at the given `path`.
171
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
172
+ */
173
+ setIntArrayAtPath(
174
+ path: string,
175
+ value: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array,
176
+ ): boolean;
165
177
 
166
- /**
167
- * Method used to retrieve an array of doubles from the Gorilla Engine.
168
- *
169
- * @param path The path to the array that should be retrieved.
170
- * @returns The array of doubles found at the given `path` or `false` if nothing was found.
171
- */
172
- getDoubleArrayAtPath(path: string): Float64Array | boolean;
178
+ /**
179
+ * Method used to retrieve an array of doubles from the Gorilla Engine.
180
+ *
181
+ * @param path The path to the array that should be retrieved.
182
+ * @returns The array of doubles found at the given `path` or `false` if nothing was found.
183
+ */
184
+ getDoubleArrayAtPath(path: string): Float64Array | boolean;
173
185
 
174
- /**
175
- * Method used to set an array of floats or doubles at a ceterain path in the Gorilla Engine.
176
- *
177
- * @param path The path to the double array that should be set.
178
- * @param value The float or double array that should be set at the given `path`.
179
- * @returns `true` if the value has been set succcessfully or `false` otherwise.
180
- */
181
- setDoubleArrayAtPath(path: string, value: Float32Array | Float64Array): boolean;
186
+ /**
187
+ * Method used to set an array of floats or doubles at a ceterain path in the Gorilla Engine.
188
+ *
189
+ * @param path The path to the double array that should be set.
190
+ * @param value The float or double array that should be set at the given `path`.
191
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
192
+ */
193
+ setDoubleArrayAtPath(path: string, value: Float32Array | Float64Array): boolean;
182
194
 
183
- /**
184
- * Method used to retrieve a double from the Gorilla Engine.
185
- *
186
- * @param path The path to the double should be retrieved.
187
- * @returns The double found at the given `path` or `false` if nothing was found.
188
- */
189
- getDoubleAtPath(path: string): number | boolean;
195
+ /**
196
+ * Method used to retrieve a double from the Gorilla Engine.
197
+ *
198
+ * @param path The path to the double should be retrieved.
199
+ * @returns The double found at the given `path` or `false` if nothing was found.
200
+ */
201
+ getDoubleAtPath(path: string): number | boolean;
190
202
 
191
- /**
192
- * Method used to set a double at a ceterain path in the Gorilla Engine.
193
- *
194
- * @param path The path to the double that should be set.
195
- * @param value The double that should be set at the given `path`.
196
- * @returns `true` if the value has been set succcessfully or `false` otherwise.
197
- */
198
- setDoubleAtPath(path: string, value: number): boolean;
203
+ /**
204
+ * Method used to set a double at a ceterain path in the Gorilla Engine.
205
+ *
206
+ * @param path The path to the double that should be set.
207
+ * @param value The double that should be set at the given `path`.
208
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
209
+ */
210
+ setDoubleAtPath(path: string, value: number): boolean;
199
211
 
200
- /**
201
- * Method used to set an integer at a ceterain path in the Gorilla Engine.
202
- *
203
- * @param path The path to the integer that should be set.
204
- * @param value The integer that should be set at the given `path`.
205
- * @returns `true` if the value has been set succcessfully or `false` otherwise.
206
- */
207
- setIntAtPath(path: string, value: number): boolean;
212
+ /**
213
+ * Method used to set an integer at a ceterain path in the Gorilla Engine.
214
+ *
215
+ * @param path The path to the integer that should be set.
216
+ * @param value The integer that should be set at the given `path`.
217
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
218
+ */
219
+ setIntAtPath(path: string, value: number): boolean;
208
220
 
209
- /**
210
- * Method used to retrieve an integer from the Gorilla Engine.
211
- *
212
- * @param path The path to the integer should be retrieved.
213
- * @returns The integer found at the given `path` or `false` if nothing was found.
214
- */
215
- getIntAtPath(path: string): number | boolean;
221
+ /**
222
+ * Method used to retrieve an integer from the Gorilla Engine.
223
+ *
224
+ * @param path The path to the integer should be retrieved.
225
+ * @returns The integer found at the given `path` or `false` if nothing was found.
226
+ */
227
+ getIntAtPath(path: string): number | boolean;
216
228
 
217
- /**
218
- * Method used to insert a Gorilla Engine module at a given path.
219
- * Attempting to set a variable-length module array entry greater than the current length of the array
220
- * will fail (for example, to set `Groups/2` the groups `0` and `1` must exist). Setting a module always inserts
221
- * the module at the speficied index while other value types overwrite the value at the index.
222
- * To replace a module at a `path` use {@link Instrument#removeModuleAtPath} prior to inserting the new module.
223
- *
224
- * @param path The path at which the module should be inserted.
225
- * @param value A Gorilla Enginge module serialised to JSON that should be set at the given `path`.
226
- * @returns `true` if the module has been inserted succcessfully or `false` otherwise.
227
- */
228
- insertModuleAtPath(path: string, value: string): boolean;
229
+ /**
230
+ * Method used to insert a Gorilla Engine module at a given path.
231
+ * Attempting to set a variable-length module array entry greater than the current length of the array
232
+ * will fail (for example, to set `Groups/2` the groups `0` and `1` must exist). Setting a module always inserts
233
+ * the module at the speficied index while other value types overwrite the value at the index.
234
+ * To replace a module at a `path` use {@link Instrument#removeModuleAtPath} prior to inserting the new module.
235
+ *
236
+ * @param path The path at which the module should be inserted.
237
+ * @param value A Gorilla Enginge module serialised to JSON that should be set at the given `path`.
238
+ * @returns `true` if the module has been inserted succcessfully or `false` otherwise.
239
+ */
240
+ insertModuleAtPath(path: string, value: string): boolean;
229
241
 
230
- /**
231
- * Method used to remove a module at a given `path`.
232
- *
233
- * @param path The path to the module that should be removed.
234
- * @returns `true` if the module has been removed succcessfully or `false` otherwise.
235
- */
236
- removeModuleAtPath(path: string): boolean;
242
+ /**
243
+ * Method used to remove a module at a given `path`.
244
+ *
245
+ * @param path The path to the module that should be removed.
246
+ * @returns `true` if the module has been removed succcessfully or `false` otherwise.
247
+ */
248
+ removeModuleAtPath(path: string): boolean;
237
249
 
238
- /**
239
- * Method used to set a normalised double at a ceterain path in the Gorilla Engine.
240
- *
241
- * @param path The path to the normalised double that should be set.
242
- * @param value The normalised double that should be set at the given `path`.
243
- * @returns `true` if the value has been set succcessfully or `false` otherwise.
244
- */
245
- setNormalisedDoubleAtPath(path: string, value: number): boolean;
250
+ /**
251
+ * Method used to set a normalised double at a ceterain path in the Gorilla Engine.
252
+ *
253
+ * @param path The path to the normalised double that should be set.
254
+ * @param value The normalised double that should be set at the given `path`.
255
+ * @returns `true` if the value has been set succcessfully or `false` otherwise.
256
+ */
257
+ setNormalisedDoubleAtPath(path: string, value: number): boolean;
246
258
 
247
- /**
248
- * Method used to retrieve a normalised double from the Gorilla Engine.
249
- *
250
- * @param path The path to the normalised double should be retrieved.
251
- * @returns The normalised double found at the given `path` or `false` if nothing was found.
252
- */
253
- getNormalisedDoubleAtPath(): number | boolean;
259
+ /**
260
+ * Method used to retrieve a normalised double from the Gorilla Engine.
261
+ *
262
+ * @param path The path to the normalised double should be retrieved.
263
+ * @returns The normalised double found at the given `path` or `false` if nothing was found.
264
+ */
265
+ getNormalisedDoubleAtPath(): number | boolean;
266
+
267
+ /**
268
+ * Method used to retrieve MIDI data from the first instrument script that implements `on midi_drag`
269
+ *
270
+ * @returns Array of Midi Events
271
+ */
272
+ getMidiDragData(): Array<{ status: any; data0: any; data1: any; tickAbsolute: any }>;
273
+
274
+ /**
275
+ * Method used to send a `note on` MIDI event to the Gorilla Engine.
276
+ *
277
+ * @param key The musical key that should be triggered. The key is expected to be between `0` and `127`.
278
+ * @param velocity The velocity that the key should be triggerd with. The velocity is expected to be between `0` and `127`.
279
+ */
280
+ noteOn(key: number, velocity: number): void;
281
+
282
+ /**
283
+ * Method used to send a `note off` MIDI event to the Gorilla Engine.
284
+ *
285
+ * @param key The musical key that should be untriggered. The key is expected to be between `0` and `127`.
286
+ */
287
+ noteOff(ke: number): void;
288
+
289
+ /**
290
+ * Method used to stringify a given `value` at a certain `path` in the Gorilla Engine.
291
+ * This is useful to get a label string for parameters in the Gorilla Engine.
292
+ * The value is denormalised according to the scale of the parameter found at `path` and
293
+ * the parameter’s unit is appended to the string accordingly.
294
+ *
295
+ * @param path The path at which the value should be stringified.
296
+ * @param value A value that should be stringified at the given `path`.
297
+ * @returns `false` if the value could not be stringified or the given `value` as a `string`.
298
+ */
299
+ valueToStringAtPath(path: string, value: number): boolean | string;
300
+ }
301
+
302
+ interface Blob {
303
+ loadInstrument(name: string): Instrument;
304
+ getInstrumentNames(): string[];
305
+ }
254
306
 
307
+ interface PreviewPlayer {
308
+ on(eventName: string, callback: any): void;
309
+ }
310
+
311
+ function registerUncaughtUIExceptionCallback(handler: (err: Error) => void): void;
312
+ function getResourcePath(): string;
313
+ function getPluginName(): string;
314
+ function getPluginType(): string;
315
+ function getPluginPath(): string;
316
+ function quitApplication(): void;
317
+ function getManufacturerName(): string;
318
+ function loadBlob(blobPath: string): Blob;
319
+ function getPluginNRTB(enable: boolean): void;
255
320
  /**
256
- * Method used to retrieve MIDI data from the first instrument script that implements `on midi_drag`
257
- *
258
- * @returns Array of Midi Events
321
+ * Method updates the list of the automatable parameters note it does not work for all DAWS
259
322
  */
260
- getMidiDragData(): Array<{ status: any, data0: any, data1: any, tickAbsolute: any }>;
261
-
323
+ function updateHostDisplay(): void;
262
324
  /**
263
- * Method used to send a `note on` MIDI event to the Gorilla Engine.
264
- *
265
- * @param key The musical key that should be triggered. The key is expected to be between `0` and `127`.
266
- * @param velocity The velocity that the key should be triggerd with. The velocity is expected to be between `0` and `127`.
325
+ * Method returns the Host name of the plugin is running in
326
+ * @returns The name of the host
267
327
  */
268
- noteOn(key: number, velocity: number): void;
269
-
328
+ function getHostDescription(): string;
329
+ function showNativeMessageBox(options: {
330
+ title: string;
331
+ message: string;
332
+ iconType: 'info' | 'question' | 'warning';
333
+ }): void;
334
+ function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): number;
335
+ function checkLicense(): boolean;
336
+ function isTrial(): boolean;
337
+ function trialExpirationTimestamp(): number;
338
+ function initialiseSpliceRTO(pluginName?: string): any;
339
+ function disposeInstrument(instrument: Instrument): void;
340
+ function setActiveInstrument(instrument: Instrument): void;
341
+ function setSessionSaveCallback(callback: any, instance: any): void;
342
+ function setSessionLoadCallback(callback: any, instance: any): void;
343
+ function setParametersDirty(dirty: boolean): void;
344
+ function areParametersDirty(): boolean;
345
+ function shouldWaitForReadySignal(): void;
346
+ function signalReady(): void;
347
+ function setParametersDirtyCallback(callback: any): void;
348
+ function getBuildInformation(): any;
349
+ function openURLinBrowser(path: string): void;
350
+ function getPluginMM(v: boolean): void;
351
+ function getPluginAE(v: boolean): void;
352
+ function getPreviewPlayer(): PreviewPlayer;
353
+ function openFileChooser(config: {
354
+ allowMultiple?: boolean;
355
+ browseDirectory?: boolean;
356
+ saveDialog?: boolean;
357
+ warnOnOverwrite?: boolean;
358
+ hint?: string;
359
+ allowedExtensions?: string;
360
+ defaultLocation?: string;
361
+ }): void;
270
362
  /**
271
- * Method used to send a `note off` MIDI event to the Gorilla Engine.
272
- *
273
- * @param key The musical key that should be untriggered. The key is expected to be between `0` and `127`.
363
+ * Method to convert mp3 files to wave files
364
+ * @param mp3Filepath The path of the mp3 file to convert
365
+ * @param wavFilePath The path where the converted file should be stored
366
+ * @returns `true` if the convertion was successful
274
367
  */
275
- noteOff(ke: number): void;
276
-
368
+ function convertMp3ToWav(mp3Filepath: string, wavFilePath: string): boolean;
277
369
  /**
278
- * Method used to stringify a given `value` at a certain `path` in the Gorilla Engine.
279
- * This is useful to get a label string for parameters in the Gorilla Engine.
280
- * The value is denormalised according to the scale of the parameter found at `path` and
281
- * the parameter’s unit is appended to the string accordingly.
282
- *
283
- * @param path The path at which the value should be stringified.
284
- * @param value A value that should be stringified at the given `path`.
285
- * @returns `false` if the value could not be stringified or the given `value` as a `string`.
370
+ * Method to register opening and closing of the plugin editor
371
+ * @param openCallback The callback when the plugin editor opens
372
+ * @param closeCallback The callback when the plugin editor closes
286
373
  */
287
- valueToStringAtPath(path: string, value: number): boolean | string;
288
- }
289
-
290
- interface Blob {
291
- loadInstrument(name: string): Instrument;
292
- getInstrumentNames(): string[];
293
- }
294
-
295
- interface PreviewPlayer {
296
- on(eventName: string, callback: any): void;
297
- }
298
-
299
- function registerUncaughtUIExceptionCallback(handler: (err: Error) => void): void;
300
- function getResourcePath(): string;
301
- function getPluginName(): string;
302
- function getManufacturerName(): string;
303
- function loadBlob(blobPath: string): Blob;
304
- function disposeInstrument(instrument: Instrument): void;
305
- function setActiveInstrument(instrument: Instrument): void;
306
- function setSessionSaveCallback(callback: any, instance: any): void;
307
- function setSessionLoadCallback(callback: any, instance: any): void;
308
- function getBuildInformation(): any;
309
- function openURLinBrowser(path: string): void;
310
- function getPluginMM(v: boolean): void;
311
- function getPluginAE(v: boolean): void;
312
- function getPreviewPlayer(): PreviewPlayer;
313
- function openFileChooser(config: {
314
- allowMultiple?: boolean,
315
- browseDirectory?: boolean,
316
- saveDialog?: boolean,
317
- warnOnOverwrite?: boolean,
318
- hint?: string,
319
- allowedExtensions?: string,
320
- defaultLocation?: string,
321
- }): void;
322
- let sessionSaveLoadCallbackTimeoutMs: number;
374
+ function registerEditorCallbacks(openCallback?: any, closeCallback?: any): void;
375
+ let sessionSaveLoadCallbackTimeoutMs: number;
323
376
 
324
- namespace UI {
325
- function loadUIfromYAML(ymlPath: string): void;
326
- function getControlById(id: string): Component;
327
- }
377
+ namespace UI {
378
+ function loadUIfromYAML(ymlPath: string): void;
379
+ function getControlById(id: string): Component;
380
+ }
328
381
  }
File without changes
File without changes
@@ -8,24 +8,24 @@ declare namespace GorillaEngine.UI {
8
8
  mouseExitAction: string;
9
9
  clickMask: string;
10
10
  mouseCursorType:
11
- | 'none'
12
- | 'normal'
13
- | 'wait'
14
- | 'IBeam'
15
- | 'cross hair'
16
- | 'copying'
17
- | 'pointing hand'
18
- | 'dragging hand'
19
- | 'left right resize'
20
- | 'up down resize'
21
- | 'up down left right resize'
22
- | 'top edge resize'
23
- | 'bottom edge resize'
24
- | 'left edge resize'
25
- | 'right edge resize'
26
- | 'top left corner resize'
27
- | 'top right corner resize'
28
- | 'bottom left corner resize'
29
- | 'bottom right corner resize';
11
+ | "none"
12
+ | "normal"
13
+ | "wait"
14
+ | "IBeam"
15
+ | "cross hair"
16
+ | "copying"
17
+ | "pointing hand"
18
+ | "dragging hand"
19
+ | "left right resize"
20
+ | "up down resize"
21
+ | "up down left right resize"
22
+ | "top edge resize"
23
+ | "bottom edge resize"
24
+ | "left edge resize"
25
+ | "right edge resize"
26
+ | "top left corner resize"
27
+ | "top right corner resize"
28
+ | "bottom left corner resize"
29
+ | "bottom right corner resize";
30
30
  }
31
31
  }
File without changes