From 7a0278a0ce074cfff6190f6cf6d259a8084ed9cf Mon Sep 17 00:00:00 2001 From: spessasus Date: Sun, 6 Oct 2024 22:37:46 +0200 Subject: [PATCH] Refactor generators and modulators to basic_soundfont --- .idea/codeStyles/Project.xml | 17 +- .../soundfont/basic_soundfont/basic_preset.js | 4 +- .../basic_soundfont/basic_soundfont.js | 3 +- .../soundfont/basic_soundfont/generator.js | 212 +++++++++++++ .../soundfont/basic_soundfont/modulator.js | 255 ++++++++++++++++ .../basic_soundfont/write_sf2/igen.js | 3 +- .../basic_soundfont/write_sf2/pgen.js | 3 +- .../soundfont/dls/articulator_converter.js | 6 +- .../soundfont/dls/dls_preset.js | 2 +- src/spessasynth_lib/soundfont/dls/dls_zone.js | 2 +- .../soundfont/dls/read_articulation.js | 4 +- .../soundfont/dls/read_region.js | 2 +- .../soundfont/read_sf2/generators.js | 221 +------------- .../soundfont/read_sf2/modulators.js | 285 +----------------- .../soundfont/read_sf2/soundfont.js | 6 +- .../soundfont/read_sf2/zones.js | 4 +- .../synthetizer/worklet_processor.min.js | 18 +- .../message_protocol/message_sending.js | 3 +- .../worklet_methods/data_entry.js | 2 +- .../worklet_methods/note_off.js | 2 +- .../worklet_system/worklet_methods/note_on.js | 2 +- .../worklet_methods/reset_controllers.js | 2 +- .../worklet_methods/tuning_control.js | 2 +- .../worklet_methods/voice_control.js | 2 +- .../worklet_utilities/lowpass_filter.js | 2 +- .../worklet_utilities/modulation_envelope.js | 4 +- .../worklet_utilities/modulator_curves.js | 2 +- .../worklet_utilities/volume_envelope.js | 3 +- .../worklet_utilities/worklet_modulator.js | 5 +- .../worklet_processor_channel.js | 3 +- .../worklet_utilities/worklet_voice.js | 4 +- .../methods/create_channel_controller.js | 3 +- src/website/minified/demo_main.min.js | 66 ++-- src/website/minified/local_main.min.js | 62 ++-- 34 files changed, 620 insertions(+), 596 deletions(-) create mode 100644 src/spessasynth_lib/soundfont/basic_soundfont/generator.js create mode 100644 src/spessasynth_lib/soundfont/basic_soundfont/modulator.js diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 5ad9a6f0..d2d612d4 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -7,14 +7,13 @@