spessasynth_core 4.4.12 → 4.4.14
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.
- package/dist/index.d.ts +32 -12
- package/dist/index.js +537 -117
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -107,6 +107,15 @@ export declare class IndexedByteArray extends Uint8Array {
|
|
|
107
107
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
108
108
|
*/
|
|
109
109
|
slice(start?: number, end?: number): IndexedByteArray;
|
|
110
|
+
/**
|
|
111
|
+
* Gets a new IndexedByteArray view of the ArrayBuffer store for this array, referencing the elements
|
|
112
|
+
* at begin, inclusive, up to end, exclusive.
|
|
113
|
+
* @param begin The index of the beginning of the array.
|
|
114
|
+
* @param end The index of the end of the array.
|
|
115
|
+
* @privateRemarks
|
|
116
|
+
* JSDoc copied from es5 type declarations
|
|
117
|
+
*/
|
|
118
|
+
subarray(begin?: number, end?: number): IndexedByteArray;
|
|
110
119
|
}
|
|
111
120
|
/**
|
|
112
121
|
* Reads number as Big endian.
|
|
@@ -1537,15 +1546,10 @@ export declare class CustomCurve extends ModulatorCurve {
|
|
|
1537
1546
|
* > Duplicate entries are allowed since one element can use the same curve multiple times.
|
|
1538
1547
|
*/
|
|
1539
1548
|
readonly linkedTo: CustomCurveUser[];
|
|
1540
|
-
private
|
|
1541
|
-
private px;
|
|
1542
|
-
private py;
|
|
1543
|
-
private readonly start;
|
|
1544
|
-
private readonly gridUnipolar;
|
|
1545
|
-
private readonly gridBipolar;
|
|
1549
|
+
private data;
|
|
1546
1550
|
/**
|
|
1547
1551
|
* Creates a new custom curve.
|
|
1548
|
-
* @param points The points, ordered by `x`. At least two are needed.
|
|
1552
|
+
* @param points The points, ordered by `x`. At least two and at most 65,535 are needed.
|
|
1549
1553
|
* @param name The name of the curve.
|
|
1550
1554
|
*/
|
|
1551
1555
|
constructor(points: readonly CustomCurvePoint[], name?: string);
|
|
@@ -1557,10 +1561,18 @@ export declare class CustomCurve extends ModulatorCurve {
|
|
|
1557
1561
|
* The curve points, ordered by `x`. They are frozen, use {@link setPoints} to change them.
|
|
1558
1562
|
*/
|
|
1559
1563
|
get points(): readonly Readonly<CustomCurvePoint>[];
|
|
1560
|
-
|
|
1564
|
+
/**
|
|
1565
|
+
* The number of points in the curve.
|
|
1566
|
+
* @privateRemarks
|
|
1567
|
+
* Unlike `points.length`, it does not build the points list.
|
|
1568
|
+
*/
|
|
1569
|
+
get pointCount(): number;
|
|
1570
|
+
private static fromPacked;
|
|
1571
|
+
private static pack;
|
|
1572
|
+
private static finishPacked;
|
|
1561
1573
|
/**
|
|
1562
1574
|
* Replaces the points of the curve. Every modulator using this curve follows the change.
|
|
1563
|
-
* @param points The new points, ordered by `x`. At least two are needed.
|
|
1575
|
+
* @param points The new points, ordered by `x`. At least two and at most 65,535 are needed.
|
|
1564
1576
|
* @throws Error if the points are invalid. The curve is left unchanged then.
|
|
1565
1577
|
*/
|
|
1566
1578
|
setPoints(points: readonly CustomCurvePoint[]): void;
|
|
@@ -1571,7 +1583,6 @@ export declare class CustomCurve extends ModulatorCurve {
|
|
|
1571
1583
|
isIdentical(other: ModulatorCurve): boolean;
|
|
1572
1584
|
toString(): string;
|
|
1573
1585
|
protected evaluate(value: number, isBipolar: boolean): number;
|
|
1574
|
-
private precompute;
|
|
1575
1586
|
}
|
|
1576
1587
|
/**
|
|
1577
1588
|
* This module represents a single sound bank as a [SpessaSynth SFe](../../../docs/extra/sfe-format.md) bank.
|
|
@@ -2980,10 +2991,10 @@ export interface SynthesizerEffect<Snapshot> {
|
|
|
2980
2991
|
*/
|
|
2981
2992
|
export interface GSReverbParameter extends GSSystemEffectParameter {
|
|
2982
2993
|
/**
|
|
2983
|
-
* `0-
|
|
2994
|
+
* `0-8`
|
|
2984
2995
|
*
|
|
2985
2996
|
* This parameter selects the type of reverb. 0–5 are reverb effects, and 6 and 7 are delay
|
|
2986
|
-
* effects.
|
|
2997
|
+
* effects. 8 is a SpessaSynth extension, the pre v4.4.11 GS Reverb.
|
|
2987
2998
|
*
|
|
2988
2999
|
* > **Note**
|
|
2989
3000
|
* >
|
|
@@ -8595,6 +8606,7 @@ export declare class SpessaSynthSequencer {
|
|
|
8595
8606
|
* The characters differ in the delays, the taps and the damping.
|
|
8596
8607
|
* The two delay characters are a single delay line with a feedback. The DLL's 1/4 input gain and four equal 1/4
|
|
8597
8608
|
* taps cancel there, so neither appears.
|
|
8609
|
+
* Character 8 is the pre v4.4.11 GS Reverb (a Dattorro reverb tuned as Hall 2).
|
|
8598
8610
|
*
|
|
8599
8611
|
* The delays are the 32 kHz sample counts of the Sound Canvas, rounded to whole samples at the host rate.
|
|
8600
8612
|
*
|
|
@@ -8624,6 +8636,7 @@ export declare class DefaultGSReverb implements GSReverbProcessor {
|
|
|
8624
8636
|
* @private
|
|
8625
8637
|
*/
|
|
8626
8638
|
private readonly delayLine;
|
|
8639
|
+
private readonly dattorro;
|
|
8627
8640
|
private inputGain;
|
|
8628
8641
|
/**
|
|
8629
8642
|
* The gain per pass through a tank, before the damping.
|
|
@@ -9034,6 +9047,12 @@ export declare class SoundBankCloner {
|
|
|
9034
9047
|
private readonly sampleClones;
|
|
9035
9048
|
private readonly curveClones;
|
|
9036
9049
|
private readonly instrumentClones;
|
|
9050
|
+
/**
|
|
9051
|
+
* The names in the bank and the ones this session gave out, by element kind, built on first use.
|
|
9052
|
+
* A name changed or added in the bank from outside between two clone calls of one session is not seen,
|
|
9053
|
+
* The worst case is a repeated name, which banks allow
|
|
9054
|
+
*/
|
|
9055
|
+
private readonly takenNames;
|
|
9037
9056
|
/**
|
|
9038
9057
|
* Creates a new clone session.
|
|
9039
9058
|
* @param bank The bank to clone elements into.
|
|
@@ -9089,6 +9108,7 @@ export declare class SoundBankCloner {
|
|
|
9089
9108
|
private copyCurve;
|
|
9090
9109
|
/**
|
|
9091
9110
|
* Finds the element to use instead of a copy, if the options allow one.
|
|
9111
|
+
* The lists are searched in order, without joining them, as this runs for every cloned element.
|
|
9092
9112
|
*/
|
|
9093
9113
|
private findReused;
|
|
9094
9114
|
private getFreeName;
|