xsound 4.3.21 → 4.3.22

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.
@@ -1,12 +1,11 @@
1
1
  import { Effector } from './Effector';
2
- export type OverDriveType = 'natural' | 'warm' | 'crunch';
2
+ export type OverDriveType = 'overdrive' | 'natural' | 'warm' | 'crunch';
3
3
  export type OverDriveCurve = Float32Array<ArrayBuffer> | null;
4
4
  export type OverDriveParams = {
5
5
  state?: boolean;
6
6
  type?: OverDriveType;
7
7
  drive?: number;
8
8
  level?: number;
9
- numberOfSamples?: number;
10
9
  oversample?: OverSampleType;
11
10
  };
12
11
  /**
@@ -15,37 +14,32 @@ export type OverDriveParams = {
15
14
  export declare class OverDrive extends Effector {
16
15
  private type;
17
16
  private shaper;
18
- private inputShaper;
19
- private outputShaper;
20
- private inputGain;
21
- private outputGain;
22
- private driveInput;
23
17
  private level;
24
18
  private drive;
25
- private numberOfSamples;
19
+ private lowCut;
20
+ private highCut;
21
+ private driveValue;
26
22
  /**
27
23
  * This static method creates instance of `Float32Array` for `WaveShaperNode`.
24
+ * @param {number} drive This argument is drive level.
28
25
  * @param {number} numberOfSamples This argument is curve size. The default value is `1024`.
26
+ * @param {boolean} asymmetrical This argument is asymmetrical clipping if this value is `true`. The default value is `false`
29
27
  * @return {Float32Array|null} Return value is `WaveShaperNode`'s 'curve'.
30
28
  */
31
- static createNaturalOverdriveCurve(numberOfSamples?: number): OverDriveCurve;
29
+ static createOverdriveCurve(drive: number, numberOfSamples?: number, asymmetrical?: boolean): OverDriveCurve;
32
30
  /**
33
31
  * This static method creates instance of `Float32Array` for `WaveShaperNode`.
34
- * @param {number} drive This argument is drive level.
35
- * @param {number} numberOfSamples This argument is curve size. The default value is `1024`.
36
- * @param {boolean} asymmetrical This argument is asymmetrical clipping if this value is `true`. The default value is `false`
32
+ * @param {number} amount This argument is curve shape. The default value is `100`.
33
+ * @param {number} numberOfSamples This argument is curve size. The default value is `48000`.
34
+ * @param {boolean} asymmetrical This argument is asymmetrical clipping if this value is `true`. The default value is `true`.
37
35
  * @return {Float32Array|null} Return value is `WaveShaperNode`'s 'curve'.
38
36
  */
39
- static createOverdriveCurve(drive: number, numberOfSamples?: number, asymmetrical?: boolean): OverDriveCurve;
37
+ static createOverDriveCurve(amount?: number, numberOfSamples?: number, asymmetrical?: boolean): OverDriveCurve;
40
38
  /**
41
39
  * @param {AudioContext} context This argument is in order to use Web Audio API.
42
40
  */
43
41
  constructor(context: AudioContext);
44
42
  /** @override */
45
- start(_startTime?: number): void;
46
- /** @override */
47
- stop(_stopTime?: number, _releaseTime?: number): void;
48
- /** @override */
49
43
  connect(): GainNode;
50
44
  /**
51
45
  * This method gets or sets parameters for overdrive effector.
@@ -58,7 +52,6 @@ export declare class OverDrive extends Effector {
58
52
  param(params: 'type'): OverDriveType;
59
53
  param(params: 'drive'): number;
60
54
  param(params: 'level'): number;
61
- param(params: 'numberOfSamples'): number;
62
55
  param(params: 'oversample'): OverSampleType;
63
56
  param(params: OverDriveParams): OverDrive;
64
57
  /** @override */
@@ -1 +1 @@
1
- {"version":3,"file":"OverDrive.d.ts","sourceRoot":"","sources":["../../../../../src/SoundModule/Effectors/OverDrive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,cAAc,CAAA;CAC5B,CAAC;AAEF;;GA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