Skip to main content
Glama

MIDI File MCP

by xiaolaa2

add_notes_by_index

Insert notes into a MIDI file at a specific track index. Define notes by name, pitch, or MIDI number, and specify timing in seconds or ticks. Modify MIDI compositions with precision.

Instructions

Add notes to midi file by track index

Input Schema

NameRequiredDescriptionDefault
filePathYesAbsoulate File Path to midi file
notesYes
trackIndexYesTrack index number

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filePath": { "description": "Absoulate File Path to midi file", "type": "string" }, "notes": { "items": { "allOf": [ { "anyOf": [ { "additionalProperties": false, "properties": { "name": { "type": "string" }, "type": { "const": "name", "type": "string" } }, "required": [ "type", "name" ], "type": "object" }, { "additionalProperties": false, "properties": { "octave": { "type": "number" }, "pitch": { "type": "string" }, "type": { "const": "pitch", "type": "string" } }, "required": [ "type", "pitch", "octave" ], "type": "object" }, { "additionalProperties": false, "properties": { "midi": { "type": "number" }, "type": { "const": "midi", "type": "string" } }, "required": [ "type", "midi" ], "type": "object" } ] }, { "properties": { "noteOffVelocity": { "type": "number" }, "velocity": { "type": "number" } }, "type": "object" }, { "anyOf": [ { "additionalProperties": false, "properties": { "duration": { "type": "number" }, "time": { "type": "number" }, "timeType": { "const": "seconds", "type": "string" } }, "required": [ "timeType", "time" ], "type": "object" }, { "additionalProperties": false, "properties": { "durationTicks": { "type": "number" }, "ticks": { "type": "number" }, "timeType": { "const": "ticks", "type": "string" } }, "required": [ "timeType", "ticks" ], "type": "object" } ] } ] }, "type": "array" }, "trackIndex": { "description": "Track index number", "type": "number" } }, "required": [ "filePath", "trackIndex", "notes" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiaolaa2/midi-file-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server