Skip to content

Add get_notes_from_clip and delete_notes_from_clip tools#83

Draft
meleyal wants to merge 1 commit intoahujasid:mainfrom
meleyal:meleyal.get-delete-notes-from-clip
Draft

Add get_notes_from_clip and delete_notes_from_clip tools#83
meleyal wants to merge 1 commit intoahujasid:mainfrom
meleyal:meleyal.get-delete-notes-from-clip

Conversation

@meleyal
Copy link
Copy Markdown

@meleyal meleyal commented Mar 25, 2026

Summary

  • Adds get_notes_from_clip: reads all MIDI notes from a clip, returning each note's pitch, start_time, duration, velocity, and mute — sorted by start time
  • Adds delete_notes_from_clip: removes all MIDI notes from a clip without deleting the clip itself, enabling true overwrite when combined with add_notes_to_clip
  • delete_notes_from_clip is correctly dispatched on Ableton's main thread (alongside add_notes_to_clip) since clip.remove_notes() mutates Live's state

Test plan

  • Create a MIDI clip with some notes
  • Call get_notes_from_clip and verify notes are returned correctly
  • Call delete_notes_from_clip and verify the clip is empty but still exists
  • Call add_notes_to_clip after delete_notes_from_clip to confirm full overwrite works

Adds two new MCP tools:
- get_notes_from_clip: reads all MIDI notes from a clip, returning pitch, start_time, duration, velocity, and mute for each note
- delete_notes_from_clip: removes all MIDI notes from a clip without deleting the clip itself, enabling true overwrite when combined with add_notes_to_clip
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 25, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 33a138d6-7226-480f-b00a-361e143552aa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant