spessasynth_lib 3.24.24 → 3.24.26
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/midi_parser/midi_message.js +4 -4
- package/package.json +1 -1
- package/sequencer/worklet_sequencer/play.js +26 -1
- package/synthetizer/worklet_processor.min.js +11 -11
- package/synthetizer/worklet_system/message_protocol/handle_message.js +3 -2
- package/synthetizer/worklet_system/snapshot/channel_snapshot.js +0 -7
- package/synthetizer/worklet_system/worklet_methods/controller_control/controller_change.js +14 -7
- package/synthetizer/worklet_system/worklet_methods/controller_control/reset_controllers.js +67 -21
- package/synthetizer/worklet_system/worklet_methods/data_entry/data_entry_coarse.js +105 -71
- package/synthetizer/worklet_system/worklet_methods/data_entry/data_entry_fine.js +4 -2
- package/synthetizer/worklet_system/worklet_methods/render_voice.js +1 -2
- package/synthetizer/worklet_system/worklet_methods/tuning_control/set_tuning.js +5 -2
- package/synthetizer/worklet_system/worklet_utilities/controller_tables.js +9 -4
- package/synthetizer/worklet_system/worklet_utilities/worklet_processor_channel.js +11 -33
- package/synthetizer/worklet_system/worklet_methods/tuning_control/set_tuning_semitones.js +0 -19
|
@@ -208,10 +208,10 @@ export const midiControllers = {
|
|
|
208
208
|
releaseTime: 72,
|
|
209
209
|
attackTime: 73,
|
|
210
210
|
brightness: 74,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
decayTime: 75,
|
|
212
|
+
vibratoRate: 76,
|
|
213
|
+
vibratoDepth: 77,
|
|
214
|
+
vibratoDelay: 78,
|
|
215
215
|
soundController10: 79,
|
|
216
216
|
generalPurposeController5: 80,
|
|
217
217
|
generalPurposeController6: 81,
|
package/package.json
CHANGED
|
@@ -2,6 +2,9 @@ import { getEvent, messageTypes, midiControllers } from "../../midi_parser/midi_
|
|
|
2
2
|
import { WorkletSequencerReturnMessageType } from "./sequencer_message.js";
|
|
3
3
|
import { MIDIticksToSeconds } from "../../midi_parser/basic_midi.js";
|
|
4
4
|
import { resetArray } from "../../synthetizer/worklet_system/worklet_utilities/controller_tables.js";
|
|
5
|
+
import {
|
|
6
|
+
nonResetableCCs
|
|
7
|
+
} from "../../synthetizer/worklet_system/worklet_methods/controller_control/reset_controllers.js";
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
// an array with preset default values
|
|
@@ -69,6 +72,28 @@ export function _playTo(time, ticks = undefined)
|
|
|
69
72
|
savedControllers.push(Array.from(defaultControllerArray));
|
|
70
73
|
}
|
|
71
74
|
|
|
75
|
+
/**
|
|
76
|
+
* RP-15 compliant reset
|
|
77
|
+
* https://amei.or.jp/midistandardcommittee/Recommended_Practice/e/rp15.pdf
|
|
78
|
+
* @param chan {number}
|
|
79
|
+
*/
|
|
80
|
+
function resetAllControlllers(chan)
|
|
81
|
+
{
|
|
82
|
+
// reset pitch bend
|
|
83
|
+
pitchBends[chan] = 8192;
|
|
84
|
+
if (savedControllers?.[chan] === undefined)
|
|
85
|
+
{
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
for (let i = 0; i < defaultControllerArray.length; i++)
|
|
89
|
+
{
|
|
90
|
+
if (!nonResetableCCs.has(i))
|
|
91
|
+
{
|
|
92
|
+
savedControllers[chan][i] = defaultControllerArray[i];
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
72
97
|
while (true)
|
|
73
98
|
{
|
|
74
99
|
// find the next event
|
|
@@ -133,7 +158,7 @@ export function _playTo(time, ticks = undefined)
|
|
|
133
158
|
}
|
|
134
159
|
else if (controllerNumber === midiControllers.resetAllControllers)
|
|
135
160
|
{
|
|
136
|
-
savedControllers[channel]
|
|
161
|
+
resetAllControlllers(savedControllers[channel]);
|
|
137
162
|
}
|
|
138
163
|
if (this.sendMIDIMessages)
|
|
139
164
|
{
|