spessasynth_core 3.26.19 → 3.26.20
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/README.md
CHANGED
|
@@ -79,7 +79,6 @@ npm install --save spessasynth_core
|
|
|
79
79
|
- **Smart preloading:** Only preloads the samples used in the MIDI file for smooth playback *(down to key and velocity!)*
|
|
80
80
|
- **Lyrics support:** Add karaoke to your program!
|
|
81
81
|
- **Raw lyrics available:** Decode in any encoding! *(Kanji? No problem!)*
|
|
82
|
-
- **Runs in Audio Thread as well:** Never blocks the main thread
|
|
83
82
|
- **Loop points support:** Ensures seamless loops
|
|
84
83
|
|
|
85
84
|
### Read and Write SoundFont and MIDI Files with Ease
|
package/package.json
CHANGED
|
@@ -150,6 +150,7 @@ export class Modulator
|
|
|
150
150
|
* @param destination {generatorTypes}
|
|
151
151
|
* @param amount {number}
|
|
152
152
|
* @param transformType {0|2}
|
|
153
|
+
* @param isEffectModulator {boolean}
|
|
153
154
|
*/
|
|
154
155
|
constructor(sourceIndex,
|
|
155
156
|
sourceCurveType,
|
|
@@ -163,7 +164,8 @@ export class Modulator
|
|
|
163
164
|
secSrcDirection,
|
|
164
165
|
destination,
|
|
165
166
|
amount,
|
|
166
|
-
transformType
|
|
167
|
+
transformType,
|
|
168
|
+
isEffectModulator = false)
|
|
167
169
|
{
|
|
168
170
|
this.sourcePolarity = sourcePolarity;
|
|
169
171
|
this.sourceDirection = sourceDirection;
|
|
@@ -180,6 +182,7 @@ export class Modulator
|
|
|
180
182
|
this.modulatorDestination = destination;
|
|
181
183
|
this.transformAmount = amount;
|
|
182
184
|
this.transformType = transformType;
|
|
185
|
+
this.isEffectModulator = isEffectModulator;
|
|
183
186
|
|
|
184
187
|
|
|
185
188
|
if (this.modulatorDestination > MAX_GENERATOR)
|
|
@@ -208,7 +211,8 @@ export class Modulator
|
|
|
208
211
|
modulator.secSrcDirection,
|
|
209
212
|
modulator.modulatorDestination,
|
|
210
213
|
modulator.transformAmount,
|
|
211
|
-
modulator.transformType
|
|
214
|
+
modulator.transformType,
|
|
215
|
+
modulator.isEffectModulator
|
|
212
216
|
);
|
|
213
217
|
}
|
|
214
218
|
|
|
@@ -322,7 +326,8 @@ export class Modulator
|
|
|
322
326
|
this.secSrcDirection,
|
|
323
327
|
this.modulatorDestination,
|
|
324
328
|
this.transformAmount + modulator.transformAmount,
|
|
325
|
-
this.transformType
|
|
329
|
+
this.transformType,
|
|
330
|
+
this.isEffectModulator
|
|
326
331
|
);
|
|
327
332
|
}
|
|
328
333
|
}
|
|
@@ -7,7 +7,8 @@ import { generatorTypes } from "../../../soundfont/basic_soundfont/generator_typ
|
|
|
7
7
|
|
|
8
8
|
export const PAN_SMOOTHING_FACTOR = 0.05;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// optimized for spessasynth_lib's effects
|
|
11
|
+
export const REVERB_DIVIDER = 3070;
|
|
11
12
|
export const CHORUS_DIVIDER = 2000;
|
|
12
13
|
const HALF_PI = Math.PI / 2;
|
|
13
14
|
|