spessasynth_lib 4.0.11 → 4.0.13
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
CHANGED
|
@@ -1218,7 +1218,9 @@ declare class Sequencer {
|
|
|
1218
1218
|
* Connects a given output to the sequencer.
|
|
1219
1219
|
* @param output The output to connect. Pass undefined to use the connected synthesizer.
|
|
1220
1220
|
*/
|
|
1221
|
-
connectMIDIOutput(output?:
|
|
1221
|
+
connectMIDIOutput(output?: {
|
|
1222
|
+
send: (data: number[]) => unknown;
|
|
1223
|
+
}): void;
|
|
1222
1224
|
/**
|
|
1223
1225
|
* Pauses the playback.
|
|
1224
1226
|
*/
|
package/dist/index.js
CHANGED
|
@@ -2793,9 +2793,11 @@ var Sequencer = class {
|
|
|
2793
2793
|
* Controls the playback's rate.
|
|
2794
2794
|
*/
|
|
2795
2795
|
set playbackRate(value) {
|
|
2796
|
+
const t = this.currentTime;
|
|
2796
2797
|
this.sendMessage("setPlaybackRate", value);
|
|
2797
2798
|
this.highResTimeOffset *= value / this._playbackRate;
|
|
2798
2799
|
this._playbackRate = value;
|
|
2800
|
+
this.recalculateStartTime(t);
|
|
2799
2801
|
}
|
|
2800
2802
|
_shuffleSongs = false;
|
|
2801
2803
|
/**
|