spessasynth_core 4.0.18 → 4.0.19
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/dist/index.d.ts +6 -4
- package/dist/index.js +16 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1603,26 +1603,28 @@ declare class ProtectedSynthValues {
|
|
|
1603
1603
|
midiVolume: number;
|
|
1604
1604
|
/**
|
|
1605
1605
|
* Set via system exclusive.
|
|
1606
|
+
* Note: Remember to reset in system reset!
|
|
1606
1607
|
*/
|
|
1607
1608
|
reverbSend: number;
|
|
1608
1609
|
/**
|
|
1609
1610
|
* Set via system exclusive.
|
|
1611
|
+
* Note: Remember to reset in system reset!
|
|
1610
1612
|
*/
|
|
1611
1613
|
chorusSend: number;
|
|
1612
1614
|
/**
|
|
1613
|
-
* The pan of the left channel
|
|
1615
|
+
* The pan of the left channel.
|
|
1614
1616
|
*/
|
|
1615
1617
|
panLeft: number;
|
|
1616
1618
|
/**
|
|
1617
|
-
* The pan of the right channel
|
|
1619
|
+
* The pan of the right channel.
|
|
1618
1620
|
*/
|
|
1619
1621
|
panRight: number;
|
|
1620
1622
|
/**
|
|
1621
|
-
* Synth's default (reset) preset
|
|
1623
|
+
* Synth's default (reset) preset.
|
|
1622
1624
|
*/
|
|
1623
1625
|
defaultPreset: BasicPreset | undefined;
|
|
1624
1626
|
/**
|
|
1625
|
-
* Synth's default (reset) drum preset
|
|
1627
|
+
* Synth's default (reset) drum preset.
|
|
1626
1628
|
*/
|
|
1627
1629
|
drumPreset: BasicPreset | undefined;
|
|
1628
1630
|
readonly volumeEnvelopeSmoothingFactor: number;
|
package/dist/index.js
CHANGED
|
@@ -1042,10 +1042,10 @@ var BankSelectHacks = class {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
1044
|
/**
|
|
1045
|
-
* Checks if this bank number is XG drums
|
|
1045
|
+
* Checks if this bank number is XG drums.
|
|
1046
1046
|
*/
|
|
1047
1047
|
static isXGDrums(bankMSB) {
|
|
1048
|
-
return bankMSB === 120 || bankMSB ===
|
|
1048
|
+
return bankMSB === 120 || bankMSB === 127;
|
|
1049
1049
|
}
|
|
1050
1050
|
/**
|
|
1051
1051
|
* Checks if this MSB is a valid XG MSB
|
|
@@ -4603,6 +4603,13 @@ function resetAllControllersInternal(log = true) {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
this.privateProps.callEvent("allControllerReset", void 0);
|
|
4605
4605
|
this.setMasterParameter("midiSystem", DEFAULT_SYNTH_MODE);
|
|
4606
|
+
this.privateProps.tunings.length = 0;
|
|
4607
|
+
for (let i = 0; i < 128; i++) {
|
|
4608
|
+
this.privateProps.tunings.push([]);
|
|
4609
|
+
}
|
|
4610
|
+
this.setMIDIVolume(1);
|
|
4611
|
+
this.privateProps.reverbSend = 1;
|
|
4612
|
+
this.privateProps.chorusSend = 1;
|
|
4606
4613
|
if (!this.privateProps.drumPreset || !this.privateProps.defaultPreset) {
|
|
4607
4614
|
return;
|
|
4608
4615
|
}
|
|
@@ -4634,12 +4641,6 @@ function resetAllControllersInternal(log = true) {
|
|
|
4634
4641
|
});
|
|
4635
4642
|
}
|
|
4636
4643
|
}
|
|
4637
|
-
this.privateProps.tunings.length = 0;
|
|
4638
|
-
this.privateProps.tunings.length = 0;
|
|
4639
|
-
for (let i = 0; i < 128; i++) {
|
|
4640
|
-
this.privateProps.tunings.push([]);
|
|
4641
|
-
}
|
|
4642
|
-
this.setMIDIVolume(1);
|
|
4643
4644
|
}
|
|
4644
4645
|
function resetControllers(sendCCEvents = true) {
|
|
4645
4646
|
this.channelOctaveTuning.fill(0);
|
|
@@ -7600,8 +7601,7 @@ var BasicPreset = class {
|
|
|
7600
7601
|
*/
|
|
7601
7602
|
get isAnyDrums() {
|
|
7602
7603
|
const xg = this.parentSoundBank.isXGBank;
|
|
7603
|
-
return this.isGMGSDrum || xg && BankSelectHacks.isXGDrums(this.bankMSB)
|
|
7604
|
-
this.bankMSB !== 126;
|
|
7604
|
+
return this.isGMGSDrum || xg && BankSelectHacks.isXGDrums(this.bankMSB);
|
|
7605
7605
|
}
|
|
7606
7606
|
/**
|
|
7607
7607
|
* Unlinks everything from this preset.
|
|
@@ -10187,26 +10187,28 @@ var ProtectedSynthValues = class {
|
|
|
10187
10187
|
midiVolume = 1;
|
|
10188
10188
|
/**
|
|
10189
10189
|
* Set via system exclusive.
|
|
10190
|
+
* Note: Remember to reset in system reset!
|
|
10190
10191
|
*/
|
|
10191
10192
|
reverbSend = 1;
|
|
10192
10193
|
/**
|
|
10193
10194
|
* Set via system exclusive.
|
|
10195
|
+
* Note: Remember to reset in system reset!
|
|
10194
10196
|
*/
|
|
10195
10197
|
chorusSend = 1;
|
|
10196
10198
|
/**
|
|
10197
|
-
* The pan of the left channel
|
|
10199
|
+
* The pan of the left channel.
|
|
10198
10200
|
*/
|
|
10199
10201
|
panLeft = 0.5;
|
|
10200
10202
|
/**
|
|
10201
|
-
* The pan of the right channel
|
|
10203
|
+
* The pan of the right channel.
|
|
10202
10204
|
*/
|
|
10203
10205
|
panRight = 0.5;
|
|
10204
10206
|
/**
|
|
10205
|
-
* Synth's default (reset) preset
|
|
10207
|
+
* Synth's default (reset) preset.
|
|
10206
10208
|
*/
|
|
10207
10209
|
defaultPreset;
|
|
10208
10210
|
/**
|
|
10209
|
-
* Synth's default (reset) drum preset
|
|
10211
|
+
* Synth's default (reset) drum preset.
|
|
10210
10212
|
*/
|
|
10211
10213
|
drumPreset;
|
|
10212
10214
|
// Volume envelope smoothing factor, adjusted to the sample rate.
|