Skip to main content
Glama

Create MIDI note reactive

create_midi_note_reactive

Creates a MIDI note-reactive chain exposing per-note trigger and velocity channels on a Null CHOP for binding to parameters.

Instructions

Build a MIDI note → per-note trigger/velocity chain that exposes bindable channels on a Null CHOP (note0…noteN-1). Unlike learn_control (which binds one CC), this creates a full note-event chain: midiinCHOP → eventCHOP (ADSR envelopes per note) → Null CHOP. Bind any parameter to op('…/notes_out')['note0'] and it pulses with each keypress. source='synthetic' (default) previews without hardware by generating a procedural note pattern — switch to source='device' when a MIDI keyboard is connected. The device path is HARDWARE-GATED (HELD FROM RELEASE until validated with real MIDI gear).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName for the container COMP created inside parent_path. Must be a valid TD identifier.midi_note_reactive
parent_pathNoParent COMP path the self-contained container is created inside./project1
sourceNodevice: a real MIDI In CHOP (hardware-gated; needs a MIDI keyboard/controller — HELD FROM RELEASE until validated with gear). synthetic: a Noise CHOP driving an Event CHOP so it previews without any hardware. Default is synthetic so the chain is immediately visible.synthetic
device_nameNo(device) MIDI device name to filter (e.g. 'Arturia MiniLab mkII'). When omitted the MIDI In CHOP listens on all devices.
notesNoHow many note channels to expose (e.g. 12 = one octave, 128 = full keyboard). Each channel is named note0…noteN-1 on the output Null CHOP.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses in detail what the tool does: creates a chain of midiinCHOP to eventCHOP with ADSR envelopes to Null CHOP, and describes the output behavior with note channels. Annotations (readOnlyHint=false, destructiveHint=false) are consistent with a generative tool, and the description adds specifics beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is brief (6 sentences) and efficiently structured: opens with a clear purpose, contrasts with an alternative, explains the chain, details source options, and adds a critical warning. Every sentence provides value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 5 parameters and no output schema, the description fully explains how the tool works, what it produces (Null CHOP with note channels), the two source modes, and the hardware restriction. No gaps remain for an agent to understand usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage with detailed descriptions for all 5 parameters. The description adds extra context (e.g., hardware gating for device source, preview behavior for synthetic) that enhances understanding, but the schema itself already provides clear semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool builds a MIDI note reactive chain with per-note trigger/velocity, exposing bindable channels on a Null CHOP. It distinguishes itself from 'learn_control' which binds a single CC, making its unique purpose evident.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells when to use this tool (for per-note chains vs. single CC binding), explains both source options ('synthetic' for preview, 'device' for hardware), and warns that the device path is hardware-gated and held from release, guiding appropriate usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/Pantani/tdmcp'

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