Closed skabbit closed 3 years ago
The value of Pitch Bend event is not set.
Here is the code from src/track.js:
} else if (this.lastStatus <= 0xef) { // Pitch Bend eventJson.name = 'Pitch Bend'; eventJson.channel = this.lastStatus - 0xe0 + 1; this.pointer += deltaByteCount + 2; } else {
According to MIDI protocol there is two bytes (MSB and LSB) for pitch bend value, but most of the software/devices ignore LSB, so this bug is easy solved by line like: eventJson.value = this.data[eventStartIndex + 2]
eventJson.value = this.data[eventStartIndex + 2]
The value of Pitch Bend event is not set.
Here is the code from src/track.js:
According to MIDI protocol there is two bytes (MSB and LSB) for pitch bend value, but most of the software/devices ignore LSB, so this bug is easy solved by line like:
eventJson.value = this.data[eventStartIndex + 2]