Skip to content

Commit ea1ea2c

Browse files
grimmdudeclaude
andcommitted
Publish v3.2.1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b3efe97 commit ea1ea2c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

browser/midiwriter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var MidiWriter = (function () {
66
* @return {Constants}
77
*/
88
var Constants = {
9-
VERSION: '3.2.0',
9+
VERSION: '3.2.1',
1010
HEADER_CHUNK_TYPE: [0x4d, 0x54, 0x68, 0x64],
1111
HEADER_CHUNK_LENGTH: [0x00, 0x00, 0x00, 0x06],
1212
HEADER_CHUNK_FORMAT0: [0x00, 0x00],
@@ -1024,7 +1024,7 @@ var MidiWriter = (function () {
10241024
// There are no events yet, so just add it in.
10251025
if (!this.events.length) {
10261026
this.addEvent(event);
1027-
return;
1027+
return this;
10281028
}
10291029
// Find index of existing event we need to follow with
10301030
var lastEventIndex;
@@ -1055,6 +1055,7 @@ var MidiWriter = (function () {
10551055
this.events[i].delta = this.events[i].tick - this.events[i - 1].tick;
10561056
}
10571057
}
1058+
return this;
10581059
};
10591060
/**
10601061
* Removes all events matching specified type.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "midi-writer-js",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "A library providing an API for generating MIDI files.",
55
"main": "build/index.js",
66
"exports": {

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
const Constants = {
7-
VERSION : '3.2.0',
7+
VERSION : '3.2.1',
88
HEADER_CHUNK_TYPE : [0x4d, 0x54, 0x68, 0x64], // Mthd
99
HEADER_CHUNK_LENGTH : [0x00, 0x00, 0x00, 0x06], // Header size for SMF
1010
HEADER_CHUNK_FORMAT0 : [0x00, 0x00], // Midi Type 0 id

0 commit comments

Comments
 (0)