Skip to content

Conversation

@jmiceo
Copy link

@jmiceo jmiceo commented Nov 20, 2025

Description

Supposedly since version 12.0.5, Ableton exposes functions for creating audio & midi clips on tracks directly. LOM documentation indeed mentions track.create_audio_clip and track.create_midi_clip. I saw some chatter about this functionality and wanted to propose a very simple implementation.

potentially resolves #123

Usage

With these changes, adding clips is trivial.

/live/track/create_audio_clip 1 "C:/test.wav" 0
/live/track/create_midi_clip 2 0 10

Checklist

  • The title is descriptive and summarises the new changes
  • The code and any comments are consistent with the current code style
  • For any new or modified API endpoints, I have added appropriate documentation to README.md
  • For any new or modified API endpoints, I have added unit tests covering the new functionality
  • I have verified that all unit tests pass (see CONTRIBUTING.md for guidance)

The create_audio_track requires an absolute path to an audio file which adds complexity to writing tests.

@jmiceo jmiceo changed the title Add "create_audio_clip" and create_midi_clip handler for tracks Add "create_audio_clip" and "create_midi_clip" handler for tracks Nov 20, 2025
@ideoforms
Copy link
Owner

Hi @jmiceo, that's great, thanks! I didn't realise that added to Arrangement is possible without using the Browser at all, so it does close #123.

Can you extend the Description field in the README to explicitly state that the clip is added in arrangement view?
I will then get this merged.

@jmiceo
Copy link
Author

jmiceo commented Nov 20, 2025

@ideoforms Done!

Between arrangement_clip interaction and create_audio_track needing an absolute path, I wasn't able to provide unit tests. I might look into arrangement_clip interaction later!

@jmiceo jmiceo requested a review from ideoforms November 20, 2025 11:26
@jmiceo jmiceo marked this pull request as ready for review November 20, 2025 11:26
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.

Browser: Adding Audio Clips

2 participants