@blibliki/engine 0.1.24 → 0.1.25
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
|
@@ -42,7 +42,8 @@ export class ForwardInput extends IONode implements IForwardInput {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
subModule(voiceNo: number) {
|
|
45
|
-
const
|
|
45
|
+
const adjustedVoiceNo = voiceNo % this.subModules.length;
|
|
46
|
+
const mod = this.subModules.find((m) => m.voiceNo === adjustedVoiceNo);
|
|
46
47
|
if (!mod) throw Error(`Submodule with voiceNo ${voiceNo} not found`);
|
|
47
48
|
|
|
48
49
|
return mod;
|
|
@@ -129,7 +130,8 @@ export class ForwardOutput extends IONode implements IForwardOutput {
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
subModule(voiceNo: number) {
|
|
132
|
-
const
|
|
133
|
+
const adjustedVoiceNo = voiceNo % this.subModules.length;
|
|
134
|
+
const mod = this.subModules.find((m) => m.voiceNo === adjustedVoiceNo);
|
|
133
135
|
if (!mod) throw Error(`Submodule with voiceNo ${voiceNo} not found`);
|
|
134
136
|
|
|
135
137
|
return mod;
|
package/src/modules/Filter.ts
CHANGED
|
@@ -34,7 +34,7 @@ class MonoFilter extends Module<InternalFilter, FilterInterface> {
|
|
|
34
34
|
props: { ...InitialProps, ...props },
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
this._cutoff = new Add(
|
|
37
|
+
this._cutoff = new Add();
|
|
38
38
|
this._cutoff.connect(this.internalModule.frequency);
|
|
39
39
|
|
|
40
40
|
this._amount = new Multiply();
|