home/ atoms/ abletonosc-midi-note-editing

AbletonOSC lets you add, remove, and query MIDI notes in a clip programmatically over OSC

The Clip API’s note-editing commands let an external process (visual host, custom controller, generative system) read and write MIDI notes in any Live MIDI clip. /live/clip/get/notes returns notes in a given pitch/time range as a flat list of (pitch, start_time, duration, velocity, mute) tuples. /live/clip/add/notes adds new notes (one set of 5 values per note, can batch multiple). /live/clip/remove/notes clears notes in a pitch/time window, or all if no range given. Pitches are MIDI indices (0–127), times and durations are floating-point beats. This enables generative composition patterns: algorithmically fill a clip from a visual or external source, listen to the result in Live, and modify in real time.

Examples

Add a C4 note (pitch 60) at beat 0, lasting 0.5 beats, velocity 100: /live/clip/add/notes 0 0 60 0.0 0.5 100 0. Read all notes in clip: /live/clip/get/notes 0 0. Remove everything: /live/clip/remove/notes 0 0 (no range args).

Assessment

Write the OSC message to add two notes: C4 (velocity 80, 1 beat long at beat 0) and E4 (velocity 80, 1 beat long at beat 0) into track 0, clip 0. What does the is_midi_clip query return for an audio clip?

“| /live/clip/add/notes | track_id, clip_id, pitch, start_time, duration, velocity, mute, ... | | Add new MIDI notes to a clip. pitch is MIDI note index, start_time and duration are beats in floats”
corpus · abletonosc-osc-control-interface-for-ableton-live-live-objec · chunk 11