Skip to main content
 首页 » 编程设计

python之使用 Ableton Live Python API 创建剪辑

2025年05月04日9youxin

是否可以使用 Python API 以编程方式在 Ableton Live 的 session View 中创建剪辑?

更多背景信息:我正在破解 MIDI Remote Script使用中的 _Framework 类。为了响应事件触发器,我想用新的 MIDI 剪辑填充 ClipSlot。

Live Object Model似乎对 create 操作有相当大的限制——甚至可以在 Ableton Live 中以编程方式创建剪辑吗?

请您参考如下方法:

不确定这是否不受欢迎,但我正在尝试做同样的事情,显然现在可以使用 Live.ClipSlot.ClipSlot.create_clip()

来自 http://julienbayle.net/PythonLiveAPI_documentation/Live9.1.xml (反编译Live 9.1 API)

Live.ClipSlot.ClipSlot.create_clip() Method

create_clip( (ClipSlot)arg1, (float)arg2) -> None :

Creates an empty clip with the given length in the slot. Throws an error when called on non-empty slots or slots in non-MIDI >tracks. C++ signature : void create_clip(TPyHandle,double)