Skip to main content

This is a helper library used by json-to-midi. It handles encoding the individual events in a given track of a midi file

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (1.1.1)
v
createArrayBufferWithDataView

This function takes in a byte length and instantiates an ArrayBuffer and DataView instance

T
CreateArrayBufferWithDataViewFunction

Type def for CreateArrayBufferWithDataViewFunction

v
encodeMidiEvent

Handles encodes the given event originating from a given midi track

T
EncodeMidiEventFactory

Type def for EncodeMidiEventFactory

T
EncodeMidiEventFunction

Type def for EncodeMidiEventFunction

T
EncodeMidiMetaEventWithTextFactory

Type def for EncodeMidiMetaEventWithTextFactory

T
EncodeMidiMetaEventWithTextFunction

Type def for EncodeMidiMetaEventWithTextFunction

f
isMidiChannelPrefixEvent

type guard for a MidiChannelPrefix event object

f
isMidiChannelPressureEvent

type guard for a MidiChannelPressureEvent object

f
isMidiControlChangeEvent

type guard for a MidiControlChangeEvent object

f
isMidiCopyrightNoticeEvent

type guard for a MidiCopyrightNoticeEvent object

f
isMidiCuePointEvent

type guard for a MidiCuePointEvent object

f
isMidiDeviceNameEvent

type guard for a MidiDeviceNameEvent object

f
isMidiEndOfTrackEvent

type guard for a MidiEndOfTrackEvent object

f
isMidiInstrumentNameEvent

type guard for a MidiInstrumentNameEvent object

f
isMidiKeyPressureEvent

type guard for a MidiKeyPressureEvent object

f
isMidiKeySignatureEvent

type guard for a MidiKeySignatureEvent object

f
isMidiLyricEvent

type guard for a MidiLyricEvent object

f
isMidiMarkerEvent

type guard for a MidiMarkerEvent object

f
isMidiMidiPortEvent

type guard for a MidiMidiPortEvent object

f
isMidiNoteOffEvent

type guard for a MidiNoteOffEvent object

f
isMidiNoteOnEvent

type guard for a MidiNoteOnEvent object

f
isMidiPitchBendEvent

type guard for a MidiPitchBendEvent object

f
isMidiProgramChangeEvent

type guard for a MidiProgramChangeEvent object

f
isMidiProgramNameEvent

type guard for a MidiProgramNameEvent object

f
isMidiSequencerSpecificEvent

type guard for a MidiSequencerSpecificEvent object

f
isMidiSetTempoEvent

type guard for a MidiSetTempoEvent object

f
isMidiSmpteOffsetEvent

type guard for a MidiSmpteOffsetEvent object

f
isMidiSysexEvent

type guard for a MidiSysexEvent object

f
isMidiTextEvent

type guard for a MidiTextEvent object

f
isMidiTimeSignatureEvent

type guard for a MidiTimeSignatureEvent object

f
isMidiTrackNameEvent

type guard for a MidiTrackNameEvent object

f
isMidiUnknownTextEvent

type guard for a MidiUnknownTextEvent object

T
JoinArrayBuffersFunction

Type def for JoinArrayBuffersFunction

v
writeVariableLengthQuantity

Writes the length of the array buffer

T
WriteVariableLengthQuantityFactory

Type def for WriteVariableLengthQuantityFactory

T
WriteVariableLengthQuantityFunction

Type def for WriteVariableLengthQuantityFunction