@types/gorilla-engine 1.1.9 → 1.1.11
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.
- gorilla-engine/README.md +2 -3
- gorilla-engine/index.d.ts +58 -11
- gorilla-engine/package.json +15 -15
gorilla-engine/README.md
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
> `npm install --save @types/gorilla-engine`
|
|
3
3
|
|
|
4
4
|
# Summary
|
|
5
|
-
This package contains type definitions for
|
|
5
|
+
This package contains type definitions for gorilla-engine (https://gorilla-engine.com).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gorilla-engine.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 23 Oct 2023 17:15:17 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `GorillaEngine`
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [Julian Woodward](https://github.com/jhwoodward), [UJAM-JH](https://github.com/UJAM-JH), [rip-off-hb](https://github.com/rip-off-hb), [pkellett](https://github.com/pkellett), [vpietropaolo-ujam](https://github.com/vpietropaolo-ujam), and [agachuma](https://github.com/agachuma).
|
gorilla-engine/index.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
// Type definitions for Gorilla Engine 1.1
|
|
2
|
-
// Project: https://gorilla-engine.com
|
|
3
|
-
// Definitions by: Julian Woodward <https://github.com/jhwoodward>
|
|
4
|
-
// UJAM-JH <https://github.com/UJAM-JH>
|
|
5
|
-
// rip-off-hb <https://github.com/rip-off-hb>
|
|
6
|
-
// pkellett <https://github.com/pkellett>
|
|
7
|
-
// vpietropaolo-ujam <https://github.com/vpietropaolo-ujam>
|
|
8
|
-
// agachuma <https://github.com/agachuma>
|
|
9
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
10
|
-
|
|
11
1
|
/// <reference path = "interfaces/Background.d.ts" />
|
|
12
2
|
/// <reference path = "interfaces/Bounds.d.ts" />
|
|
13
3
|
/// <reference path = "interfaces/Clickable.d.ts" />
|
|
@@ -107,6 +97,18 @@ declare namespace GorillaEngine {
|
|
|
107
97
|
readonly persistence: InstrumentPropertyPersistence;
|
|
108
98
|
}
|
|
109
99
|
|
|
100
|
+
interface ccState {
|
|
101
|
+
cc: number;
|
|
102
|
+
path: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface midiData {
|
|
106
|
+
status: string;
|
|
107
|
+
data0: string;
|
|
108
|
+
data1: string;
|
|
109
|
+
tickAbsolute: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
110
112
|
/**
|
|
111
113
|
* Instrument
|
|
112
114
|
*/
|
|
@@ -275,7 +277,7 @@ declare namespace GorillaEngine {
|
|
|
275
277
|
*
|
|
276
278
|
* @returns Array of Midi Events
|
|
277
279
|
*/
|
|
278
|
-
getMidiDragData():
|
|
280
|
+
getMidiDragData(): midiData[];
|
|
279
281
|
|
|
280
282
|
/**
|
|
281
283
|
* Method used to send a `note on` MIDI event to the Gorilla Engine.
|
|
@@ -303,6 +305,49 @@ declare namespace GorillaEngine {
|
|
|
303
305
|
* @returns `false` if the value could not be stringified or the given `value` as a `string`.
|
|
304
306
|
*/
|
|
305
307
|
valueToStringAtPath(path: string, value: number): boolean | string;
|
|
308
|
+
|
|
309
|
+
getMIDICCstate(): ccState[];
|
|
310
|
+
|
|
311
|
+
setMIDICCstate(ccMidiSatate: ccState[]): void;
|
|
312
|
+
|
|
313
|
+
renderAudioFile(
|
|
314
|
+
renderFilePath: string,
|
|
315
|
+
key: number,
|
|
316
|
+
velocity: number,
|
|
317
|
+
renderUntilSilence: boolean,
|
|
318
|
+
minFileLength: number,
|
|
319
|
+
): void;
|
|
320
|
+
|
|
321
|
+
renderAudioFileFromMidi(
|
|
322
|
+
renderFilePath: string,
|
|
323
|
+
midiData: midiData[],
|
|
324
|
+
renderUntilSilence: boolean,
|
|
325
|
+
minFileLength: number,
|
|
326
|
+
): void;
|
|
327
|
+
|
|
328
|
+
setNormalizedDoubleAtPath(path: string, value: number): void;
|
|
329
|
+
|
|
330
|
+
getNormalizedDoubleAtPath(path: string): number;
|
|
331
|
+
|
|
332
|
+
getLoadingStatus(): boolean;
|
|
333
|
+
|
|
334
|
+
getLoadingProgressPercent(): number;
|
|
335
|
+
|
|
336
|
+
startRecallingParameterState(): void;
|
|
337
|
+
|
|
338
|
+
endRecallingParameterState(): boolean;
|
|
339
|
+
|
|
340
|
+
addParameter(persistence: number): InstrumentProperty;
|
|
341
|
+
|
|
342
|
+
getWaveformOverview(
|
|
343
|
+
numPoints: number,
|
|
344
|
+
zoneID: number,
|
|
345
|
+
start: number,
|
|
346
|
+
end: number,
|
|
347
|
+
vertZoom: number,
|
|
348
|
+
): Uint8Array;
|
|
349
|
+
|
|
350
|
+
getStringAtPath(path: string): string;
|
|
306
351
|
}
|
|
307
352
|
|
|
308
353
|
interface Blob {
|
|
@@ -339,6 +384,7 @@ declare namespace GorillaEngine {
|
|
|
339
384
|
}): void;
|
|
340
385
|
function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): number;
|
|
341
386
|
function checkLicense(): boolean;
|
|
387
|
+
function checkBeatportRTO(): string;
|
|
342
388
|
function isTrial(): boolean;
|
|
343
389
|
function trialExpirationTimestamp(): number;
|
|
344
390
|
function initialiseSpliceRTO(pluginName?: string): any;
|
|
@@ -357,6 +403,7 @@ declare namespace GorillaEngine {
|
|
|
357
403
|
function getPluginMM(v: boolean): void;
|
|
358
404
|
function getPluginAE(v: boolean): void;
|
|
359
405
|
function getPreviewPlayer(): PreviewPlayer;
|
|
406
|
+
function getSampleMetadata(filePath: string, overviewSize: number): string;
|
|
360
407
|
function openFileChooser(config: {
|
|
361
408
|
allowMultiple?: boolean;
|
|
362
409
|
browseDirectory?: boolean;
|
gorilla-engine/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/gorilla-engine",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "TypeScript definitions for
|
|
3
|
+
"version": "1.1.11",
|
|
4
|
+
"description": "TypeScript definitions for gorilla-engine",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gorilla-engine",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "Julian Woodward",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "jhwoodward",
|
|
11
|
+
"url": "https://github.com/jhwoodward"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "UJAM-JH",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"githubUsername": "UJAM-JH",
|
|
16
|
+
"url": "https://github.com/UJAM-JH"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "rip-off-hb",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"githubUsername": "rip-off-hb",
|
|
21
|
+
"url": "https://github.com/rip-off-hb"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "pkellett",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"githubUsername": "pkellett",
|
|
26
|
+
"url": "https://github.com/pkellett"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "vpietropaolo-ujam",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"githubUsername": "vpietropaolo-ujam",
|
|
31
|
+
"url": "https://github.com/vpietropaolo-ujam"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "agachuma",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"githubUsername": "agachuma",
|
|
36
|
+
"url": "https://github.com/agachuma"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"main": "",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "bdad9c3b60080cd1a41edc5043e8bda64cae94f5f22854aa8dce9c8a44aadc04",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|