spessasynth_lib 3.21.2 → 3.21.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spessasynth_lib",
3
- "version": "3.21.2",
3
+ "version": "3.21.4",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "browser": "index.js",
6
6
  "types": "@types/index.d.ts",
@@ -206,7 +206,8 @@ export const defaultModulators = [
206
206
  new Modulator({ srcEnum: 0x020E, dest: generatorTypes.fineTune, amt: 12700, secSrcEnum: 0x0010, transform: 0 }),
207
207
 
208
208
  // pan to uhh, pan
209
- new Modulator({ srcEnum: 0x028A, dest: generatorTypes.pan, amt: 1000, secSrcEnum: 0x0, transform: 0 }),
209
+ // amount is 500 instead of 1000, see #59
210
+ new Modulator({ srcEnum: 0x028A, dest: generatorTypes.pan, amt: 500, secSrcEnum: 0x0, transform: 0 }),
210
211
 
211
212
  // expression to attenuation
212
213
  new Modulator({
@@ -241,7 +242,13 @@ export const defaultModulators = [
241
242
 
242
243
  // cc 92 (tremolo) to modLFO volume
243
244
  new Modulator({
244
- srcEnum: getModSourceEnum(modulatorCurveTypes.linear, 0, 0, 1, midiControllers.tremoloDepth), /*linear forward unipolar cc 92 */
245
+ srcEnum: getModSourceEnum(
246
+ modulatorCurveTypes.linear,
247
+ 0,
248
+ 0,
249
+ 1,
250
+ midiControllers.tremoloDepth
251
+ ), /*linear forward unipolar cc 92 */
245
252
  dest: generatorTypes.modLfoToVolume,
246
253
  amt: 24,
247
254
  secSrcEnum: 0x0, // no controller
@@ -250,7 +257,13 @@ export const defaultModulators = [
250
257
 
251
258
  // cc 72 (release time) to volEnv release
252
259
  new Modulator({
253
- srcEnum: getModSourceEnum(modulatorCurveTypes.linear, 1, 0, 1, midiControllers.releaseTime), // linear forward bipolar cc 72
260
+ srcEnum: getModSourceEnum(
261
+ modulatorCurveTypes.linear,
262
+ 1,
263
+ 0,
264
+ 1,
265
+ midiControllers.releaseTime
266
+ ), // linear forward bipolar cc 72
254
267
  dest: generatorTypes.releaseVolEnv,
255
268
  amt: 1200,
256
269
  secSrcEnum: 0x0, // no controller
@@ -259,9 +272,15 @@ export const defaultModulators = [
259
272
 
260
273
  // cc 74 (brightness) to filterFc
261
274
  new Modulator({
262
- srcEnum: getModSourceEnum(modulatorCurveTypes.linear, 1, 0, 1, midiControllers.brightness), // linear forwards bipolar cc 74
275
+ srcEnum: getModSourceEnum(
276
+ modulatorCurveTypes.linear,
277
+ 1,
278
+ 0,
279
+ 1,
280
+ midiControllers.brightness
281
+ ), // linear forwards bipolar cc 74
263
282
  dest: generatorTypes.initialFilterFc,
264
- amt: 4000,
283
+ amt: 6000,
265
284
  secSrcEnum: 0x0, // no controller
266
285
  transform: 0
267
286
  }),