@rnbo/js 1.3.5 → 1.4.1

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.
@@ -19,7 +19,7 @@ declare const BangParameter_base: ObjectConstructor & (new (...args: any[]) => C
19
19
  * */
20
20
  export declare abstract class BaseDevice {
21
21
  protected _hasPatcher: boolean;
22
- protected _sourceType: IPatcherSrc["type"];
22
+ protected _sourceType: IPatcherSrc_2["type"];
23
23
  /* Excluded from this release type: _timeConverter */
24
24
  /* Excluded from this release type: _parameterInterface */
25
25
  /* Excluded from this release type: _engine */
@@ -94,7 +94,7 @@ export declare abstract class BaseDevice {
94
94
  protected _onParameterChangeEvent: (param: Parameter) => void;
95
95
  protected _prepareToProcess(sampleRate: number, samplesPerBlock: number, force: boolean): void;
96
96
  protected _ensureIsValid(): void;
97
- protected _extractPatcherCode(src: IPatcherSrc): string;
97
+ protected _extractPatcherCode(src: IPatcherSrc_2): string;
98
98
  /**
99
99
  * The {@link https://developer.mozilla.org/en-US/docs/Web/API/AudioContext | AudioContext} used for creating the Device. For more information, visit the guide on {@link https://rnbo.cycling74.com/learn/working-with-web-audio-contexts | Working with Web Audio Contexts}
100
100
  */
@@ -151,7 +151,7 @@ export declare abstract class BaseDevice {
151
151
  */
152
152
  get parameterNotificationSetting(): ParameterNotificationSetting;
153
153
  set parameterNotificationSetting(level: ParameterNotificationSetting);
154
- get sourceType(): IPatcherSrc["type"];
154
+ get sourceType(): IPatcherSrc_2["type"];
155
155
  /**
156
156
  * The {@link DeviceType} of the Device. An invalid Device will return {@link DeviceType.Invalid}.
157
157
  */
@@ -836,13 +836,14 @@ export declare interface IParameterDescription {
836
836
  enumValues: string[];
837
837
  displayName: string;
838
838
  unit: string;
839
- initialized: boolean;
839
+ initialized?: boolean;
840
840
  debug: boolean;
841
- saveable: boolean;
842
- transmittable: boolean;
841
+ saveable?: boolean;
842
+ transmittable?: boolean;
843
843
  visible: boolean;
844
- signalIndex: number;
844
+ signalIndex: number | null;
845
845
  ioType: string;
846
+ meta?: any;
846
847
  }
847
848
 
848
849
  declare interface IParameterInfo {
@@ -915,12 +916,20 @@ export declare interface IPatcherDescription {
915
916
  /** a list of outports */
916
917
  outports: MessagePort_2[];
917
918
  /** Patcher Options */
918
- options: IPatcherOptions;
919
+ options?: IPatcherOptions;
919
920
  meta: {
920
921
  /** Version of Max the Patcher was exported with */
921
922
  maxversion?: string;
922
923
  /** Version of RNBO the Patcher was exported with */
923
924
  rnboversion: string;
925
+ /** Name of the RNBO object */
926
+ name?: string;
927
+ /** File name of the Max patcher containing the RNBO object */
928
+ filename?: string;
929
+ /** platform architecture of the Max application */
930
+ architecure?: string;
931
+ /** C++ classname of the rnbo export */
932
+ rnboobjname?: string;
924
933
  };
925
934
  /**
926
935
  * @deprecated since version 0.18.0, see meta.rnboversion
@@ -939,13 +948,19 @@ export declare interface IPatcherOptions {
939
948
 
940
949
  /* Excluded from this release type: IPatcherParamConversion */
941
950
 
951
+ /**
952
+ * Public definition of IPatcherSrc using simple strings
953
+ * @public
954
+ */
942
955
  export declare interface IPatcherSrc {
943
956
  code: string;
944
- compression?: "zlib";
945
- encoding?: "base64" | "utf8" | "utf-8";
946
- type: "wasm" | "js";
957
+ compression?: string;
958
+ encoding?: string;
959
+ type: string;
947
960
  }
948
961
 
962
+ /* Excluded from this release type: IPatcherSrc_2 */
963
+
949
964
  /**
950
965
  * Collection of parameter values as a RNBO Patcher Preset, mapping:
951
966
  *
@@ -1160,10 +1175,10 @@ export declare class NumberParameter extends NumberParameter_base {
1160
1175
  declare const NumberParameter_base: ObjectConstructor & (new (...args: any[]) => CommonParameterMixin);
1161
1176
 
1162
1177
  /**
1163
- * Union Type of all available Parameter Classes.
1178
+ * Union Type of all publically available Parameter Classes.
1164
1179
  * @public
1165
1180
  */
1166
- export declare type Parameter = BangParameter | EnumParameter | NumberParameter;
1181
+ export declare type Parameter = EnumParameter | NumberParameter;
1167
1182
 
1168
1183
  /**
1169
1184
  * Type of the ID of a parameter
@@ -1179,6 +1194,8 @@ declare type ParameterInterfaceOptions = {
1179
1194
  notificationSetting: ParameterNotificationSetting;
1180
1195
  };
1181
1196
 
1197
+ /* Excluded from this release type: ParameterInternal */
1198
+
1182
1199
  /**
1183
1200
  * Enum defining the available options for the parameter change event setting of a {@link BaseDevice.parameterChangeEvent | Device}.
1184
1201
  * @public