spessasynth_lib 3.24.0 → 3.24.3

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.
Files changed (72) hide show
  1. package/@types/sequencer/sequencer.d.ts +63 -28
  2. package/@types/sequencer/worklet_sequencer/sequencer_message.d.ts +1 -0
  3. package/@types/synthetizer/audio_effects/effects_config.d.ts +20 -8
  4. package/@types/synthetizer/synthetizer.d.ts +17 -23
  5. package/LICENSE +0 -0
  6. package/README.md +0 -0
  7. package/external_midi/README.md +0 -0
  8. package/external_midi/midi_handler.js +0 -0
  9. package/external_midi/web_midi_link.js +0 -0
  10. package/externals/stbvorbis_sync/@types/stbvorbis_sync.d.ts +0 -0
  11. package/externals/stbvorbis_sync/LICENSE +0 -0
  12. package/externals/stbvorbis_sync/stbvorbis_sync.min.js +0 -0
  13. package/midi_parser/README.md +0 -0
  14. package/midi_parser/midi_message.js +0 -0
  15. package/midi_parser/midi_writer.js +0 -0
  16. package/midi_parser/used_keys_loaded.js +0 -0
  17. package/package.json +1 -1
  18. package/sequencer/README.md +0 -0
  19. package/sequencer/sequencer.js +134 -77
  20. package/sequencer/worklet_sequencer/process_event.js +4 -1
  21. package/sequencer/worklet_sequencer/process_tick.js +4 -4
  22. package/sequencer/worklet_sequencer/sequencer_message.js +2 -1
  23. package/soundfont/README.md +0 -0
  24. package/soundfont/basic_soundfont/basic_instrument.js +0 -0
  25. package/soundfont/basic_soundfont/write_sf2/ibag.js +0 -0
  26. package/soundfont/basic_soundfont/write_sf2/imod.js +0 -0
  27. package/soundfont/basic_soundfont/write_sf2/inst.js +0 -0
  28. package/soundfont/basic_soundfont/write_sf2/pbag.js +0 -0
  29. package/soundfont/basic_soundfont/write_sf2/phdr.js +0 -0
  30. package/soundfont/basic_soundfont/write_sf2/pmod.js +0 -0
  31. package/soundfont/basic_soundfont/write_sf2/sdta.js +0 -0
  32. package/soundfont/basic_soundfont/write_sf2/shdr.js +0 -0
  33. package/soundfont/basic_soundfont/write_sf2/soundfont_trimmer.js +0 -0
  34. package/soundfont/dls/dls_destinations.js +0 -0
  35. package/soundfont/dls/dls_preset.js +0 -0
  36. package/soundfont/dls/dls_sources.js +0 -0
  37. package/soundfont/dls/read_instrument_list.js +0 -0
  38. package/soundfont/load_soundfont.js +0 -0
  39. package/soundfont/read_sf2/generators.js +0 -0
  40. package/soundfont/read_sf2/instruments.js +0 -0
  41. package/soundfont/read_sf2/modulators.js +0 -0
  42. package/soundfont/read_sf2/presets.js +0 -0
  43. package/soundfont/read_sf2/zones.js +0 -0
  44. package/synthetizer/README.md +0 -0
  45. package/synthetizer/audio_effects/effects_config.js +10 -6
  46. package/synthetizer/audio_effects/fancy_chorus.js +9 -16
  47. package/synthetizer/audio_effects/reverb.js +1 -1
  48. package/synthetizer/synthetizer.js +43 -37
  49. package/synthetizer/worklet_processor.min.js +8 -8
  50. package/synthetizer/worklet_system/README.md +0 -0
  51. package/synthetizer/worklet_system/message_protocol/message_sending.js +0 -0
  52. package/synthetizer/worklet_system/snapshot/snapshot.js +1 -1
  53. package/synthetizer/worklet_system/worklet_methods/data_entry.js +0 -0
  54. package/synthetizer/worklet_system/worklet_methods/note_on.js +5 -2
  55. package/synthetizer/worklet_system/worklet_methods/system_exclusive.js +0 -0
  56. package/synthetizer/worklet_system/worklet_methods/tuning_control.js +0 -0
  57. package/synthetizer/worklet_system/worklet_methods/vibrato_control.js +0 -0
  58. package/synthetizer/worklet_system/worklet_methods/worklet_soundfont_manager/sfman_message.js +0 -0
  59. package/synthetizer/worklet_system/worklet_processor.js +0 -0
  60. package/synthetizer/worklet_system/worklet_utilities/controller_tables.js +0 -0
  61. package/synthetizer/worklet_system/worklet_utilities/lfo.js +0 -0
  62. package/synthetizer/worklet_system/worklet_utilities/modulator_curves.js +0 -0
  63. package/synthetizer/worklet_system/worklet_utilities/unit_converter.js +0 -0
  64. package/synthetizer/worklet_system/worklet_utilities/volume_envelope.js +0 -0
  65. package/synthetizer/worklet_system/worklet_utilities/wavetable_oscillator.js +0 -0
  66. package/synthetizer/worklet_url.js +0 -0
  67. package/utils/README.md +0 -0
  68. package/utils/byte_functions/big_endian.js +0 -0
  69. package/utils/byte_functions/little_endian.js +0 -0
  70. package/utils/byte_functions/variable_length_quantity.js +0 -0
  71. package/utils/indexed_array.js +0 -0
  72. package/utils/loggin.js +0 -0
File without changes
@@ -219,7 +219,7 @@ class SynthesizerSnapshot
219
219
 
220
220
  /**
221
221
  * The effects configuration object.
222
- * @type {EffectsConfig}
222
+ * @type {SynthConfig}
223
223
  */
224
224
  effectsConfig;
225
225
 
@@ -4,6 +4,9 @@ import { WorkletModulationEnvelope } from "../worklet_utilities/modulation_envel
4
4
  import { generatorTypes } from "../../../soundfont/basic_soundfont/generator.js";
5
5
  import { MIN_EXCLUSIVE_LENGTH } from "../main_processor.js";
6
6
 
7
+ const EXCLUSIVE_CUTOFF_TIME = -2320;
8
+ const EXCLUSIVE_MOD_CUTOFF_TIME = -1130; // less because filter shenanigans
9
+
7
10
  /**
8
11
  * Append the voices
9
12
  * @param channel {number}
@@ -82,8 +85,8 @@ export function noteOn(channel, midiNote, velocity, enableDebugging = false, sen
82
85
  if (v.generators[generatorTypes.exclusiveClass] === exclusive)
83
86
  {
84
87
  this.releaseVoice(v, MIN_EXCLUSIVE_LENGTH);
85
- v.modulatedGenerators[generatorTypes.releaseVolEnv] = -7000; // make the release nearly instant
86
- v.modulatedGenerators[generatorTypes.releaseModEnv] = -7000;
88
+ v.modulatedGenerators[generatorTypes.releaseVolEnv] = EXCLUSIVE_CUTOFF_TIME; // make the release nearly instant
89
+ v.modulatedGenerators[generatorTypes.releaseModEnv] = EXCLUSIVE_MOD_CUTOFF_TIME;
87
90
  WorkletVolumeEnvelope.recalculate(v);
88
91
  WorkletModulationEnvelope.recalculate(v);
89
92
  }
File without changes
File without changes
package/utils/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/utils/loggin.js CHANGED
File without changes