본문으로 건너뛰기
cccskills
무료GitHub에 공개

ableton-lom

Ableton Live Object Model (LOM) API reference for Python Remote Scripts and control surface development.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(18)

  • SKILL.md5.1 KB
  • .gitignore46 B
  • AGENTS.md887 B
  • AUDIT_PLAN.md13.3 KB
  • README.md3.1 KB
  • references/browser.md21.0 KB
  • references/clip.md17.3 KB
  • references/control-surface.md11.5 KB
  • references/device.md38.0 KB
  • references/grooves-tuning.md10.8 KB
  • references/lom-coverage.md3.9 KB
  • references/rack.md17.3 KB
  • references/session.md12.1 KB
  • references/song.md15.6 KB
  • references/specialized-devices.md33.3 KB
  • references/track.md13.3 KB
  • references/views.md17.5 KB
  • scripts/audit_lom_coverage.py2.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Ableton Live Object Model (LOM) API Reference

This skill provides comprehensive documentation for the Ableton Live Python API used in Remote Scripts. The API is accessed through the _Framework.ControlSurface base class and provides programmatic control over every aspect of a Live Set.

Quick Start

from _Framework.ControlSurface import ControlSurface

class MyScript(ControlSurface):
    def __init__(self, c_instance):
        ControlSurface.__init__(self, c_instance)
        self._song = self.song()  # Access the Live Set (Song object)
        app = self.application()  # Access the Application object

Core Objects Hierarchy

Application
├── browser (instruments, sounds, drums, audio_effects, midi_effects)
├── control_surfaces[] → ControlSurface
└── Song (live_set)
    ├── tempo, is_playing, loop, metronome
    ├── tracks[] → Track
    │   ├── clip_slots[] → ClipSlot → Clip
    │   ├── devices[] → Device → DeviceParameter
    │   ├── mixer_device → MixerDevice
    │   └── view → Track.View
    ├── return_tracks[] → Track
    ├── master_track → Track
    ├── scenes[] → Scene
    ├── cue_points[] → CuePoint
    ├── groove_pool → GroovePool → Groove
    ├── tuning_system → TuningSystem
    └── view → Song.View

Reference Files by Domain

Load the appropriate reference file based on what you're working with:

DomainFileUse When
Song & Transportreferences/song.mdWorking with tempo, playback, time signatures, loops, cue points
Tracksreferences/track.mdCreating/modifying tracks, routing, arm/solo/mute, meters
Clips & MIDIreferences/clip.mdCreating clips, adding/editing MIDI notes, clip properties, warping
Devicesreferences/device.mdLoading devices, accessing parameters, device chains
Specialized Devicesreferences/specialized-devices.mdSimpler, Wavetable, Looper, Compressor, EQ8, Drift, etc.
Rack Devicesreferences/rack.mdInstrument/Audio/MIDI/Drum Racks, chains, macros, drum pads
Session Viewreferences/session.mdScenes, clip slots, launching, Session View navigation
Views & UIreferences/views.mdApplication.View, Song.View, Track.View, Clip.View, Device.View
Browserreferences/browser.mdBrowsing/loading instruments, effects, samples, presets
Control Surfacesreferences/control-surface.mdAccessing configured surfaces, grabbing controls/MIDI, SysEx
Grooves & Tuningreferences/grooves-tuning.mdGroove pool, tuning systems
Coverage Checklistreferences/lom-coverage.mdOfficial Cycling '74 LOM object-to-file audit map

Key Concepts

Property Access Modes

  • read-only: Can only get the value
  • read-write: Can get and set the value
  • observable: Can add listeners with add_<property>_listener(callback)

Threading

All state modifications MUST happen on Ableton's main thread:

def modify_state():
    self._song.tempo = 120.0

self.schedule_message(0, modify_state)  # Schedule for main thread

Canonical Paths

Objects are accessed via paths like live_set tracks 0 devices 1 parameters 2. Use these to understand the object hierarchy.

Special root paths include live_set (current Song), live_app (Application), control_surfaces N (configured ControlSurface), and this_device (the Device containing the Max for Live live.path object that receives goto this_device).

Common Patterns

Iterate tracks and clips:

for track in self._song.tracks:
    for slot in track.clip_slots:
        if slot.has_clip:
            clip = slot.clip
            # Work with clip

Add a listener:

def on_tempo_changed():
    self.log_message("Tempo: " + str(self._song.tempo))

self._song.add_tempo_listener(on_tempo_changed)

Access device parameters:

device = track.devices[0]
for param in device.parameters:
    self.log_message(param.name + ": " + str(param.value))

Version Compatibility

This documentation covers Live 12.3. Key version notes:

  • Live 11+: Python 3 required
  • Live 11.0+: GroovePool, Groove classes added
  • Live 12.3+: insert_device(), insert_chain(), AB Compare features added

Important Notes

  1. The API is officially undocumented by Ableton - this reference is based on community documentation from Cycling '74's Max for Live LOM reference
  2. Always test Remote Scripts with a backup of your Live Set
  3. Some operations may cause crashes if called from wrong thread
  4. Observable properties can be used to build reactive UIs

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고