UNPKG

@mseep/midi-file-mcp

Version:

A MCP tool for parsing and manipulating MIDI files based on Tone.js

7 lines 248 B
export function getTrackByIndex(midi, trackIndex) { if (trackIndex < 0 || trackIndex >= midi.tracks.length) { throw new Error('Track index out of range'); } return midi.tracks[trackIndex]; } //# sourceMappingURL=obj-utils.js.map