mcp_opendaw_note_stats
Analyze MIDI note statistics in a region—count, pitch range, velocity, duration, density, and pitch class histogram—to compare regions, identify register, or spot robotic velocity.
Instructions
Get comprehensive statistics for notes in a region.
Returns a full statistical profile of the MIDI content:
Note count, pitch range (min/max/span)
Velocity statistics (min/max/mean/median/std)
Duration statistics (min/max/mean in beats)
Density (notes per beat)
Pitch class histogram (how often each of 12 pitch classes appears)
Most common pitches (top 5)
Time span (first note to last note end)
Useful for:
Analyzing imported MIDI before processing
Comparing regions (which has more notes, wider range)
Identifying register (is this bass, mid, or lead?)
Detecting programming issues (all same velocity = robotic)
Feeding data to arrangement decisions
unit_index: AU index. track_index: Note track index. region_index: Region (-1 = first region).
Returns statistics object.
Example: stats = note_stats(0, 0)
stats includes: note_count, pitch_range, velocity_stats, density, pitch_class_histogram
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_index | Yes | ||
| track_index | Yes | ||
| region_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |