spessasynth_lib 3.20.2 → 3.20.3

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.
@@ -123,7 +123,6 @@ class MIDI extends BasicMIDI
123
123
 
124
124
  if(DLSRMID)
125
125
  {
126
- console.log(DLSRMID)
127
126
  // assume bank offset of 0 by default. If we find any bank selects, then the offset is 1.
128
127
  this.bankOffset = 0;
129
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spessasynth_lib",
3
- "version": "3.20.2",
3
+ "version": "3.20.3",
4
4
  "description": "MIDI and SoundFont2 or DLS Synthesizer library with no compromises",
5
5
  "browser": "index.js",
6
6
  "types": "@types/index.d.ts",
@@ -264,10 +264,8 @@ export function play(resetTime = false)
264
264
  }
265
265
  if(!this.sendMIDIMessages)
266
266
  {
267
- const time = this.currentTime;
268
267
  this.playingNotes.forEach(n => {
269
- const timeOffset = n.startTime - time;
270
- this.synth.noteOn(n.channel, n.midiNote, n.velocity, false, true, currentTime + timeOffset);
268
+ this.synth.noteOn(n.channel, n.midiNote, n.velocity, false, true);
271
269
  });
272
270
  }
273
271
  this.setProcessHandler();
@@ -36,8 +36,7 @@ export function _processEvent(event, trackIndex)
36
36
  this.playingNotes.push({
37
37
  midiNote: event.messageData[0],
38
38
  channel: statusByteData.channel,
39
- velocity: velocity,
40
- startTime: this.currentTime
39
+ velocity: velocity
41
40
  });
42
41
  }
43
42
  else
@@ -60,8 +60,7 @@ class WorkletSequencer
60
60
  * @type {{
61
61
  * midiNote: number,
62
62
  * channel: number,
63
- * velocity: number,
64
- * startTime: number
63
+ * velocity: number
65
64
  * }[]}
66
65
  */
67
66
  this.playingNotes = [];