diff --git a/browser/midiwriter.js b/browser/midiwriter.js
index ca814d3..8f0dbb1 100644
--- a/browser/midiwriter.js
+++ b/browser/midiwriter.js
@@ -1,4 +1,4 @@
-var MidiWriter = (function () {
+var MidiWriter = (function (exports) {
'use strict';
/**
@@ -6,7 +6,7 @@ var MidiWriter = (function () {
* @return {Constants}
*/
var Constants = {
- VERSION: '2.1.4',
+ VERSION: '3.0.0',
HEADER_CHUNK_TYPE: [0x4d, 0x54, 0x68, 0x64],
HEADER_CHUNK_LENGTH: [0x00, 0x00, 0x00, 0x06],
HEADER_CHUNK_FORMAT0: [0x00, 0x00],
@@ -17,133 +17,109 @@ var MidiWriter = (function () {
META_SMTPE_OFFSET: 0x54
};
- function isNum (x) { return typeof x === 'number' }
- function isStr (x) { return typeof x === 'string' }
- function isDef (x) { return typeof x !== 'undefined' }
- function midiToFreq (midi, tuning) {
- return Math.pow(2, (midi - 69) / 12) * (tuning || 440)
- }
-
- var REGEX = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
+ // src/utils.ts
+ var fillStr = (s, n) => Array(Math.abs(n) + 1).join(s);
- var SEMITONES = [0, 2, 4, 5, 7, 9, 11];
- /**
- * Parse a note name in scientific notation an return it's components,
- * and some numeric properties including midi number and frequency.
- *
- * @name parse
- * @function
- * @param {String} note - the note string to be parsed
- * @param {Boolean} isTonic - true the strings it's supposed to contain a note number
- * and some category (for example an scale: 'C# major'). It's false by default,
- * but when true, en extra tonicOf property is returned with the category ('major')
- * @param {Float} tunning - The frequency of A4 note to calculate frequencies.
- * By default it 440.
- * @return {Object} the parsed note name or null if not a valid note
- *
- * The parsed note name object will ALWAYS contains:
- * - letter: the uppercase letter of the note
- * - acc: the accidentals of the note (only sharps or flats)
- * - pc: the pitch class (letter + acc)
- * - step: s a numeric representation of the letter. It's an integer from 0 to 6
- * where 0 = C, 1 = D ... 6 = B
- * - alt: a numeric representation of the accidentals. 0 means no alteration,
- * positive numbers are for sharps and negative for flats
- * - chroma: a numeric representation of the pitch class. It's like midi for
- * pitch classes. 0 = C, 1 = C#, 2 = D ... 11 = B. Can be used to find enharmonics
- * since, for example, chroma of 'Cb' and 'B' are both 11
- *
- * If the note has octave, the parser object will contain:
- * - oct: the octave number (as integer)
- * - midi: the midi number
- * - freq: the frequency (using tuning parameter as base)
- *
- * If the parameter `isTonic` is set to true, the parsed object will contain:
- * - tonicOf: the rest of the string that follows note name (left and right trimmed)
- *
- * @example
- * var parse = require('note-parser').parse
- * parse('Cb4')
- * // => { letter: 'C', acc: 'b', pc: 'Cb', step: 0, alt: -1, chroma: -1,
- * oct: 4, midi: 59, freq: 246.94165062806206 }
- * // if no octave, no midi, no freq
- * parse('fx')
- * // => { letter: 'F', acc: '##', pc: 'F##', step: 3, alt: 2, chroma: 7 })
- */
- function parse (str, isTonic, tuning) {
- if (typeof str !== 'string') return null
- var m = REGEX.exec(str);
- if (!m || (!isTonic && m[4])) return null
+ // src/named.ts
+ function isNamed(src) {
+ return src !== null && typeof src === "object" && typeof src.name === "string" ? true : false;
+ }
- var p = { letter: m[1].toUpperCase(), acc: m[2].replace(/x/g, '##') };
- p.pc = p.letter + p.acc;
- p.step = (p.letter.charCodeAt(0) + 3) % 7;
- p.alt = p.acc[0] === 'b' ? -p.acc.length : p.acc.length;
- var pos = SEMITONES[p.step] + p.alt;
- p.chroma = pos < 0 ? 12 + pos : pos % 12;
- if (m[3]) { // has octave
- p.oct = +m[3];
- p.midi = pos + 12 * (p.oct + 1);
- p.freq = midiToFreq(p.midi, tuning);
+ // src/pitch.ts
+ function isPitch(pitch) {
+ return pitch !== null && typeof pitch === "object" && typeof pitch.step === "number" && typeof pitch.alt === "number" ? true : false;
+ }
+ var FIFTHS = [0, 2, 4, -1, 1, 3, 5];
+ var STEPS_TO_OCTS = FIFTHS.map(
+ (fifths) => Math.floor(fifths * 7 / 12)
+ );
+ function encode(pitch) {
+ const { step, alt, oct, dir = 1 } = pitch;
+ const f = FIFTHS[step] + 7 * alt;
+ if (oct === void 0) {
+ return [dir * f];
}
- if (isTonic) p.tonicOf = m[4];
- return p
+ const o = oct - STEPS_TO_OCTS[step] - 4 * alt;
+ return [dir * f, dir * o];
}
- /**
- * Get midi of a note
- *
- * @name midi
- * @function
- * @param {String|Integer} note - the note name or midi number
- * @return {Integer} the midi number of the note or null if not a valid note
- * or the note does NOT contains octave
- * @example
- * var parser = require('note-parser')
- * parser.midi('A4') // => 69
- * parser.midi('A') // => null
- * @example
- * // midi numbers are bypassed (even as strings)
- * parser.midi(60) // => 60
- * parser.midi('60') // => 60
- */
- function midi (note) {
- if ((isNum(note) || isStr(note)) && note >= 0 && note < 128) return +note
- var p = parse(note);
- return p && isDef(p.midi) ? p.midi : null
+ // src/note.ts
+ var NoNote = { empty: true, name: "", pc: "", acc: "" };
+ var cache = /* @__PURE__ */ new Map();
+ var stepToLetter = (step) => "CDEFGAB".charAt(step);
+ var altToAcc = (alt) => alt < 0 ? fillStr("b", -alt) : fillStr("#", alt);
+ var accToAlt = (acc) => acc[0] === "b" ? -acc.length : acc.length;
+ function note(src) {
+ const stringSrc = JSON.stringify(src);
+ const cached = cache.get(stringSrc);
+ if (cached) {
+ return cached;
+ }
+ const value = typeof src === "string" ? parse(src) : isPitch(src) ? note(pitchName(src)) : isNamed(src) ? note(src.name) : NoNote;
+ cache.set(stringSrc, value);
+ return value;
+ }
+ var REGEX = /^([a-gA-G]?)(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)$/;
+ function tokenizeNote(str) {
+ const m = REGEX.exec(str);
+ return [m[1].toUpperCase(), m[2].replace(/x/g, "##"), m[3], m[4]];
+ }
+ var mod = (n, m) => (n % m + m) % m;
+ var SEMI = [0, 2, 4, 5, 7, 9, 11];
+ function parse(noteName) {
+ const tokens = tokenizeNote(noteName);
+ if (tokens[0] === "" || tokens[3] !== "") {
+ return NoNote;
+ }
+ const letter = tokens[0];
+ const acc = tokens[1];
+ const octStr = tokens[2];
+ const step = (letter.charCodeAt(0) + 3) % 7;
+ const alt = accToAlt(acc);
+ const oct = octStr.length ? +octStr : void 0;
+ const coord = encode({ step, alt, oct });
+ const name = letter + acc + octStr;
+ const pc = letter + acc;
+ const chroma = (SEMI[step] + alt + 120) % 12;
+ const height = oct === void 0 ? mod(SEMI[step] + alt, 12) - 12 * 99 : SEMI[step] + alt + 12 * (oct + 1);
+ const midi = height >= 0 && height <= 127 ? height : null;
+ const freq = oct === void 0 ? null : Math.pow(2, (height - 69) / 12) * 440;
+ return {
+ empty: false,
+ acc,
+ alt,
+ chroma,
+ coord,
+ freq,
+ height,
+ letter,
+ midi,
+ name,
+ oct,
+ pc,
+ step
+ };
+ }
+ function pitchName(props) {
+ const { step, alt, oct } = props;
+ const letter = stepToLetter(step);
+ if (!letter) {
+ return "";
+ }
+ const pc = letter + altToAcc(alt);
+ return oct || oct === 0 ? pc + oct : pc;
}
- /**
- * A midi note number is a number representation of a note pitch. It can be
- * integers so it's equal tempered tuned, or float to indicate it's not
- * tuned into equal temepered scale.
- *
- * This module contains functions to convert to and from midi notes.
- *
- * @example
- * var midi = require('tonal-midi')
- * midi.toMidi('A4') // => 69
- * midi.note(69) // => 'A4'
- * midi.note(61) // => 'Db4'
- * midi.note(61, true) // => 'C#4'
- *
- * @module midi
- */
-
- /**
- * Convert the given note to a midi note number. If you pass a midi number it
- * will returned as is.
- *
- * @param {Array|String|Number} note - the note to get the midi number from
- * @return {Integer} the midi number or null if not valid pitch
- * @example
- * midi.toMidi('C4') // => 60
- * midi.toMidi(60) // => 60
- * midi.toMidi('60') // => 60
- */
- function toMidi (val) {
- if (Array.isArray(val) && val.length === 2) return val[0] * 7 + val[1] * 12 + 12
- return midi(val)
+ // index.ts
+ function isMidi(arg) {
+ return +arg >= 0 && +arg <= 127;
+ }
+ function toMidi(note$1) {
+ if (isMidi(note$1)) {
+ return +note$1;
+ }
+ const n = note(note$1);
+ return n.empty ? null : n.midi;
}
/**
@@ -1355,31 +1331,31 @@ var MidiWriter = (function () {
return Writer;
}());
- var main = {
- Constants: Constants,
- ControllerChangeEvent: ControllerChangeEvent,
- CopyrightEvent: CopyrightEvent,
- CuePointEvent: CuePointEvent,
- EndTrackEvent: EndTrackEvent,
- InstrumentNameEvent: InstrumentNameEvent,
- KeySignatureEvent: KeySignatureEvent,
- LyricEvent: LyricEvent,
- MarkerEvent: MarkerEvent,
- NoteOnEvent: NoteOnEvent,
- NoteOffEvent: NoteOffEvent,
- NoteEvent: NoteEvent,
- PitchBendEvent: PitchBendEvent,
- ProgramChangeEvent: ProgramChangeEvent,
- TempoEvent: TempoEvent,
- TextEvent: TextEvent,
- TimeSignatureEvent: TimeSignatureEvent,
- Track: Track,
- TrackNameEvent: TrackNameEvent,
- Utils: Utils,
- VexFlow: VexFlow,
- Writer: Writer
- };
+ exports.Constants = Constants;
+ exports.ControllerChangeEvent = ControllerChangeEvent;
+ exports.CopyrightEvent = CopyrightEvent;
+ exports.CuePointEvent = CuePointEvent;
+ exports.EndTrackEvent = EndTrackEvent;
+ exports.InstrumentNameEvent = InstrumentNameEvent;
+ exports.KeySignatureEvent = KeySignatureEvent;
+ exports.LyricEvent = LyricEvent;
+ exports.MarkerEvent = MarkerEvent;
+ exports.NoteEvent = NoteEvent;
+ exports.NoteOffEvent = NoteOffEvent;
+ exports.NoteOnEvent = NoteOnEvent;
+ exports.PitchBendEvent = PitchBendEvent;
+ exports.ProgramChangeEvent = ProgramChangeEvent;
+ exports.TempoEvent = TempoEvent;
+ exports.TextEvent = TextEvent;
+ exports.TimeSignatureEvent = TimeSignatureEvent;
+ exports.Track = Track;
+ exports.TrackNameEvent = TrackNameEvent;
+ exports.Utils = Utils;
+ exports.VexFlow = VexFlow;
+ exports.Writer = Writer;
+
+ Object.defineProperty(exports, '__esModule', { value: true });
- return main;
+ return exports;
-})();
+})({});
diff --git a/docs/Chunk.html b/docs/Chunk.html
deleted file mode 100644
index f956a4d..0000000
--- a/docs/Chunk.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- Chunk - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C Chunk C ControllerChangeEvent C EndTrackEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F setKeySignature F setTempo F setTimeSignature C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
Chunk
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new Chunk(fields) → {Chunk }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {type: number, data: array, size: array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Chunk
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sat Jan 19 2019 00:33:30 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/ControllerChangeEvent.html b/docs/ControllerChangeEvent.html
deleted file mode 100644
index 86dbfb0..0000000
--- a/docs/ControllerChangeEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- ControllerChangeEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
ControllerChangeEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {controllerNumber: integer, controllerValue: integer, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/CopyrightEvent.html b/docs/CopyrightEvent.html
deleted file mode 100644
index 90fc873..0000000
--- a/docs/CopyrightEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- CopyrightEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
CopyrightEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new CopyrightEvent(fields) → {CopyrightEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {text: string, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/CuePointEvent.html b/docs/CuePointEvent.html
deleted file mode 100644
index 792361f..0000000
--- a/docs/CuePointEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- CuePointEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
CuePointEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new CuePointEvent(fields) → {CuePointEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {text: string, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/EndTrackEvent.html b/docs/EndTrackEvent.html
deleted file mode 100644
index 487cb36..0000000
--- a/docs/EndTrackEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- EndTrackEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
EndTrackEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new EndTrackEvent(fields) → {EndTrackEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/HeaderChunk.html b/docs/HeaderChunk.html
deleted file mode 100644
index 1039823..0000000
--- a/docs/HeaderChunk.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- HeaderChunk - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
HeaderChunk
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- numberOfTracks
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Number of tracks
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-HeaderChunk
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/InstrumentNameEvent.html b/docs/InstrumentNameEvent.html
deleted file mode 100644
index dafe867..0000000
--- a/docs/InstrumentNameEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- InstrumentNameEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
InstrumentNameEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {text: string, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/KeySignatureEvent.html b/docs/KeySignatureEvent.html
deleted file mode 100644
index 6892e82..0000000
--- a/docs/KeySignatureEvent.html
+++ /dev/null
@@ -1,195 +0,0 @@
-
-
-
-
-
- KeySignatureEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
KeySignatureEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/LyricEvent.html b/docs/LyricEvent.html
deleted file mode 100644
index ddd3af2..0000000
--- a/docs/LyricEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- LyricEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
LyricEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new LyricEvent(fields) → {LyricEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {text: string, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-LyricEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/MarkerEvent.html b/docs/MarkerEvent.html
deleted file mode 100644
index 8f09340..0000000
--- a/docs/MarkerEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- MarkerEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
MarkerEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new MarkerEvent(fields) → {MarkerEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {text: string, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-MarkerEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/MetaEvent.html b/docs/MetaEvent.html
deleted file mode 100644
index 9d445c9..0000000
--- a/docs/MetaEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- MetaEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
MetaEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- type, data
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-MetaEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/NoteEvent.html b/docs/NoteEvent.html
deleted file mode 100644
index 74d726f..0000000
--- a/docs/NoteEvent.html
+++ /dev/null
@@ -1,355 +0,0 @@
-
-
-
-
-
- NoteEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
NoteEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new NoteEvent(fields) → {NoteEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {pitch: '[C4]', duration: '4', wait: '4', velocity: 1-100}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-NoteEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Builds int array for this event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-NoteEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/NoteOffEvent.html b/docs/NoteOffEvent.html
deleted file mode 100644
index b5a286b..0000000
--- a/docs/NoteOffEvent.html
+++ /dev/null
@@ -1,513 +0,0 @@
-
-
-
-
-
- NoteOffEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
NoteOffEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new NoteOffEvent(fields) → {NoteOffEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {data: []}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-NoteOffEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Builds int array for this event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- track
-
-
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
- parent track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-NoteOffEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
getStatusByte() → {number}
-
-
-
-
-
-
- Gets the note off status code based on the selected channel. 0x8{0-F}
-Note off at channel 0 is 0x80 (128)
-0 = Ch 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/NoteOnEvent.html b/docs/NoteOnEvent.html
deleted file mode 100644
index 2e4e337..0000000
--- a/docs/NoteOnEvent.html
+++ /dev/null
@@ -1,513 +0,0 @@
-
-
-
-
-
- NoteOnEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
NoteOnEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new NoteOnEvent(fields) → {NoteOnEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {data: []}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-NoteOnEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Builds int array for this event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- track
-
-
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
- parent track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-NoteOnEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
getStatusByte() → {number}
-
-
-
-
-
-
- Gets the note on status code based on the selected channel. 0x9{0-F}
-Note on at channel 0 is 0x90 (144)
-0 = Ch 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/ProgramChangeEvent.html b/docs/ProgramChangeEvent.html
deleted file mode 100644
index 21dfeb5..0000000
--- a/docs/ProgramChangeEvent.html
+++ /dev/null
@@ -1,357 +0,0 @@
-
-
-
-
-
- ProgramChangeEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
ProgramChangeEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {instrument: integer, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
getStatusByte() → {number}
-
-
-
-
-
-
- Gets the status code based on the selected channel. 0xC{0-F}
-Program change status byte for channel 0 is 0xC0 (192)
-0 = Ch 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/TempoEvent.html b/docs/TempoEvent.html
deleted file mode 100644
index 1dd986d..0000000
--- a/docs/TempoEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- TempoEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
TempoEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new TempoEvent(fields) → {TempoEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {bpm: integer, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-TempoEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/TextEvent.html b/docs/TextEvent.html
deleted file mode 100644
index d1c39e9..0000000
--- a/docs/TextEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- TextEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
TextEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new TextEvent(fields) → {TextEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {text: string, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-TextEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/TimeSignatureEvent.html b/docs/TimeSignatureEvent.html
deleted file mode 100644
index 7dce06a..0000000
--- a/docs/TimeSignatureEvent.html
+++ /dev/null
@@ -1,195 +0,0 @@
-
-
-
-
-
- TimeSignatureEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
TimeSignatureEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/Track.html b/docs/Track.html
deleted file mode 100644
index b46e48b..0000000
--- a/docs/Track.html
+++ /dev/null
@@ -1,3209 +0,0 @@
-
-
-
-
-
- Track - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new Track(fields) → {Track }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {type: number, data: array, size: array, events: array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
addCopyright(text) → {Track }
-
-
-
-
-
-
- Adds copyright to MIDI file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Text of copyright line.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addCuePoint(text) → {Track }
-
-
-
-
-
-
- Adds cue point to MIDI file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Text of cue point.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addEvent(events, mapFunction) → {Track }
-
-
-
-
-
-
- Adds any event type to the track.
-Events without a specific startTick property are assumed to be added in order of how they should output.
-Events with a specific startTick property are set aside for now will be merged in during build process.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- events
-
-
-
-
-
-NoteEvent
-|
-
-ProgramChangeEvent
-
-
-
-
-
-
-
-
-
-
- Event object or array of Event objects.
-
-
-
-
-
-
-
-
- mapFunction
-
-
-
-
-
-function
-
-
-
-
-
-
-
-
-
-
- Callback which can be used to apply specific properties to all events.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addInstrumentName(text) → {Track }
-
-
-
-
-
-
- Sets instrument name of track.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Name of instrument.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addLyric(text) → {Track }
-
-
-
-
-
-
- Adds lyric to MIDI file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Lyric text to add.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addMarker(text) → {Track }
-
-
-
-
-
-
- Adds marker to MIDI file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Marker text.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addText(text) → {Track }
-
-
-
-
-
-
- Adds text to MIDI file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Text to add.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addTrackName(text) → {Track }
-
-
-
-
-
-
- Adds Sequence/Track Name.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- text
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Text of track name.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
buildData(options) → {Track }
-
-
-
-
-
-
- Builds int array of all events.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
controllerChange(number, value) → {Track }
-
-
-
-
-
-
- Adds a controller change event
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- number
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Control number.
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Control value.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
mergeSingleEvent(event) → {Track }
-
-
-
-
-
-
- Merges a single event into this track's list of events based on event.tick property.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- event
-
-
-
-
-
-NoteOnEvent
-|
-
-NoteOffEvent
-
-
-
-
-
-
-
-
-
-
- event
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
mergeTrack(track) → {Track }
-
-
-
-
-
-
- Merges another track's events with this track.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- track
-
-
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
polyModeOn() → {Track }
-
-
-
-
-
-
- Channel mode messages
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
removeEventsByType(eventType) → {Track }
-
-
-
-
-
-
- Removes all events matching specified type.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- eventType
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- Event type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setKeySignature(sf, mi) → {Track }
-
-
-
-
-
-
- Sets key signature.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- sf
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
- mi
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setPitchBend(bend) → {Track }
-
-
-
-
-
-
- Sets a pitch bend.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- bend
-
-
-
-
-
-float
-
-
-
-
-
-
-
-
-
-
- Bend value ranging [-1,1], zero meaning no bend.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setTempo(bpm, tick) → {Track }
-
-
-
-
-
-
- Sets tempo of the MIDI file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- bpm
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tempo in beats per minute.
-
-
-
-
-
-
-
-
- tick
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
- Start tick.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setTimeSignature(numerator, denominator, midiclockspertick, notespermidiclock) → {Track }
-
-
-
-
-
-
- Sets time signature.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- numerator
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Top number of the time signature.
-
-
-
-
-
-
-
-
- denominator
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Bottom number of the time signature.
-
-
-
-
-
-
-
-
- midiclockspertick
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Defaults to 24.
-
-
-
-
-
-
-
-
- notespermidiclock
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Defaults to 8.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Track
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/TrackNameEvent.html b/docs/TrackNameEvent.html
deleted file mode 100644
index f008280..0000000
--- a/docs/TrackNameEvent.html
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
- TrackNameEvent - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
TrackNameEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new TrackNameEvent(fields) → {TrackNameEvent }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {text: string, delta: integer}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/Utils.html b/docs/Utils.html
deleted file mode 100644
index bd2b706..0000000
--- a/docs/Utils.html
+++ /dev/null
@@ -1,2397 +0,0 @@
-
-
-
-
-
- Utils - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
Utils
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new Utils()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
(static) convertVelocity(velocity) → {number}
-
-
-
-
-
-
- Converts velocity to value 0-127
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- velocity
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Velocity value 1-100
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) getDurationMultiplier(duration) → {number}
-
-
-
-
-
-
- Gets what to multiple ticks/quarter note by to get the specified duration.
-Note: type=='note' defaults to quarter note, type==='rest' defaults to 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- duration
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) getPitch(pitch, middleC) → {number}
-
-
-
-
-
-
- Returns the correct MIDI number for the specified pitch.
-Uses Tonal Midi - https://github.com/danigb/tonal/tree/master/packages/midi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
- Default
-
-
- Description
-
-
-
-
-
-
-
-
- pitch
-
-
-
-
-
-string
-|
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'C#4' or midi note code
-
-
-
-
-
-
-
-
- middleC
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- C4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) getPrecisionLoss(tick) → {number}
-
-
-
-
-
-
- Due to low precision of MIDI,
-we need to keep track of rounding errors in deltas.
-This function will calculate the rounding error for a given duration.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- tick
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) getRoundedIfClose(tick) → {number}
-
-
-
-
-
-
- Due to rounding errors in JavaScript engines,
-it's safe to round when we're very close to the actual tick number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- tick
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) getTickDuration(duration) → {number}
-
-
-
-
-
-
- Gets the total number of ticks of a specified duration.
-Note: type=='note' defaults to quarter note, type==='rest' defaults to 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- duration
-
-
-
-
-
-string
-|
-
-array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) isNumeric(n) → {boolean}
-
-
-
-
-
-
- Checks if argument is a valid number.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- n
-
-
-
-
-
-*
-
-
-
-
-
-
-
-
-
-
- Value to check
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) numberFromBytes(bytes) → {number}
-
-
-
-
-
-
- Get an int from an array of bytes.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- bytes
-
-
-
-
-
-array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) numberToBytes(number, bytesNeeded) → {array}
-
-
-
-
-
-
- Takes a number and splits it up into an array of bytes. Can be padded by passing a number to bytesNeeded
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- number
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- bytesNeeded
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-array
-
-
-
-
-
-
-
- - Array of bytes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) numberToVariableLength(ticks) → {array}
-
-
-
-
-
-
- Translates number of ticks to MIDI timestamp format, returning an array of
-hex strings with the time values. Midi has a very particular time to express time,
-take a good look at the spec before ever touching this function.
-Thanks to https://github.com/sergi/jsmidi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- ticks
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Number of ticks to be translated
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-array
-
-
-
-
-
-
-
- - Bytes that form the MIDI time value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) stringByteCount(s) → {array}
-
-
-
-
-
-
- Counts number of bytes in string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- s
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) stringToBytes(string) → {array}
-
-
-
-
-
-
- Convert a string to an array of bytes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- string
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) toArray(value) → {array}
-
-
-
-
-
-
- Converts value to array if needed.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(static) version() → {string}
-
-
-
-
-
-
- Gets MidiWriterJS version number.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/Writer.html b/docs/Writer.html
deleted file mode 100644
index cd9aa17..0000000
--- a/docs/Writer.html
+++ /dev/null
@@ -1,982 +0,0 @@
-
-
-
-
-
- Writer - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
Writer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Constructor
-
-
-
new Writer(tracks, options) → {Writer }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- tracks
-
-
-
-
-
-array
-|
-
-Track
-
-
-
-
-
-
-
-
-
-
- A single {Track} object or an array of {Track} objects.
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- {middleC: 'C4'}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Writer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
base64() → {string}
-
-
-
-
-
-
- Convert file buffer to a base64 string. Different methods depending on if browser or node.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
buildData() → {array}
-
-
-
-
-
-
- Builds array of data from chunkschunks.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
buildFile() → {Uint8Array}
-
-
-
-
-
-
- Builds the file into a Uint8Array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Uint8Array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
dataUri() → {string}
-
-
-
-
-
-
- Get the data URI.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setOption(key, value) → {Writer }
-
-
-
-
-
-
- Set option on instantiated Writer.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- key
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- value
-
-
-
-
-
-any
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-Writer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
stdout() → {string}
-
-
-
-
-
-
- Output to stdout
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/chunk.js.html b/docs/chunk.js.html
deleted file mode 100644
index 9aede9f..0000000
--- a/docs/chunk.js.html
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
- chunk.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C Chunk C ControllerChangeEvent C EndTrackEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F setKeySignature F setTempo F setTimeSignature C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
chunk.js
-
-
-
-
-
-
-
-
-
- /**
- * Object representation of the chunk section of a MIDI file.
- * @param {object} fields - {type: number, data: array, size: array}
- * @return {Chunk}
- */
-class Chunk {
- constructor(fields) {
- this.type = fields.type;
- this.data = fields.data;
- this.size = [0, 0, 0, fields.data.length];
- }
-}
-
-export {Chunk};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sat Jan 19 2019 00:33:30 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/constants.js.html b/docs/constants.js.html
deleted file mode 100644
index f4901e2..0000000
--- a/docs/constants.js.html
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
- constants.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
constants.js
-
-
-
-
-
-
-
-
-
- /**
- * MIDI file format constants.
- * @return {Constants}
- */
-
-const Constants = {
- VERSION : '2.1.4',
- HEADER_CHUNK_TYPE : [0x4d, 0x54, 0x68, 0x64], // Mthd
- HEADER_CHUNK_LENGTH : [0x00, 0x00, 0x00, 0x06], // Header size for SMF
- HEADER_CHUNK_FORMAT0 : [0x00, 0x00], // Midi Type 0 id
- HEADER_CHUNK_FORMAT1 : [0x00, 0x01], // Midi Type 1 id
- HEADER_CHUNK_DIVISION : [0x00, 0x80], // Defaults to 128 ticks per beat
- TRACK_CHUNK_TYPE : [0x4d, 0x54, 0x72, 0x6b], // MTrk,
- META_EVENT_ID : 0xFF,
- META_TEXT_ID : 0x01,
- META_COPYRIGHT_ID : 0x02,
- META_TRACK_NAME_ID : 0x03,
- META_INSTRUMENT_NAME_ID : 0x04,
- META_LYRIC_ID : 0x05,
- META_MARKER_ID : 0x06,
- META_CUE_POINT : 0x07,
- META_TEMPO_ID : 0x51,
- META_SMTPE_OFFSET : 0x54,
- META_TIME_SIGNATURE_ID : 0x58,
- META_KEY_SIGNATURE_ID : 0x59,
- META_END_OF_TRACK_ID : [0x2F, 0x00],
- CONTROLLER_CHANGE_STATUS: 0xB0, // includes channel number (0)
- PITCH_BEND_STATUS : 0xE0, // includes channel number (0)
-};
-
-export {Constants};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/controller-change-event.js.html b/docs/controller-change-event.js.html
deleted file mode 100644
index 7ed3a62..0000000
--- a/docs/controller-change-event.js.html
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
- controller-change-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
controller-change-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils.js';
-
-/**
- * Holds all data for a "controller change" MIDI event
- * @param {object} fields {controllerNumber: integer, controllerValue: integer}
- * @return {ControllerChangeEvent}
- */
-class ControllerChangeEvent {
- constructor(fields) {
- this.type = 'controller';
- // delta time defaults to 0.
- this.data = Utils.numberToVariableLength(0x00).concat(Constants.CONTROLLER_CHANGE_STATUS, fields.controllerNumber, fields.controllerValue);
- }
-}
-
-export {ControllerChangeEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.3 on Thu Jul 18 2019 23:31:03 GMT+0100 (British Summer Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/copyright-event.js.html b/docs/copyright-event.js.html
deleted file mode 100644
index b60ffdd..0000000
--- a/docs/copyright-event.js.html
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
- copyright-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
copyright-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a tempo meta event.
- * @param {string} text - Copyright text
- * @return {CopyrightEvent}
- */
-class CopyrightEvent {
- constructor(text) {
- this.type = 'copyright';
-
- const textBytes = Utils.stringToBytes(text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_COPYRIGHT_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {CopyrightEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/cue-point-event.js.html b/docs/cue-point-event.js.html
deleted file mode 100644
index 892c0b5..0000000
--- a/docs/cue-point-event.js.html
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
- cue-point-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
cue-point-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a cue point meta event.
- * @param {string} text - Cue point text
- * @return {CuePointEvent}
- */
-class CuePointEvent {
- constructor(text) {
- this.type = 'marker';
-
- const textBytes = Utils.stringToBytes(text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_CUE_POINT,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {CuePointEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/end-track-event.js.html b/docs/end-track-event.js.html
deleted file mode 100644
index 60d07d8..0000000
--- a/docs/end-track-event.js.html
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
-
-
- end-track-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
end-track-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a end track meta event.
- * @return {EndTrackEvent}
- */
-class EndTrackEvent {
- constructor() {
- this.type = 'end-track';
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_END_OF_TRACK_ID
- );
- }
-}
-
-export {EndTrackEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/fonts/OpenSans-Bold-webfont.eot b/docs/fonts/OpenSans-Bold-webfont.eot
deleted file mode 100644
index 5d20d91..0000000
Binary files a/docs/fonts/OpenSans-Bold-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-Bold-webfont.svg b/docs/fonts/OpenSans-Bold-webfont.svg
deleted file mode 100644
index 3ed7be4..0000000
--- a/docs/fonts/OpenSans-Bold-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/fonts/OpenSans-Bold-webfont.woff b/docs/fonts/OpenSans-Bold-webfont.woff
deleted file mode 100644
index 1205787..0000000
Binary files a/docs/fonts/OpenSans-Bold-webfont.woff and /dev/null differ
diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.eot b/docs/fonts/OpenSans-BoldItalic-webfont.eot
deleted file mode 100644
index 1f639a1..0000000
Binary files a/docs/fonts/OpenSans-BoldItalic-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.svg b/docs/fonts/OpenSans-BoldItalic-webfont.svg
deleted file mode 100644
index 6a2607b..0000000
--- a/docs/fonts/OpenSans-BoldItalic-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.woff b/docs/fonts/OpenSans-BoldItalic-webfont.woff
deleted file mode 100644
index ed760c0..0000000
Binary files a/docs/fonts/OpenSans-BoldItalic-webfont.woff and /dev/null differ
diff --git a/docs/fonts/OpenSans-Italic-webfont.eot b/docs/fonts/OpenSans-Italic-webfont.eot
deleted file mode 100644
index 0c8a0ae..0000000
Binary files a/docs/fonts/OpenSans-Italic-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-Italic-webfont.svg b/docs/fonts/OpenSans-Italic-webfont.svg
deleted file mode 100644
index e1075dc..0000000
--- a/docs/fonts/OpenSans-Italic-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/fonts/OpenSans-Italic-webfont.woff b/docs/fonts/OpenSans-Italic-webfont.woff
deleted file mode 100644
index ff652e6..0000000
Binary files a/docs/fonts/OpenSans-Italic-webfont.woff and /dev/null differ
diff --git a/docs/fonts/OpenSans-Light-webfont.eot b/docs/fonts/OpenSans-Light-webfont.eot
deleted file mode 100644
index 1486840..0000000
Binary files a/docs/fonts/OpenSans-Light-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-Light-webfont.svg b/docs/fonts/OpenSans-Light-webfont.svg
deleted file mode 100644
index 11a472c..0000000
--- a/docs/fonts/OpenSans-Light-webfont.svg
+++ /dev/null
@@ -1,1831 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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
-
\ No newline at end of file
diff --git a/docs/fonts/OpenSans-Light-webfont.woff b/docs/fonts/OpenSans-Light-webfont.woff
deleted file mode 100644
index e786074..0000000
Binary files a/docs/fonts/OpenSans-Light-webfont.woff and /dev/null differ
diff --git a/docs/fonts/OpenSans-LightItalic-webfont.eot b/docs/fonts/OpenSans-LightItalic-webfont.eot
deleted file mode 100644
index 8f44592..0000000
Binary files a/docs/fonts/OpenSans-LightItalic-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-LightItalic-webfont.svg b/docs/fonts/OpenSans-LightItalic-webfont.svg
deleted file mode 100644
index 431d7e3..0000000
--- a/docs/fonts/OpenSans-LightItalic-webfont.svg
+++ /dev/null
@@ -1,1835 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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onts/OpenSans-LightItalic-webfont.woff
deleted file mode 100644
index 43e8b9e..0000000
Binary files a/docs/fonts/OpenSans-LightItalic-webfont.woff and /dev/null differ
diff --git a/docs/fonts/OpenSans-Regular-webfont.eot b/docs/fonts/OpenSans-Regular-webfont.eot
deleted file mode 100644
index 6bbc3cf..0000000
Binary files a/docs/fonts/OpenSans-Regular-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-Regular-webfont.svg b/docs/fonts/OpenSans-Regular-webfont.svg
deleted file mode 100644
index 25a3952..0000000
--- a/docs/fonts/OpenSans-Regular-webfont.svg
+++ /dev/null
@@ -1,1831 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/fonts/OpenSans-Regular-webfont.woff b/docs/fonts/OpenSans-Regular-webfont.woff
deleted file mode 100644
index e231183..0000000
Binary files a/docs/fonts/OpenSans-Regular-webfont.woff and /dev/null differ
diff --git a/docs/fonts/OpenSans-Semibold-webfont.eot b/docs/fonts/OpenSans-Semibold-webfont.eot
deleted file mode 100755
index d8375dd..0000000
Binary files a/docs/fonts/OpenSans-Semibold-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-Semibold-webfont.svg b/docs/fonts/OpenSans-Semibold-webfont.svg
deleted file mode 100755
index eec4db8..0000000
--- a/docs/fonts/OpenSans-Semibold-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/fonts/OpenSans-Semibold-webfont.ttf b/docs/fonts/OpenSans-Semibold-webfont.ttf
deleted file mode 100755
index b329084..0000000
Binary files a/docs/fonts/OpenSans-Semibold-webfont.ttf and /dev/null differ
diff --git a/docs/fonts/OpenSans-Semibold-webfont.woff b/docs/fonts/OpenSans-Semibold-webfont.woff
deleted file mode 100755
index 28d6ade..0000000
Binary files a/docs/fonts/OpenSans-Semibold-webfont.woff and /dev/null differ
diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.eot b/docs/fonts/OpenSans-SemiboldItalic-webfont.eot
deleted file mode 100755
index 0ab1db2..0000000
Binary files a/docs/fonts/OpenSans-SemiboldItalic-webfont.eot and /dev/null differ
diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.svg b/docs/fonts/OpenSans-SemiboldItalic-webfont.svg
deleted file mode 100755
index 7166ec1..0000000
--- a/docs/fonts/OpenSans-SemiboldItalic-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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ted file mode 100755
index d2d6318..0000000
Binary files a/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf and /dev/null differ
diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.woff b/docs/fonts/OpenSans-SemiboldItalic-webfont.woff
deleted file mode 100755
index d4dfca4..0000000
Binary files a/docs/fonts/OpenSans-SemiboldItalic-webfont.woff and /dev/null differ
diff --git a/docs/global.html b/docs/global.html
deleted file mode 100644
index f8f72f0..0000000
--- a/docs/global.html
+++ /dev/null
@@ -1,363 +0,0 @@
-
-
-
-
-
- Global - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
Global
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Members
-
-
-
-
-
(constant) Constants
-
-
-
-
-
- MIDI file format constants.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
-
-
-
scale14bits(fields) → {PitchBendEvent}
-
-
-
-
-
-
- Holds all data for a "Pitch Bend" MIDI event
-[ -1.0, 0, 1.0 ] -> [ 0, 8192, 16383]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- fields
-
-
-
-
-
-object
-
-
-
-
-
-
-
-
-
-
- { bend : float, channel : int, delta: int }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Returns:
-
-
-
-
-
- Type:
-
-
-
-PitchBendEvent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/header-chunk.js.html b/docs/header-chunk.js.html
deleted file mode 100644
index 48ee545..0000000
--- a/docs/header-chunk.js.html
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
- header-chunk.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
header-chunk.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a header chunk section of a MIDI file.
- * @param {number} numberOfTracks - Number of tracks
- * @return {HeaderChunk}
- */
-class HeaderChunk {
- constructor(numberOfTracks) {
- this.type = Constants.HEADER_CHUNK_TYPE;
-
- const trackType = numberOfTracks > 1 ? Constants.HEADER_CHUNK_FORMAT1 : Constants.HEADER_CHUNK_FORMAT0;
-
- this.data = trackType.concat(
- Utils.numberToBytes(numberOfTracks, 2), // two bytes long,
- Constants.HEADER_CHUNK_DIVISION
- );
-
- this.size = [0, 0, 0, this.data.length];
- }
-}
-
-export {HeaderChunk};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/index.html b/docs/index.html
deleted file mode 100644
index 4be6726..0000000
--- a/docs/index.html
+++ /dev/null
@@ -1,242 +0,0 @@
-
-
-
-
-
- Home - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ♬ MidiWriterJS
-
-
-
-MidiWriterJS is a JavaScript library providing an API for generating expressive multi-track MIDI files.
-Note that the master
branch is in active development so if you're looking for a tried and true stable version please use the latest release.
-Source Documentation
-Install
-npm install midi-writer-js
-
-Getting Started
-import MidiWriter from 'midi-writer-js';
-
-// Start with a new track
-const track = new MidiWriter.Track();
-
-// Define an instrument (optional):
-track.addEvent(new MidiWriter.ProgramChangeEvent({instrument: 1}));
-
-// Add some notes:
-const note = new MidiWriter.NoteEvent({pitch: ['C4', 'D4', 'E4'], duration: '4'});
-track.addEvent(note);
-
-// Generate a data URI
-const write = new MidiWriter.Writer(track);
-console.log(write.dataUri());
-
-Documentation
-MidiWriter.Track()
-
-addEvent({event}, mapFunction)
-setTempo(tempo)
-addText(text)
-addCopyright(text)
-addTrackName(text)
-addInstrumentName(text)
-addMarker(text)
-addCuePoint(text)
-addLyric(text)
-setTimeSignature(numerator, denominator)
-
-MidiWriter.NoteEvent({options})
-The NoteEvent
supports these options:
-
-
-
- Name
- Type
- Default
- Description
-
-
-
-
- pitch
- string or array
-
- Each pitch can be a string or valid MIDI note code. Format for string is C#4
. Pro tip: You can use the output from tonal functions to build scales, chords, intervals, etc. in this parameter.
-
-
- duration
- string or array
-
-
- How long the note should sound.
-
- 1
: whole
- 2
: half
- d2
: dotted half
- dd2
: double dotted half
- 4
: quarter
- 4t
: quarter triplet
- d4
: dotted quarter
- dd4
: double dotted quarter
- 8
: eighth
- 8t
: eighth triplet
- d8
: dotted eighth
- dd8
: double dotted eighth
- 16
: sixteenth
- 16t
: sixteenth triplet
- 32
: thirty-second
- 64
: sixty-fourth
- Tn
: where n is an explicit number of ticks (T128 = 1 beat)
-
- If an array of durations is passed then the sum of the durations will be used.
-
-
-
- wait
- string or array
- 0
- How long to wait before sounding note (rest). Takes same values as duration .
-
-
- sequential
- boolean
- false
- If true then array of pitches will be played sequentially as opposed to simulatanously.
-
-
- velocity
- number
- 50
- How loud the note should sound, values 1-100.
-
-
- repeat
- number
- 1
- How many times this event should be repeated.
-
-
- channel
- number
- 1
- MIDI channel to use.
-
-
- grace
- string or array
-
- Grace note to be applied to note event. Takes same value format as pitch
-
-
- startTick
- number
-
- Specific tick where this event should be played. If this parameter is supplied then wait
is disregarded if also supplied.
-
-
-
-MidiWriter.Writer(tracks)
-The Writer
class provides a few ways to output the file:
-
-buildFile()
Uint8Array
-base64()
string
-dataUri()
string
-stdout()
file stream (cli)
-
-Hot Cross Buns
-Here's an example of how everyone's favorite song "Hot Cross Buns" could be written. Note use of the mapping function passed as the second argument of addEvent()
. This can be used to apply specific properties to all events. With some
-street smarts you could also use it for programmatic crescendos and other property 'animation'.
-import MidiWriter from 'midi-writer-js';
-
-const track = new MidiWriter.Track();
-
-track.addEvent([
- new MidiWriter.NoteEvent({pitch: ['E4','D4'], duration: '4'}),
- new MidiWriter.NoteEvent({pitch: ['C4'], duration: '2'}),
- new MidiWriter.NoteEvent({pitch: ['E4','D4'], duration: '4'}),
- new MidiWriter.NoteEvent({pitch: ['C4'], duration: '2'}),
- new MidiWriter.NoteEvent({pitch: ['C4', 'C4', 'C4', 'C4', 'D4', 'D4', 'D4', 'D4'], duration: '8'}),
- new MidiWriter.NoteEvent({pitch: ['E4','D4'], duration: '4'}),
- new MidiWriter.NoteEvent({pitch: ['C4'], duration: '2'})
- ], function(event, index) {
- return {sequential: true};
- }
-);
-
-const write = new MidiWriter.Writer(track);
-console.log(write.dataUri());
-
-VexFlow Integration
-MidiWriterJS can export MIDI from VexFlow voices, though this feature is still experimental. Current usage is to use MidiWriter.VexFlow.trackFromVoice(voice)
to create a MidiWriterJS Track
object:
-
-// ...VexFlow code defining notes
-const voice = create_4_4_voice().addTickables(notes);
-
-const vexWriter = new MidiWriter.VexFlow();
-const track = vexWriter.trackFromVoice(voice);
-const writer = new MidiWriter.Writer([track]);
-console.log(writer.dataUri());
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/instrument-name-event.js.html b/docs/instrument-name-event.js.html
deleted file mode 100644
index 033b4f1..0000000
--- a/docs/instrument-name-event.js.html
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
- instrument-name-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
instrument-name-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of an instrument name meta event.
- * @param {number} bpm - Beats per minute
- * @return {InstrumentNameEvent}
- */
-class InstrumentNameEvent {
- constructor(text) {
- this.type = 'instrument-name';
-
- const textBytes = Utils.stringToBytes(text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_INSTRUMENT_NAME_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Instrument name
- );
- }
-}
-
-export {InstrumentNameEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/lyric-event.js.html b/docs/lyric-event.js.html
deleted file mode 100644
index 0557f46..0000000
--- a/docs/lyric-event.js.html
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
- lyric-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C HeaderChunk C LyricEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
lyric-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a lyric meta event.
- * @param {string} text - Lyric text
- * @return {LyricEvent}
- */
-class LyricEvent {
- constructor(text) {
- this.type = 'marker';
-
- const textBytes = Utils.stringToBytes(text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_LYRIC_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {LyricEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 23:00:38 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/marker-event.js.html b/docs/marker-event.js.html
deleted file mode 100644
index 7e76346..0000000
--- a/docs/marker-event.js.html
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
- marker-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
marker-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a marker meta event.
- * @param {string} text - Marker text
- * @return {MarkerEvent}
- */
-class MarkerEvent {
- constructor(text) {
- this.type = 'marker';
-
- const textBytes = Utils.stringToBytes(text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_MARKER_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {MarkerEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-event.js.html b/docs/meta-event.js.html
deleted file mode 100644
index 63011e1..0000000
--- a/docs/meta-event.js.html
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
- meta-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
meta-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a meta event.
- * @param {object} fields - type, data
- * @return {MetaEvent}
- */
-class MetaEvent {
- constructor(fields) {
- this.type = 'meta';
- this.data = Utils.numberToVariableLength(0x00);// Start with zero time delta
- this.data = this.data.concat(Constants.META_EVENT_ID, fields.data);
- }
-}
-
-export {MetaEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_controller-change-event.js.html b/docs/meta-events_controller-change-event.js.html
deleted file mode 100644
index 9a9f480..0000000
--- a/docs/meta-events_controller-change-event.js.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
- meta-events/controller-change-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/controller-change-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils.js';
-
-/**
- * Holds all data for a "controller change" MIDI event
- * @param {object} fields {controllerNumber: integer, controllerValue: integer, delta: integer}
- * @return {ControllerChangeEvent}
- */
-class ControllerChangeEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'controller';
- // delta time defaults to 0.
- this.data = Utils.numberToVariableLength(fields.delta).concat(Constants.CONTROLLER_CHANGE_STATUS, fields.controllerNumber, fields.controllerValue);
- }
-}
-
-export {ControllerChangeEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_copyright-event.js.html b/docs/meta-events_copyright-event.js.html
deleted file mode 100644
index 02c5f05..0000000
--- a/docs/meta-events_copyright-event.js.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- meta-events/copyright-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/copyright-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a tempo meta event.
- * @param {object} fields {text: string, delta: integer}
- * @return {CopyrightEvent}
- */
-class CopyrightEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'copyright';
-
- const textBytes = Utils.stringToBytes(fields.text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_COPYRIGHT_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {CopyrightEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_cue-point-event.js.html b/docs/meta-events_cue-point-event.js.html
deleted file mode 100644
index bb493bd..0000000
--- a/docs/meta-events_cue-point-event.js.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- meta-events/cue-point-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/cue-point-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a cue point meta event.
- * @param {object} fields {text: string, delta: integer}
- * @return {CuePointEvent}
- */
-class CuePointEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'cue-point';
-
- const textBytes = Utils.stringToBytes(fields.text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_CUE_POINT,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {CuePointEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_end-track-event.js.html b/docs/meta-events_end-track-event.js.html
deleted file mode 100644
index 447b89d..0000000
--- a/docs/meta-events_end-track-event.js.html
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
- meta-events/end-track-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/end-track-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a end track meta event.
- * @param {object} fields {delta: integer}
- * @return {EndTrackEvent}
- */
-class EndTrackEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'end-track';
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_END_OF_TRACK_ID
- );
- }
-}
-
-export {EndTrackEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_instrument-name-event.js.html b/docs/meta-events_instrument-name-event.js.html
deleted file mode 100644
index 67b82b9..0000000
--- a/docs/meta-events_instrument-name-event.js.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- meta-events/instrument-name-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/instrument-name-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of an instrument name meta event.
- * @param {object} fields {text: string, delta: integer}
- * @return {InstrumentNameEvent}
- */
-class InstrumentNameEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'instrument-name';
-
- const textBytes = Utils.stringToBytes(fields.text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_INSTRUMENT_NAME_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Instrument name
- );
- }
-}
-
-export {InstrumentNameEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_key-signature-event.js.html b/docs/meta-events_key-signature-event.js.html
deleted file mode 100644
index 69af62a..0000000
--- a/docs/meta-events_key-signature-event.js.html
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
-
- meta-events/key-signature-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/key-signature-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a key signature meta event.
- * @return {KeySignatureEvent}
- */
-class KeySignatureEvent {
- constructor(sf, mi) {
- this.type = 'key-signature';
-
- var mode = mi || 0;
- sf = sf || 0;
-
- // Function called with string notation
- if (typeof mi === 'undefined') {
- var fifths = [
- ['Cb', 'Gb', 'Db', 'Ab', 'Eb', 'Bb', 'F', 'C', 'G', 'D', 'A', 'E', 'B', 'F#', 'C#'],
- ['ab', 'eb', 'bb', 'f', 'c', 'g', 'd', 'a', 'e', 'b', 'f#', 'c#', 'g#', 'd#', 'a#']
- ];
- var _sflen = sf.length;
- var note = sf || 'C';
-
- if (sf[0] === sf[0].toLowerCase()) mode = 1
-
- if (_sflen > 1) {
- switch (sf.charAt(_sflen - 1)) {
- case 'm':
- mode = 1;
- note = sf.charAt(0).toLowerCase();
- note = note.concat(sf.substring(1, _sflen - 1));
- break;
- case '-':
- mode = 1;
- note = sf.charAt(0).toLowerCase();
- note = note.concat(sf.substring(1, _sflen - 1));
- break;
- case 'M':
- mode = 0;
- note = sf.charAt(0).toUpperCase();
- note = note.concat(sf.substring(1, _sflen - 1));
- break;
- case '+':
- mode = 0;
- note = sf.charAt(0).toUpperCase();
- note = note.concat(sf.substring(1, _sflen - 1));
- break;
- }
- }
-
- var fifthindex = fifths[mode].indexOf(note);
- sf = fifthindex === -1 ? 0 : fifthindex - 7;
- }
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_KEY_SIGNATURE_ID,
- [0x02], // Size
- Utils.numberToBytes(sf, 1), // Number of sharp or flats ( < 0 flat; > 0 sharp)
- Utils.numberToBytes(mode, 1), // Mode: 0 major, 1 minor
- );
- }
-}
-
-export {KeySignatureEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_lyric-event.js.html b/docs/meta-events_lyric-event.js.html
deleted file mode 100644
index a52c51b..0000000
--- a/docs/meta-events_lyric-event.js.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- meta-events/lyric-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/lyric-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a lyric meta event.
- * @param {object} fields {text: string, delta: integer}
- * @return {LyricEvent}
- */
-class LyricEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'lyric';
-
- const textBytes = Utils.stringToBytes(fields.text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_LYRIC_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {LyricEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_marker-event.js.html b/docs/meta-events_marker-event.js.html
deleted file mode 100644
index e37fbda..0000000
--- a/docs/meta-events_marker-event.js.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- meta-events/marker-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/marker-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a marker meta event.
- * @param {object} fields {text: string, delta: integer}
- * @return {MarkerEvent}
- */
-class MarkerEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'marker';
-
- const textBytes = Utils.stringToBytes(fields.text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_MARKER_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {MarkerEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_pitch-bend-event.js.html b/docs/meta-events_pitch-bend-event.js.html
deleted file mode 100644
index deb7520..0000000
--- a/docs/meta-events_pitch-bend-event.js.html
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
-
- meta-events/pitch-bend-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/pitch-bend-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Holds all data for a "Pitch Bend" MIDI event
- * [ -1.0, 0, 1.0 ] -> [ 0, 8192, 16383]
- * @param {object} fields { bend : float, channel : int, delta: int }
- * @return {PitchBendEvent}
- */
-const scale14bits = (zeroOne) => {
- if ( zeroOne <= 0 ) {
- return Math.floor( 16384 * ( zeroOne + 1 ) / 2 );
- }
-
- return Math.floor( 16383 * ( zeroOne + 1 ) / 2 );
-}
-
-class PitchBendEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'pitch-bend';
-
- let bend14 = scale14bits(fields.bend);
- let channel = fields.channel || 0;
-
- let lsbValue = bend14 & 0x7f;
- let msbValue = ( bend14 >> 7 ) & 0x7f;
- this.data = Utils.numberToVariableLength(fields.delta).concat(Constants.PITCH_BEND_STATUS | channel, lsbValue, msbValue);
- }
-}
-
-export {PitchBendEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_program-change-event.js.html b/docs/meta-events_program-change-event.js.html
deleted file mode 100644
index a5d2dd6..0000000
--- a/docs/meta-events_program-change-event.js.html
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
- meta-events/program-change-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/program-change-event.js
-
-
-
-
-
-
-
-
-
- import {Utils} from '../utils';
-
-/**
- * Holds all data for a "program change" MIDI event
- * @param {object} fields {instrument: integer, delta: integer}
- * @return {ProgramChangeEvent}
- */
-class ProgramChangeEvent {
- constructor(fields) {
- // Set default fields
- this.fields = Object.assign({
- channel: 1,
- delta: 0x00,
- }, fields);
-
- this.type = 'program';
- // delta time defaults to 0.
- this.data = Utils.numberToVariableLength(this.fields.delta).concat(this.getStatusByte(), this.fields.instrument);
- }
-
-
- /**
- * Gets the status code based on the selected channel. 0xC{0-F}
- * Program change status byte for channel 0 is 0xC0 (192)
- * 0 = Ch 1
- * @return {number}
- */
- getStatusByte() {return 192 + this.fields.channel - 1}
-}
-
-export {ProgramChangeEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_tempo-event.js.html b/docs/meta-events_tempo-event.js.html
deleted file mode 100644
index 45062e8..0000000
--- a/docs/meta-events_tempo-event.js.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
- meta-events/tempo-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/tempo-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a tempo meta event.
- * @param {object} fields {bpm: integer, delta: integer}
- * @return {TempoEvent}
- */
-class TempoEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'tempo';
-
- this.tick = fields.tick;
-
- const tempo = Math.round(60000000 / fields.bpm);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_TEMPO_ID,
- [0x03], // Size
- Utils.numberToBytes(tempo, 3), // Tempo, 3 bytes
- );
- }
-}
-
-export {TempoEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_text-event.js.html b/docs/meta-events_text-event.js.html
deleted file mode 100644
index a1966dc..0000000
--- a/docs/meta-events_text-event.js.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- meta-events/text-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/text-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a tempo meta event.
- * @param {object} fields {text: string, delta: integer}
- * @return {TextEvent}
- */
-class TextEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'text';
-
- const textBytes = Utils.stringToBytes(fields.text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_TEXT_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {TextEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_time-signature-event.js.html b/docs/meta-events_time-signature-event.js.html
deleted file mode 100644
index 7dd49da..0000000
--- a/docs/meta-events_time-signature-event.js.html
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
- meta-events/time-signature-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/time-signature-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a time signature meta event.
- * @return {TimeSignatureEvent}
- */
-class TimeSignatureEvent {
- constructor(numerator, denominator, midiclockspertick, notespermidiclock) {
- this.type = 'time-signature';
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_TIME_SIGNATURE_ID,
- [0x04], // Size
- Utils.numberToBytes(numerator, 1), // Numerator, 1 bytes
- Utils.numberToBytes(Math.log2(denominator), 1), // Denominator is expressed as pow of 2, 1 bytes
- Utils.numberToBytes(midiclockspertick || 24, 1), // MIDI Clocks per tick, 1 bytes
- Utils.numberToBytes(notespermidiclock || 8, 1), // Number of 1/32 notes per MIDI clocks, 1 bytes
- );
- }
-}
-
-export {TimeSignatureEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/meta-events_track-name-event.js.html b/docs/meta-events_track-name-event.js.html
deleted file mode 100644
index bfab2f0..0000000
--- a/docs/meta-events_track-name-event.js.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
- meta-events/track-name-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
meta-events/track-name-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from '../constants';
-import {Utils} from '../utils';
-
-/**
- * Object representation of a tempo meta event.
- * @param {object} fields {text: string, delta: integer}
- * @return {TrackNameEvent}
- */
-class TrackNameEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- delta: 0x00,
- }, fields);
-
- this.type = 'track-name';
-
- const textBytes = Utils.stringToBytes(fields.text);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(fields.delta).concat(
- Constants.META_EVENT_ID,
- Constants.META_TRACK_NAME_ID,
- Utils.numberToVariableLength(textBytes.length), // Size
- textBytes, // Text
- );
- }
-}
-
-export {TrackNameEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/note-event.js.html b/docs/note-event.js.html
deleted file mode 100644
index 8b698d8..0000000
--- a/docs/note-event.js.html
+++ /dev/null
@@ -1,210 +0,0 @@
-
-
-
-
-
- note-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
note-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {NoteOnEvent} from './note-on-event';
-import {NoteOffEvent} from './note-off-event';
-import {Utils} from './utils';
-
-/**
- * Wrapper for noteOnEvent/noteOffEvent objects that builds both events.
- * @param {object} fields - {pitch: '[C4]', duration: '4', wait: '4', velocity: 1-100}
- * @return {NoteEvent}
- */
-class NoteEvent {
- constructor(fields) {
- this.data = [];
- this.type = 'note';
- this.pitch = Utils.toArray(fields.pitch);
- this.wait = fields.wait || 0;
- this.duration = fields.duration;
- this.sequential = fields.sequential || false;
- this.velocity = fields.velocity || 50;
- this.channel = fields.channel || 1;
- this.repeat = fields.repeat || 1;
- this.grace = fields.grace;
- this.startTick = fields.startTick || null;
- this.tickDuration = Utils.getTickDuration(this.duration);
- this.restDuration = Utils.getTickDuration(this.wait);
-
- this.events = []; // Hold actual NoteOn/NoteOff events
- }
-
- /**
- * Builds int array for this event.
- * @return {NoteEvent}
- */
- buildData() {
- // Reset data array
- this.data = [];
-
- var tickDuration = this.tickDuration;
- var restDuration = this.restDuration;
-
- // Apply grace note(s) and subtract ticks (currently 1 tick per grace note) from tickDuration so net value is the same
- if (this.grace) {
- let graceDuration = 1;
- this.grace = Utils.toArray(this.grace);
- this.grace.forEach((pitch) => {
- let noteEvent = new NoteEvent({pitch:this.grace, duration:'T' + graceDuration});
- this.data = this.data.concat(noteEvent.data)
-
- tickDuration -= graceDuration;
- });
- }
-
- // fields.pitch could be an array of pitches.
- // If so create note events for each and apply the same duration.
- var noteOn, noteOff;
- // By default this is a chord if it's an array of notes that requires one NoteOnEvent.
- // If this.sequential === true then it's a sequential string of notes that requires separate NoteOnEvents.
- if ( ! this.sequential) {
- // Handle repeat
- for (var j = 0; j < this.repeat; j++) {
- // Note on
- this.pitch.forEach((p, i) => {
- if (i == 0) {
- var noteOnNew = new NoteOnEvent({
- wait: this.wait,
- velocity: this.velocity,
- pitch: p,
- startTick: this.startTick
- });
-
- } else {
- // Running status (can ommit the note on status)
- //noteOn = new NoteOnEvent({data: [0, Utils.getPitch(p), Utils.convertVelocity(this.velocity)]});
- var noteOnNew = new NoteOnEvent({
- wait: 0,
- velocity: this.velocity,
- pitch: p,
- startTick: this.startTick
- });
- }
-
- this.events.push(noteOnNew);
- });
-
- // Note off
- this.pitch.forEach((p, i) => {
- if (i == 0) {
- //noteOff = new NoteOffEvent({data: Utils.numberToVariableLength(tickDuration).concat(this.getNoteOffStatus(), Utils.getPitch(p), Utils.convertVelocity(this.velocity))});
- var noteOffNew = new NoteOffEvent({
- duration: this.duration,
- velocity: this.velocity,
- pitch: p,
- noteOnTick: this.startTick,
- });
-
- } else {
- // Running status (can ommit the note off status)
- //noteOff = new NoteOffEvent({data: [0, Utils.getPitch(p), Utils.convertVelocity(this.velocity)]});
- var noteOffNew = new NoteOffEvent({
- duration: 0,
- velocity: this.velocity,
- pitch: p,
- noteOnTick: this.startTick,
- });
- }
-
- this.events.push(noteOffNew);
- });
- }
-
- } else {
- // Handle repeat
- for (var j = 0; j < this.repeat; j++) {
- this.pitch.forEach((p, i) => {
- // restDuration only applies to first note
- if (i > 0) {
- restDuration = 0;
- }
-
- // If duration is 8th triplets we need to make sure that the total ticks == quarter note.
- // So, the last one will need to be the remainder
- if (this.duration === '8t' && i == this.pitch.length - 1) {
- let quarterTicks = Utils.numberFromBytes(Constants.HEADER_CHUNK_DIVISION);
- tickDuration = quarterTicks - (tickDuration * 2);
- }
-
- var noteOnNew = new NoteOnEvent({
- wait: (i > 0 ? 0 : this.wait), // wait only applies to first note in repetition
- velocity: this.velocity,
- pitch: p,
- startTick: this.startTick,
- });
-
- var noteOffNew = new NoteOffEvent({
- duration: this.duration,
- velocity: this.velocity,
- pitch: p,
- noteOnTick: this.startTick,
- });
-
- this.events.push(noteOnNew, noteOffNew);
- });
- }
- }
-
- return this;
- };
-}
-
-export {NoteEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/note-events_note-event.js.html b/docs/note-events_note-event.js.html
deleted file mode 100644
index 9a0cf50..0000000
--- a/docs/note-events_note-event.js.html
+++ /dev/null
@@ -1,213 +0,0 @@
-
-
-
-
-
- note-events/note-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
note-events/note-event.js
-
-
-
-
-
-
-
-
-
- import {NoteOnEvent} from './note-on-event';
-import {NoteOffEvent} from './note-off-event';
-import {Utils} from '../utils';
-
-/**
- * Wrapper for noteOnEvent/noteOffEvent objects that builds both events.
- * @param {object} fields - {pitch: '[C4]', duration: '4', wait: '4', velocity: 1-100}
- * @return {NoteEvent}
- */
-class NoteEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- channel: 1,
- repeat: 1,
- sequential: false,
- startTick: null,
- velocity: 50,
- wait: 0,
- }, fields);
-
- this.data = [];
- this.type = 'note';
- this.pitch = Utils.toArray(fields.pitch);
-
- this.channel = fields.channel;
- this.duration = fields.duration;
- this.grace = fields.grace;
- this.repeat = fields.repeat;
- this.sequential = fields.sequential;
- this.startTick = fields.startTick;
- this.velocity = fields.velocity;
- this.wait = fields.wait;
-
- this.tickDuration = Utils.getTickDuration(this.duration);
- this.restDuration = Utils.getTickDuration(this.wait);
-
- this.events = []; // Hold actual NoteOn/NoteOff events
- }
-
- /**
- * Builds int array for this event.
- * @return {NoteEvent}
- */
- buildData() {
- // Reset data array
- this.data = [];
-
- // Apply grace note(s) and subtract ticks (currently 1 tick per grace note) from tickDuration so net value is the same
- if (this.grace) {
- let graceDuration = 1;
- this.grace = Utils.toArray(this.grace);
- this.grace.forEach(() => {
- let noteEvent = new NoteEvent({pitch: this.grace, duration:'T' + graceDuration});
- this.data = this.data.concat(noteEvent.data);
- });
- }
-
- // fields.pitch could be an array of pitches.
- // If so create note events for each and apply the same duration.
-
- // By default this is a chord if it's an array of notes that requires one NoteOnEvent.
- // If this.sequential === true then it's a sequential string of notes that requires separate NoteOnEvents.
- if ( ! this.sequential) {
- // Handle repeat
- for (let j = 0; j < this.repeat; j++) {
- // Note on
- this.pitch.forEach((p, i) => {
- let noteOnNew;
-
- if (i == 0) {
- noteOnNew = new NoteOnEvent({
- channel: this.channel,
- wait: this.wait,
- velocity: this.velocity,
- pitch: p,
- startTick: this.startTick
- });
-
- } else {
- // Running status (can ommit the note on status)
- //noteOn = new NoteOnEvent({data: [0, Utils.getPitch(p), Utils.convertVelocity(this.velocity)]});
- noteOnNew = new NoteOnEvent({
- channel: this.channel,
- wait: 0,
- velocity: this.velocity,
- pitch: p,
- startTick: this.startTick
- });
- }
-
- this.events.push(noteOnNew);
- });
-
- // Note off
- this.pitch.forEach((p, i) => {
- let noteOffNew;
-
- if (i == 0) {
- //noteOff = new NoteOffEvent({data: Utils.numberToVariableLength(tickDuration).concat(this.getNoteOffStatus(), Utils.getPitch(p), Utils.convertVelocity(this.velocity))});
- noteOffNew = new NoteOffEvent({
- channel: this.channel,
- duration: this.duration,
- velocity: this.velocity,
- pitch: p,
- tick: this.startTick !== null ? Utils.getTickDuration(this.duration) + this.startTick : null,
- });
-
- } else {
- // Running status (can ommit the note off status)
- //noteOff = new NoteOffEvent({data: [0, Utils.getPitch(p), Utils.convertVelocity(this.velocity)]});
- noteOffNew = new NoteOffEvent({
- channel: this.channel,
- duration: 0,
- velocity: this.velocity,
- pitch: p,
- tick: this.startTick !== null ? Utils.getTickDuration(this.duration) + this.startTick : null,
- });
- }
-
- this.events.push(noteOffNew);
- });
- }
-
- } else {
- // Handle repeat
- for (let j = 0; j < this.repeat; j++) {
- this.pitch.forEach((p, i) => {
- const noteOnNew = new NoteOnEvent({
- channel: this.channel,
- wait: (i > 0 ? 0 : this.wait), // wait only applies to first note in repetition
- velocity: this.velocity,
- pitch: p,
- startTick: this.startTick,
- });
-
- const noteOffNew = new NoteOffEvent({
- channel: this.channel,
- duration: this.duration,
- velocity: this.velocity,
- pitch: p,
- });
-
- this.events.push(noteOnNew, noteOffNew);
- });
- }
- }
-
- return this;
- }
-}
-
-export {NoteEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/note-events_note-off-event.js.html b/docs/note-events_note-off-event.js.html
deleted file mode 100644
index 928a406..0000000
--- a/docs/note-events_note-off-event.js.html
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-
-
-
- note-events/note-off-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
note-events/note-off-event.js
-
-
-
-
-
-
-
-
-
- import {Utils} from '../utils';
-
-/**
- * Holds all data for a "note off" MIDI event
- * @param {object} fields {data: []}
- * @return {NoteOffEvent}
- */
-class NoteOffEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- channel: 1,
- velocity: 50,
- tick: null,
- }, fields);
-
- this.type = 'note-off';
- this.channel = fields.channel;
- this.pitch = fields.pitch;
- this.duration = fields.duration;
- this.velocity = fields.velocity;
-
- this.tick = fields.tick;
- this.delta = Utils.getTickDuration(this.duration);
- this.data = fields.data;
- }
-
- /**
- * Builds int array for this event.
- * @param {Track} track - parent track
- * @return {NoteOffEvent}
- */
- buildData(track, precisionDelta, options = {}) {
- if (this.tick === null) {
- this.tick = Utils.getRoundedIfClose(this.delta + track.tickPointer);
- }
-
- this.deltaWithPrecisionCorrection = Utils.getRoundedIfClose(this.delta - precisionDelta);
-
- this.data = Utils.numberToVariableLength(this.deltaWithPrecisionCorrection)
- .concat(
- this.getStatusByte(),
- Utils.getPitch(this.pitch, options.middleC),
- Utils.convertVelocity(this.velocity)
- );
-
- return this;
- }
-
- /**
- * Gets the note off status code based on the selected channel. 0x8{0-F}
- * Note off at channel 0 is 0x80 (128)
- * 0 = Ch 1
- * @return {number}
- */
- getStatusByte() {return 128 + this.channel - 1}
-}
-
-export {NoteOffEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/note-events_note-on-event.js.html b/docs/note-events_note-on-event.js.html
deleted file mode 100644
index 114d8e8..0000000
--- a/docs/note-events_note-on-event.js.html
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
-
- note-events/note-on-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C KeySignatureEvent C LyricEvent C MarkerEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent F getStatusByte C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F controllerChange F mergeSingleEvent F mergeTrack F polyModeOn F removeEventsByType F setKeySignature F setPitchBend F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getPrecisionLoss F getRoundedIfClose F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildData F buildFile F dataUri F setOption F stdout Globals M Constants F scale14bits
-
-
-
-
-
note-events/note-on-event.js
-
-
-
-
-
-
-
-
-
- import {Utils} from '../utils';
-
-/**
- * Holds all data for a "note on" MIDI event
- * @param {object} fields {data: []}
- * @return {NoteOnEvent}
- */
-class NoteOnEvent {
- constructor(fields) {
- // Set default fields
- fields = Object.assign({
- channel: 1,
- startTick: null,
- velocity: 50,
- wait: 0,
- }, fields);
-
- this.type = 'note-on';
- this.channel = fields.channel;
- this.pitch = fields.pitch;
- this.wait = fields.wait;
- this.velocity = fields.velocity;
- this.startTick = fields.startTick;
-
- this.tick = null;
- this.delta = null;
- this.data = fields.data;
- }
-
- /**
- * Builds int array for this event.
- * @param {Track} track - parent track
- * @return {NoteOnEvent}
- */
- buildData(track, precisionDelta, options = {}) {
- this.data = [];
-
- // Explicitly defined startTick event
- if (this.startTick) {
- this.tick = Utils.getRoundedIfClose(this.startTick);
-
- // If this is the first event in the track then use event's starting tick as delta.
- if (track.tickPointer == 0) {
- this.delta = this.tick;
- }
-
- } else {
- this.delta = Utils.getTickDuration(this.wait);
- this.tick = Utils.getRoundedIfClose(track.tickPointer + this.delta);
- }
-
- this.deltaWithPrecisionCorrection = Utils.getRoundedIfClose(this.delta - precisionDelta);
-
- this.data = Utils.numberToVariableLength(this.deltaWithPrecisionCorrection)
- .concat(
- this.getStatusByte(),
- Utils.getPitch(this.pitch, options.middleC),
- Utils.convertVelocity(this.velocity)
- );
-
- return this;
- }
-
- /**
- * Gets the note on status code based on the selected channel. 0x9{0-F}
- * Note on at channel 0 is 0x90 (144)
- * 0 = Ch 1
- * @return {number}
- */
- getStatusByte() {return 144 + this.channel - 1}
-}
-
-export {NoteOnEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.6.10 on Wed Dec 07 2022 23:32:46 GMT-0800 (Pacific Standard Time) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/note-off-event.js.html b/docs/note-off-event.js.html
deleted file mode 100644
index 094fb32..0000000
--- a/docs/note-off-event.js.html
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
- note-off-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
note-off-event.js
-
-
-
-
-
-
-
-
-
- import {Utils} from './utils';
-
-/**
- * Holds all data for a "note off" MIDI event
- * @param {object} fields {data: []}
- * @return {NoteOffEvent}
- */
-class NoteOffEvent {
- constructor(fields) {
- this.type = 'note-off';
- this.channel = fields.channel || 1;
- this.pitch = fields.pitch;
- this.duration = fields.duration;
- this.velocity = fields.velocity || 50;
- this.noteOnTick = fields.noteOnTick || null;
-
- this.midiNumber = Utils.getPitch(this.pitch);
- this.tick = null;
- this.delta = Utils.getTickDuration(this.duration);
- this.data = fields.data;
- }
-
- /**
- * Builds int array for this event.
- * @return {NoteOffEvent}
- */
- buildData(track, eventIndex) {
- if (this.noteOnTick) {
- this.tick = this.noteOnTick + Utils.getTickDuration(this.duration);
-
- } else {
- this.tick = this.delta + track.tickPointer;
- }
-
- this.data = Utils.numberToVariableLength(this.delta)
- .concat(
- this.getStatusByte(),
- this.midiNumber,
- Utils.convertVelocity(this.velocity)
- );
-
- return this;
- }
-
- /**
- * Gets the note off status code based on the selected channel. 0x8{0-F}
- * Note off at channel 0 is 0x80 (128)
- * 0 = Ch 1
- * @return {number}
- */
- getStatusByte() {return 128 + this.channel - 1}
-}
-
-export {NoteOffEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/note-on-event.js.html b/docs/note-on-event.js.html
deleted file mode 100644
index 61e0db7..0000000
--- a/docs/note-on-event.js.html
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
- note-on-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
note-on-event.js
-
-
-
-
-
-
-
-
-
- import {Utils} from './utils';
-
-/**
- * Holds all data for a "note on" MIDI event
- * @param {object} fields {data: []}
- * @return {NoteOnEvent}
- */
-class NoteOnEvent {
- constructor(fields) {
- this.type = 'note-on';
- this.channel = fields.channel || 1;
- this.pitch = fields.pitch;
- this.wait = fields.wait || 0;
- this.velocity = fields.velocity || 50;
- this.startTick = fields.startTick || null;
-
- this.midiNumber = Utils.getPitch(this.pitch);
- this.tick = null;
- this.delta = null;
- this.data = fields.data;
- }
-
- /**
- * Builds int array for this event.
- * @return {NoteOnEvent}
- */
- buildData(track, eventIndex) {
- this.data = [];
-
- // Explicitly defined startTick event
- if (this.startTick) {
- this.tick = this.startTick;
-
- // If this is the first event in the track then use event's starting tick as delta.
- if (track.tickPointer == 0) {
- this.delta = this.tick;
- }
-
- } else {
- this.delta = Utils.getTickDuration(this.wait);
- this.tick = track.tickPointer + this.delta;
- }
-
- this.data = Utils.numberToVariableLength(this.delta)
- .concat(
- this.getStatusByte(),
- this.midiNumber,
- Utils.convertVelocity(this.velocity)
- );
-
- return this;
- }
-
- /**
- * Gets the note on status code based on the selected channel. 0x9{0-F}
- * Note on at channel 0 is 0x90 (144)
- * 0 = Ch 1
- * @return {number}
- */
- getStatusByte() {return 144 + this.channel - 1}
-}
-
-export {NoteOnEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/program-change-event.js.html b/docs/program-change-event.js.html
deleted file mode 100644
index 59d241d..0000000
--- a/docs/program-change-event.js.html
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
- program-change-event.js - Documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
program-change-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Holds all data for a "program change" MIDI event
- * @param {object} fields {instrument: integer}
- * @return {ProgramChangeEvent}
- */
-class ProgramChangeEvent {
- constructor(fields) {
- this.type = 'program';
- // delta time defaults to 0.
- this.data = Utils.numberToVariableLength(0x00).concat(Constants.PROGRAM_CHANGE_STATUS, fields.instrument);
- }
-}
-
-export {ProgramChangeEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-
diff --git a/docs/scripts/linenumber.js b/docs/scripts/linenumber.js
deleted file mode 100644
index 8d52f7e..0000000
--- a/docs/scripts/linenumber.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*global document */
-(function() {
- var source = document.getElementsByClassName('prettyprint source linenums');
- var i = 0;
- var lineNumber = 0;
- var lineId;
- var lines;
- var totalLines;
- var anchorHash;
-
- if (source && source[0]) {
- anchorHash = document.location.hash.substring(1);
- lines = source[0].getElementsByTagName('li');
- totalLines = lines.length;
-
- for (; i < totalLines; i++) {
- lineNumber++;
- lineId = 'line' + lineNumber;
- lines[i].id = lineId;
- if (lineId === anchorHash) {
- lines[i].className += ' selected';
- }
- }
- }
-})();
diff --git a/docs/scripts/prettify/Apache-License-2.0.txt b/docs/scripts/prettify/Apache-License-2.0.txt
deleted file mode 100644
index d645695..0000000
--- a/docs/scripts/prettify/Apache-License-2.0.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/docs/scripts/prettify/lang-css.js b/docs/scripts/prettify/lang-css.js
deleted file mode 100644
index 041e1f5..0000000
--- a/docs/scripts/prettify/lang-css.js
+++ /dev/null
@@ -1,2 +0,0 @@
-PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com",
-/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);
diff --git a/docs/scripts/prettify/prettify.js b/docs/scripts/prettify/prettify.js
deleted file mode 100644
index eef5ad7..0000000
--- a/docs/scripts/prettify/prettify.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
-(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
-[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
-l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
-q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
-q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
-"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
-a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
-for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
-"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
-H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
-J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
-I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Home Classes C ControllerChangeEvent C CopyrightEvent C CuePointEvent C EndTrackEvent C HeaderChunk C InstrumentNameEvent C LyricEvent C MarkerEvent C MetaEvent C NoteEvent F buildData C NoteOffEvent F buildData F getStatusByte C NoteOnEvent F buildData F getStatusByte C ProgramChangeEvent C TempoEvent C TextEvent C TimeSignatureEvent C Track F addCopyright F addCuePoint F addEvent F addInstrumentName F addLyric F addMarker F addText F addTrackName F buildData F polyModeOn F removeEventsByType F setKeySignature F setTempo F setTimeSignature C TrackNameEvent C Utils F convertVelocity F getDurationMultiplier F getPitch F getTickDuration F isNumeric F numberFromBytes F numberToBytes F numberToVariableLength F stringByteCount F stringToBytes F toArray F version C Writer F base64 F buildFile F dataUri F saveMIDI F stdout Globals M Constants
-
-
-
-
-
tempo-event.js
-
-
-
-
-
-
-
-
-
- import {Constants} from './constants';
-import {Utils} from './utils';
-
-/**
- * Object representation of a tempo meta event.
- * @param {number} bpm - Beats per minute
- * @return {TempoEvent}
- */
-class TempoEvent {
- constructor(bpm) {
- this.type = 'tempo';
-
- const tempo = Math.round(60000000 / bpm);
-
- // Start with zero time delta
- this.data = Utils.numberToVariableLength(0x00).concat(
- Constants.META_EVENT_ID,
- Constants.META_TEMPO_ID,
- [0x03], // Size
- Utils.numberToBytes(tempo, 3), // Tempo, 3 bytes
- );
- }
-}
-
-export {TempoEvent};
-
-
-
-
-
-
-
-
-
-
-
-
- Generated by JSDoc 3.5.5 on Sun Jan 20 2019 22:51:58 GMT-0800 (PST) using the Minami theme.
-
-
-
-
-
-