@types/gorilla-engine 1.1.10 → 1.1.12

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 CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for gorilla-engine (https://gorilla-engin
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: Wed, 18 Oct 2023 01:17:35 GMT
11
+ * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
gorilla-engine/index.d.ts CHANGED
@@ -97,6 +97,18 @@ declare namespace GorillaEngine {
97
97
  readonly persistence: InstrumentPropertyPersistence;
98
98
  }
99
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
+
100
112
  /**
101
113
  * Instrument
102
114
  */
@@ -265,7 +277,7 @@ declare namespace GorillaEngine {
265
277
  *
266
278
  * @returns Array of Midi Events
267
279
  */
268
- getMidiDragData(): Array<{ status: any; data0: any; data1: any; tickAbsolute: any }>;
280
+ getMidiDragData(): midiData[];
269
281
 
270
282
  /**
271
283
  * Method used to send a `note on` MIDI event to the Gorilla Engine.
@@ -293,6 +305,49 @@ declare namespace GorillaEngine {
293
305
  * @returns `false` if the value could not be stringified or the given `value` as a `string`.
294
306
  */
295
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;
296
351
  }
297
352
 
298
353
  interface Blob {
@@ -329,6 +384,7 @@ declare namespace GorillaEngine {
329
384
  }): void;
330
385
  function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): number;
331
386
  function checkLicense(): boolean;
387
+ function checkBeatportRTO(): string;
332
388
  function isTrial(): boolean;
333
389
  function trialExpirationTimestamp(): number;
334
390
  function initialiseSpliceRTO(pluginName?: string): any;
@@ -347,6 +403,7 @@ declare namespace GorillaEngine {
347
403
  function getPluginMM(v: boolean): void;
348
404
  function getPluginAE(v: boolean): void;
349
405
  function getPreviewPlayer(): PreviewPlayer;
406
+ function getSampleMetadata(filePath: string, overviewSize: number): string;
350
407
  function openFileChooser(config: {
351
408
  allowMultiple?: boolean;
352
409
  browseDirectory?: boolean;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/gorilla-engine",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "TypeScript definitions for gorilla-engine",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gorilla-engine",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "698fbf5157b63dbd09ce47c6d9e60ac58ace2e6c350cdb749c962d7b2922086b",
48
+ "typesPublisherContentHash": "65ea9cc7113a9006efd76da64cd1e4f68ccc88f3837d8c9ee9008e2e524804b6",
49
49
  "typeScriptVersion": "4.5"
50
50
  }