Click on the classes to navigate to their description.

Application

This class represents the Live application. It is reachable by the root path live_app .

Chemin d’accès

live_app

Enfants

view
ACCES : get
Description
control_surfaces
TYPE : list of ControlSurface
ACCES : get, observe
Description

A list of the control surfaces currently selected in Live’s Preferences.
If None is selected in any of the slots or the script is inactive (e.g. when Push2 is selected, but no Push is connected), id 0 will be returned at those indices.

Propriétés

current_dialog_button_count
TYPE : int
ACCES : get
Description

The number of buttons in the current message box.

current_dialog_message
TYPE : symbol
ACCES : get
Description

The text of the current message box (empty if no message box is currently shown).

open_dialog_count
TYPE : int
ACCES : get, observe
Description

The number of dialog boxes shown.

Fonctions

get_bugfix_version

Returns: the 2 in Live 9.1.2.

get_document

Returns: the current Live Set.

get_major_version

Returns: the 9 in Live 9.1.2.

get_minor_version

Returns: the 1 in Live 9.1.2.

press_current_dialog_button

Parameter: index
Press the button with the given index in the current dialog box.

Application.View

This class represents the aspects of the Live application related to viewing the application.

Chemin d’accès

live_app view

Enfants

None

Propriétés

browse_mode
TYPE : bool
ACCES : get, observe
Description

1 = Hot-Swap Mode is active for any target.

focused_document_view
TYPE : unicode
ACCES : get, observe
Description

The name of the currently visible view in the focused Live window (‘Session’ or ‘Arranger’).

Fonctions

available_main_views

Returns: view names [list of symbols].
This is a constant list of view names to be used as an argument when calling other Fonctions: Browser Arranger Session Detail Detail/Clip Detail/DeviceChain .

focus_view

Parameter: view_name
Shows named view and focuses on it. You can also pass an empty view_name “ « , which refers to the Arrangement or Session View (whichever is visible in the main window).

hide_view

Parameter: view_name
Hides the named view. You can also pass an empty view_name “ « , which refers to the Arrangement or Session View (whichever is visible in the main window).

is_view_visible

Parameter: view_name
Returns: [bool] Whether the specified view is currently visible.

scroll_view

Parameters: direction view_name modifier_pressed
direction [int] is 0 = up, 1 = down, 2 = left, 3 = right
modifier_pressed [bool] If view_name is « Arranger » and modifier_pressed is 1 and direction is left or right, then the size of the selected time region is modified, otherwise the position of the playback cursor is moved.
Not all views are scrollable, and not in all directions. Currently, only the Arranger , Browser , Session , and Detail/DeviceChain views can be scrolled.
You can also pass an empty view_name  » «  , which refers to the Arrangement or Session View (whichever view is visible).

show_view

Parameter: view_name

toggle_browse

Displays the device chain and the browser and activates Hot-Swap Mode for the selected device. Calling this function again deactivates Hot-Swap Mode.

zoom_view

Parameter: direction view_name modifier_pressed
direction [int] – 0 = up, 1 = down, 2 = left, 3 = right
modifier_pressed [bool] If view_name is ‘Arrangement’, modifier_pressed is 1, and direction is left or right, then the size of the selected time region is modified, otherwise the position of the playback cursor is moved. If view_name is Arrangement and modifier_pressed is 1 and direction is up or down, then only the height of the highlighted track is changed, otherwise the height of all tracks is changed.
Only the Arrangement and Session Views can be zoomed. For Session View, the behaviour of zoom_view is identical to scroll_view. You can also pass an empty view_name “ « , which refers to the Arrangement or Session View (whichever is visible in the main window).

Song

This class represents a Live Set. The current Live Set is reachable by the root path live_set .

Chemin d’accès

live_set

Enfants

cue_points
TYPE : list of CuePoint
ACCES : get, observe
Description

Cue points are the markers in the Arrangement to which you can jump.

return_tracks
TYPE : list of Track
ACCES : get, observe
Description
scenes
TYPE : list of Scene
ACCES : get, observe
Description
tracks
TYPE : list of Track
ACCES : get, observe
Description
visible_tracks
TYPE : list of Track
ACCES : get, observe
Description

A track is visible if it’s not part of a folded group. If a track is scrolled out of view it’s still considered visible.

master_track
TYPE : Track
ACCES : get
Description
view
TYPE : Song.View
ACCES : get
Description

Propriétés

appointed_device
TYPE : Device
ACCES : get, observe
Description

The appointed device is the one used by a control surface unless the control surface itself chooses which device to use. It is marked by a blue hand.

arrangement_overdub
TYPE : bool
ACCES : get, set, observe
Description

Get/set the state of the MIDI Arrangement Overdub button.

back_to_arranger
TYPE : bool
ACCES : get, set, observe
Description

Get/set the current state of the Back to Arrangement button located in Live’s transport bar (1 = highlighted). This button is used to indicate that the current state of the playback differs from what is stored in the Arrangement.

can_capture_midi
TYPE : bool
ACCES : get, observe
Description

1 = Recently played MIDI material exists that can be captured into a Live Track. See capture_midi.

can_jump_to_next_cue
TYPE : bool
ACCES : get, observe
Description

0 = there is no cue point to the right of the current one, or none at all.

can_jump_to_prev_cue
TYPE : bool
ACCES : get, observe
Description

0 = there is no cue point to the left of the current one, or none at all.

can_redo
TYPE : bool
ACCES : get
Description

1 = there is something in the history to redo.

can_undo
TYPE : bool
ACCES : get
Description

1 = there is something in the history to undo.

clip_trigger_quantization
TYPE : int
ACCES : get, set, observe
Description

Reflects the quantization setting in the transport bar.
0 = None
1 = 8 Bars
2 = 4 Bars
3 = 2 Bars
4 = 1 Bar
5 = 1/2
6 = 1/2T
7 = 1/4
8 = 1/4T
9 = 1/8
10 = 1/8T
11 = 1/16
12 = 1/16T
13 = 1/32

count_in_duration
TYPE : int
ACCES : get, observe
Description

The duration of the Metronome’s Count-In setting as an index, mapped as follows:
0 = None
1 = 1 Bar
2 = 2 Bars
3 = 4 Bars

current_song_time
TYPE : float
ACCES : get, set, observe
Description

The playing position in the Live Set, in beats.

exclusive_arm
TYPE : bool
ACCES : get
Description

Current status of the exclusive Arm option set in the Live preferences.

exclusive_solo
TYPE : bool
ACCES : get
Description

Current status of the exclusive Solo option set in the Live preferences.

groove_amount
TYPE : float
ACCES : get, set, observe
Description

The groove amount from the current Set’s Groove Pool (0. – 1.0).

is_counting_in
TYPE : bool
ACCES : get, observe
Description

1 = the Metronome is currently counting in.

is_playing
TYPE : bool
ACCES : get, set, observe
Description

Get/set if Live’s transport is running.

last_event_time
TYPE : float
ACCES : get
Description

The beat time of the last event (i.e. automation breakpoint, clip end, cue point, loop end) in the Arrangement.

loop
TYPE : bool
ACCES : get, set, observe
Description

Get/set the enabled state of the Arrangement loop.

loop_length
TYPE : float
ACCES : get, set, observe
Description

Arrangement loop length in beats.

loop_start
TYPE : float
ACCES : get, set, observe
Description

Arrangement loop start in beats.

metronome
TYPE : bool
ACCES : get, set, observe
Description

Get/set the enabled state of the metronome.

midi_recording_quantization
TYPE : int
ACCES : get, set, observe
Description

Get/set the current Record Quantization value.
0 = None
1 = 1/4
2 = 1/8
3 = 1/8T
4 = 1/8 + 1/8T
5 = 1/16
6 = 1/16T
7 = 1/16 + 1/16T
8 = 1/32

nudge_down
TYPE : bool
ACCES : get, set, observe
Description

1 = the Tempo Nudge Down button in the transport bar is currently pressed.

nudge_up
TYPE : bool
ACCES : get, set, observe
Description

1 = the Tempo Nudge Up button in the transport bar is currently pressed.

overdub
TYPE : bool
ACCES : get, set, observe
Description

1 = MIDI Arrangement Overdub is enabled in the transport.

punch_in
TYPE : bool
ACCES : get, set, observe
Description

1 = the Punch-In button is enabled in the transport.

punch_out
TYPE : bool
ACCES : get, set, observe
Description

1 = the Punch-Out button is enabled in the transport.

re_enable_automation_enabled
TYPE : bool
ACCES : get, observe
Description

1 = the Re-Enable Automation button is on.

record_mode
TYPE : bool
ACCES : get, set, observe
Description

1 = the Arrangement Record button is on.

root_note
TYPE : int
ACCES : get, set, observe
Description

The root note of the song used for control surfaces. The root note can be a number between 0 and 11, where 0 = C and 11 = B.

scale_name
TYPE : unicode
ACCES : get, set, observe
Description

The last used scale name used for control surfaces. The default scale names that can be saved with a Live Set are:

‘Major’
‘Minor’
‘Dorian’
‘Mixolydian’
‘Lydian’
‘Phrygian’
‘Locrian’
‘Diminished’
‘Whole-half’
‘Whole Tone’
‘Minor Blues’
‘Minor Pentatonic’
‘Major Pentatonic’
‘Harmonic Minor’
‘Melodic Minor’
‘Super Locrian’
‘Bhairav’
‘Hungarian Minor’
‘Minor Gypsy’
‘Hirojoshi’
‘In-Sen’
‘Iwato’
‘Kumoi’
‘Pelog’
‘Spanish’

scale_intervals
TYPE : list
ACCES : get, observe
Description

A list of integers representing the intervals in the current scale, expressed as the interval between the first scale degree and the scale degree at the list index.

select_on_launch
TYPE : bool
ACCES : get
Description

1 = the « Select on Launch » option is set in Live’s preferences.

session_automation_record
TYPE : bool
ACCES : get, set, observe
Description

The state of the Automation Arm button.

session_record
TYPE : bool
ACCES : get, set, observe
Description

The state of the Session Overdub button.

session_record_status
TYPE : int
ACCES : get, observe
Description

Reflects the state of the Session Record button.

signature_denominator
TYPE : int
ACCES : get, set, observe
Description
signature_numerator
TYPE : int
ACCES : get, set, observe
Description
song_length
TYPE : float
ACCES : get, observe
Description

A little more than last_event_time , in beats.

swing_amount
TYPE : float
ACCES : get, set, observe
Description

Range: 0.0 – 1.0; affects MIDI Recording Quantization and all direct calls to Clip.quantize.

tempo
TYPE : float
ACCES : get, set, observe
Description

Current tempo of the Live Set in BPM, 20.0 … 999.0. The tempo may be automated, so it can change depending on the current song time.

Fonctions

capture_and_insert_scene

Capture the currently playing clips and insert them as a new scene below the selected scene.

capture_midi

Parameter: destination [int]0 = auto, 1 = session, 2 = arrangement
Capture recently played MIDI material from audible tracks into a Live Clip.
If destinaton is not set or it is set to auto, the Clip is inserted into the view currently visible in the focused Live window. Otherwise, it is inserted into the specified view.

continue_playing

From the current playback position.

create_audio_track

Parameter: index
Index determines where the track is added, it is only valid between 0 and len(song.tracks). Using an index of -1 will add the new track at the end of the list.

create_midi_track

Parameter: index
Index determines where the track is added, it is only valid between 0 and len(song.tracks). Using an index of -1 will add the new track at the end of the list.

create_return_track

Adds a new return track at the end.

create_scene

Parameter: index
Returns: The new scene
Index determines where the scene is added. It is only valid between 0 and len(song.scenes). Using an index of -1 will add the new scene at the end of the list.

delete_scene

Parameter: index
Delete the scene at the given index.

delete_track

Parameter: index
Delete the track at the given index.

delete_return_track

Parameter: index
Delete the return track at the given index.

duplicate_scene

Parameter: index
Index determines which scene to duplicate.

duplicate_track

Parameter: index
Index determines which track to duplicate.

find_device_position

Parameter:
device [live object]target [live object]target position [int]Returns:
[int] The position in the target’s chain where the device can be inserted that is the closest possible to the target position.

force_link_beat_time

Force the Link timeline to jump to Live’s current beat time.

get_beats_loop_length

Returns: bars.beats.sixteenths.ticks [symbol]The Arrangement loop length.

get_beats_loop_start

Returns: bars.beats.sixteenths.ticks [symbol]The Arrangement loop start.

get_current_beats_song_time

Returns: bars.beats.sixteenths.ticks [symbol]The current Arrangement playback position.

get_current_smpte_song_time

Parameter: format
format [int] is the time code TYPE : to be returned
0 = the frame position shows the milliseconds
1 = Smpte24
2 = Smpte25
3 = Smpte30
4 = Smpte30Drop
5 = Smpte29
Returns: hours:min:sec:frames [symbol]The current Arrangement playback position.

is_cue_point_selected

Returns: bool 1 = the current Arrangement playback position is at a cue point

jump_by

Parameter: beats
beats [double] is the amount to jump relatively to the current position

jump_to_next_cue

Jump to the right, if possible.

jump_to_prev_cue

Jump to the left, if possible.

move_device

Parameter:
device [live object]target [live object]target position [int]Returns: [int] The position in the target’s chain where the device was inserted.
Move the device to the specified position in the target chain. If the device cannot be moved to the specified position, the nearest possible position is chosen.

play_selection

Do nothing if no selection is set in Arrangement, or play the current selection.

re_enable_automation

Trigger ‘Re-Enable Automation’, re-activating automation in all running Session clips.

redo

Causes the Live application to redo the last operation.

scrub_by

Parameter: beats
beats [double] the amount to scrub relative to the current Arrangement playback position
Same as jump_by , at the moment.

set_or_delete_cue

Toggle cue point at current Arrangement playback position.

start_playing

Start playback from the insert marker.

stop_all_clips

Parameter (optional): quantized
Calling the function with 0 will stop all clips immediately, independent of the launch quantization. The default is ‘1’.

stop_playing

Stop the playback.

tap_tempo

Same as pressing the Tap Tempo button in the transport bar. The new tempo is calculated based on the time between subsequent calls of this function.

trigger_session_record

Parameter: record_length (optional)
Starts recording in either the selected slot or the next empty slot, if the track is armed. If record_length is provided, the slot will record for the given length in beats.
If triggered while recording, recording will stop and clip playback will start.

undo

Causes the Live application to undo the last operation.

Song.View

This class represents the view aspects of a Live document: the Session and Arrangement Views.

Chemin d’accès

live_set view

Enfants

detail_clip
TYPE : Clip
ACCES : get, set, observe
Description

The clip currently displayed in the Live application’s Detail View.

highlighted_clip_slot
TYPE : ClipSlot
ACCES : get, set
Description

The slot highlighted in the Session View.

selected_chain
TYPE : Chain
ACCES : get, set, observe
Description

The highlighted chain, or « id 0 »

selected_parameter
ACCES : get, observe
Description

The selected parameter, or « id 0 »

selected_scene
TYPE : Scene
ACCES : get, set, observe
Description
selected_track
TYPE : Track
ACCES : get, set, observe
Description

Propriétés

draw_mode
TYPE : bool
ACCES : get, set, observe
Description

Reflects the state of the envelope/automation Draw Mode Switch in the transport bar, as toggled with Cmd/Ctrl-B.
0 = breakpoint editing (shows arrow), 1 = drawing (shows pencil)

follow_song
TYPE : bool
ACCES : get, set, observe
Description

Reflects the state of the Follow switch in the transport bar as toggled with Cmd/Ctrl-F.
0 = don’t follow playback position, 1 = follow playback position

Fonctions

select_device

Parameter: id NN
Selects the given device object in its track.
You may obtain the id using a live.path or by using get devices on a track, for example.
The track containing the device will not be shown automatically, and the device gets the appointed device (blue hand) only if its track is selected.

Track

This class represents a track in Live. It can either be an audio track, a MIDI track, a return track or the master track. The master track and at least one Audio or MIDI track will be always present. Return tracks are optional.

Not all Propriétés are supported by all TYPE : s of tracks. The Propriétés are marked accordingly.

Chemin d’accès

live_set tracks N

Enfants

clip_slots
TYPE : list of ClipSlot
ACCES : get, observe
Description
devices
TYPE : list of Device
ACCES : get, observe
Description

Includes mixer device.

group_track
TYPE : Track
ACCES : get
Description

The Group Track, if the Track is grouped. If it is not, id 0 is returned.

mixer_device
ACCES : get
Description
view
TYPE : Track.View
ACCES : get
Description

Propriétés

arm
TYPE : bool
ACCES : get, set, observe
Description

1 = track is armed for recording. [not in return/master tracks]

available_input_routing_channels
TYPE : dictionary
ACCES : get, observe
Description

The list of available source channels for the track’s input routing. It’s represented as a dictionary with the following key:
available_input_routing_channels [list]The list contains dictionaries as described in input_routing_channel.
Only available on MIDI and audio tracks.

available_input_routing_TYPE : s
TYPE : dictionary
ACCES : get, observe
Description

The list of available source TYPE : s for the track’s input routing. It’s represented as a dictionary with the following key:
available_input_routing_TYPE : s [list]The list contains dictionaries as described in input_routing_TYPE : .
Only available on MIDI and audio tracks.

available_output_routing_channels
TYPE : dictionary
ACCES : get, observe
Description

The list of available target channels for the track’s output routing. It’s represented as a dictionary with the following key:
available_output_routing_channels [list]The list contains dictionaries as described in output_routing_channel.
Not available on the master track.

available_output_routing_TYPE : s
TYPE : dictionary
ACCES : get, observe
Description

The list of available target TYPE : s for the track’s output routing. It’s represented as a dictionary with the following key:
available_output_routing_TYPE : s [list]The list contains dictionaries as described in output_routing_TYPE : .
Not available on the master track.

can_be_armed
TYPE : bool
ACCES : get
Description

0 for return and master tracks.

can_be_frozen
TYPE : bool
ACCES : get
Description

1 = the track can be frozen, 0 = otherwise.

can_show_chains
TYPE : bool
ACCES : get
Description

1 = the track contains an Instrument Rack device that can show chains in Session View.

color
TYPE : int
ACCES : get, set, observe
Description

The RGB value of the track’s color in the form 0x00rrggbb or (2^16 * red) + (2^8) * green + blue, where red, green and blue are values from 0 (dark) to 255 (light).

When setting the RGB value, the nearest color from the track color chooser is taken.

color_index
TYPE : long
ACCES : get, set, observe
Description

The color index of the track.

current_input_routing
TYPE : symbol
ACCES : get, set, observe
Description

Like all other routings, reflects the string shown in the routing selector.

Deprecated since Live 9.7. Please use input_routing_TYPE : instead.

current_input_sub_routing
TYPE : symbol
ACCES : get, set, observe
Description

Doesn’t send any output if the selector has no entries.

Deprecated since Live 9.7. Please use input_routing_channel instead.

current_monitoring_state
TYPE : int
ACCES : get, set, observe
Description

0 = In, 1 = Auto, 2 = Off [not in return/master tracks]

current_output_routing
TYPE : symbol
ACCES : get, set, observe
Description

Deprecated since Live 9.7. Please use output_routing_TYPE : instead.

current_output_sub_routing
TYPE : symbol
ACCES : get, set, observe
Description

Doesn’t send any output if the selector has no entries.

Deprecated since Live 9.7. Please use output_routing_channel instead.

fired_slot_index
TYPE : int
ACCES : get, observe
Description

Reflects the blinking clip slot.
-1 = no slot fired, -2 = Clip Stop Button fired
First clip slot has index 0.
[not in return/master tracks]

fold_state
TYPE : int
ACCES : get, set
Description

0 = tracks within the Group Track are visible, 1 = Group Track is folded and the tracks within the Group Track are hidden
[only available if is_foldable = 1]

has_audio_input
TYPE : bool
ACCES : get
Description

1 for audio tracks.

has_audio_output
TYPE : bool
ACCES : get
Description

1 for audio tracks and MIDI tracks with instruments.

has_midi_input
TYPE : bool
ACCES : get
Description

1 for MIDI tracks.

has_midi_output
TYPE : bool
ACCES : get
Description

1 for MIDI tracks with no instruments and no audio effects.

implicit_arm
TYPE : bool
ACCES : get, set, observe
Description

A second arm state, only used by Push so far.

input_meter_left
TYPE : float
ACCES : get, observe
Description

Smoothed momentary peak value of left channel input meter, 0.0 to 1.0. For tracks with audio output only. This value corresponds to the meters shown in Live. Please take into account that the left/right audio meters put a significant load onto the GUI part of Live.

input_meter_level
TYPE : float
ACCES : get, observe
Description

Hold peak value of input meters of audio and MIDI tracks, 0.0 … 1.0. For audio tracks it is the maximum of the left and right channels. The hold time is 1 second.

input_meter_right
TYPE : float
ACCES : get, observe
Description

Smoothed momentary peak value of right channel input meter, 0.0 to 1.0. For tracks with audio output only. This value corresponds to the meters shown in Live.

input_routing_channel
TYPE : dictionary
ACCES : get, set, observe
Description

The currently selected source channel for the track’s input routing. It’s represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to all values found in the track’s available_input_routing_channels.
Only available on MIDI and audio tracks.

input_routing_TYPE
TYPE : dictionary
ACCES : get, set, observe
Description

The currently selected source TYPE : for the track’s input routing. It’s represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to all values found in the track’s available_input_routing_TYPE : s.
Only available on MIDI and audio tracks.

input_routings
TYPE : list of symbols
ACCES : get
Description

Available input routings. [not in master track]

Deprecated since Live 9.7. Please use available_input_routing_TYPE : s instead.

input_sub_routings
TYPE : list of symbols
ACCES : get
Description

Available sub routings for the currently selected input routing. If no entries are available, nothing is output. [not in master track]

Deprecated since Live 9.7. Please use available_input_routing_channels instead.

is_foldable
TYPE : bool
ACCES : get
Description

1 = track can be (un)folded to hide or reveal the contained tracks. This is currently the case for Group Tracks. Instrument and Drum Racks return 0 although they can be opened/closed. This will be fixed in a later release.

is_frozen
TYPE : bool
ACCES : get, observe
Description

1 = the track is currently frozen.

is_grouped
TYPE : bool
ACCES : get
Description

1 = the track is contained within a Group Track.

is_part_of_selection
TYPE : bool
ACCES : get
Description
is_showing_chains
TYPE : bool
ACCES : get, set, observe
Description

Get or set whether a track with an Instrument Rack device is currently showing its chains in Session View.

is_visible
TYPE : bool
ACCES : get
Description

0 = track is hidden in a folded Group Track.

mute
TYPE : bool
ACCES : get, set, observe
Description

[not in master track]

muted_via_solo
TYPE : bool
ACCES : get, observe
Description

1 = the track or chain is muted due to Solo being active on at least one other track.

name
TYPE : symbol
ACCES : get, set, observe
Description

As shown in track header.

output_meter_left
TYPE : float
ACCES : get, observe
Description

Smoothed momentary peak value of left channel output meter, 0.0 to 1.0. For tracks with audio output only. This value corresponds to the meters shown in Live. Please take into account that the left/right audio meters add a significant load to Live GUI resource usage.

output_meter_level
TYPE : float
ACCES : get, observe
Description

Hold peak value of output meters of audio and MIDI tracks, 0.0 to 1.0. For audio tracks, it is the maximum of the left and right channels. The hold time is 1 second.

output_meter_right
TYPE : float
ACCES : get, observe
Description

Smoothed momentary peak value of right channel output meter, 0.0 to 1.0. For tracks with audio output only. This value corresponds to the meters shown in Live.

output_routing_channel
TYPE : dictionary
ACCES : get, set, observe
Description

The currently selected target channel for the track’s output routing. It’s represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to all values found in the track’s available_output_routing_channels.
Not available on the master track.

output_routing_TYPE
TYPE : dictionary
ACCES : get, set, observe
Description

The currently selected target TYPE : for the track’s output routing. It’s represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to all values found in the track’s available_output_routing_TYPE : s.
Not available on the master track.

output_routings
TYPE : list of symbols
ACCES : get
Description

Available output routings. [not in master track]

Deprecated since Live 9.7. Please use available_output_routing_TYPE : s instead.

output_sub_routings
TYPE : list of symbols
ACCES : get
Description

Available sub routings for the currently selected output routing. If no entries are available, nothing is output. [not in master track]

Deprecated since Live 9.7. Please use available_output_routing_channels instead.

playing_slot_index
TYPE : int
ACCES : get, observe
Description

First slot has index 0, -2 = Clip Stop slot fired in Session View, -1 = Arrangement recording with no Session clip playing. [not in return/master tracks]

solo
TYPE : bool
ACCES : get, set, observe
Description

Remark: when setting this property, the exclusive Solo logic is bypassed, so you have to unsolo the other tracks yourself. [not in master track]

Fonctions

delete_clip

Parameter: clip
Delete the given clip.

delete_device

Parameter: index
Delete the device at the given index.

duplicate_clip_slot

Parameter: index
Works like ‘Duplicate’ in a clip’s context menu.

duplicate_clip_to_arrangement

Parameters: clip
destination_time [double]Duplicate the given clip to the Arrangement, placing it at the given destination_time in beats.

jump_in_running_session_clip

Parameter: beats
beats [double] is the amount to jump relatively to the current clip position.
Modify playback position in running Session clip, if any.

stop_all_clips

Stops all playing and fired clips in this track.

Track.View

Representing the view aspects of a track.

Chemin d’accès

live_set tracks N view

Enfants

selected_device
TYPE : Device
ACCES : get, observe
Description

The selected device or the first selected device (in case of multi/group selection).

Propriétés

device_insert_mode
TYPE : int
ACCES : get, set, observe
Description

Determines where a device will be inserted when loaded from the browser. 0 = add device at the end, 1 = add device to the left of the selected device, 2 = add device to the right of the selected device.

is_collapsed
TYPE : bool
ACCES : get, set, observe
Description

In Arrangement View: 1 = track collapsed, 0 = track opened.

Fonctions

select_instrument

Returns: bool 0 = there are no devices to select
Selects track’s instrument or first device, makes it visible and focuses on it.

ClipSlot

This class represents an entry in Live’s Session View matrix.

The Propriétés playing_status , is_playing and is_recording are useful for clip slots of Group Tracks. These are always empty and represent the state of the clips in the tracks within the Group Track.

Chemin d’accès

live_set tracks N clip_slots M

Enfants

clip
TYPE : Clip
ACCES : get
Description

id 0 if slot is empty

Propriétés

color
TYPE : long
ACCES : get, observe
Description

The color of the first clip in the Group Track if the clip slot is a Group Track slot.

color_index
TYPE : long
ACCES : get, observe
Description

The color index of the first clip in the Group Track if the clip slot is a Group Track slot.

controls_other_clips
TYPE : bool
ACCES : get, observe
Description

1 for a Group Track slot that has non-deactivated clips in the tracks within its group.
Control of empty clip slots doesn’t count.

has_clip
TYPE : bool
ACCES : get, observe
Description

1 = a clip exists in this clip slot.

has_stop_button
TYPE : bool
ACCES : get, set, observe
Description

1 = this clip stops its track (or tracks within a Group Track).

is_group_slot
TYPE : bool
ACCES : get
Description

1 = this clip slot is a Group Track slot.

is_playing
TYPE : bool
ACCES : get
Description

1 = playing_status != 0, otherwise 0.

is_recording
TYPE : bool
ACCES : get
Description

1 = playing_status == 2, otherwise 0.

is_triggered
TYPE : bool
ACCES : get, observe
Description

1 = clip slot button (Clip Launch, Clip Stop or Clip Record) or button of contained clip are blinking.

playing_status
TYPE : int
ACCES : get, observe
Description

0 = all clips in tracks within a Group Track stopped or all tracks within a Group Track are empty.
1 = at least one clip in a track within a Group Track is playing.
2 = at least one clip in a track within a Group Track is playing or recording.
Equals 0 if this is not a clip slot of a Group Track.

will_record_on_start
TYPE : bool
ACCES : get
Description

1 = clip slot will record on start.

Fonctions

create_clip

Parameter: length
Length is given in beats and must be a greater value than 0.0. Can only be called on empty clip slots in MIDI tracks.

delete_clip

Deletes the contained clip.

duplicate_clip_to

Parameter: target_clip_slot [ClipSlot]Duplicates the slot’s clip to the given clip slot, overriding the target clip slot’s clip if it’s not empty.

fire

Parameter: record_length (optional)
launch_quantization (optional)
Fires the clip or triggers the Stop Button, if any. Starts recording if slot is empty and track is armed. Starts recording of armed and empty tracks within a Group Track if Preferences->Launch->Start Recording on Scene Launch is ON. If record_length is provided, the slot will record for the given length in beats. launch_quantization overrides the global quantization if provided.

set_fire_button_state

Parameter: state [bool]1 = Live simulates pressing of Clip Launch button until the state is set to 0 or until the slot is stopped otherwise.

stop

Stops playing or recording clips in this track or the tracks within the group, if any. It doesn’t matter on which slot of the track you call this function.

Clip

This class represents a clip in Live. It can be either an audio clip or a MIDI clip in the Arrangement or Session View, depending on the track / slot it lives in.

Chemin d’accès

live_set tracks N clip_slots M clip

Enfants

view
TYPE : Clip.View
ACCES : get
Description

Propriétés

available_warp_modes
TYPE : list
ACCES : get
Description

Returns the list of indexes of the Warp Modes available for the clip. Only valid for audio clips.

color
TYPE : int
ACCES : get, set, observe
Description

The RGB value of the clip’s color in the form 0x00rrggbb or (2^16 * red) + (2^8) * green + blue, where red, green and blue are values from 0 (dark) to 255 (light).

When setting the RGB value, the nearest color from the clip color chooser is taken.

color_index
TYPE : int
ACCES : get, set, observe
Description

The clip’s color index.

end_marker
TYPE : double
ACCES : get, set, observe
Description

The end marker of the clip in beats, independent of the loop state. Cannot be set before the start marker.

end_time
TYPE : double
ACCES : get, observe
Description

The end time of the clip. For Session View clips, if Loop is on, this is the Loop End, otherwise it’s the End Marker. For Arrangement View clips, this is always the position of the clip’s rightmost edge in the Arrangement.

gain
TYPE : double
ACCES : get, set, observe
Description

The gain of the clip (range is 0.0 to 1.0). Only valid for audio clips.

gain_display_string
TYPE : symbol
ACCES : get
Description

Get the gain display value of the clip as a string (e.g. « 1.3 dB »). Can only be called on audio clips.

file_path
TYPE : symbol
ACCES : get
Description

Get the location of the audio file represented by the clip. Only available for audio clips.

has_envelopes
TYPE : bool
ACCES : get, observe
Description

Get/observe whether the clip has any automation.

is_arrangement_clip
TYPE : bool
ACCES : get
Description

1 = The clip is an Arrangement clip.
A clip can be either an Arrangement or a Session clip.

is_audio_clip
TYPE : bool
ACCES : get
Description

0 = MIDI clip, 1 = audio clip

is_midi_clip
TYPE : bool
ACCES : get
Description

The opposite of is_audio_clip .

is_overdubbing
TYPE : bool
ACCES : get, observe
Description

1 = clip is overdubbing.

is_playing
TYPE : bool
ACCES : get, set
Description

1 = clip is playing or recording.

is_recording
TYPE : bool
ACCES : get, observe
Description

1 = clip is recording.

is_triggered
TYPE : bool
ACCES : get
Description

1 = Clip Launch button is blinking.

length
TYPE : double
ACCES : get
Description

For looped clips: loop length in beats. Otherwise it’s the distance in beats from start to end marker. Makes no sense for unwarped audio clips.

loop_end
TYPE : double
ACCES : get, set, observe
Description

For looped clips: loop end.
For unlooped clips: clip end.

loop_jump
TYPE : bang
ACCES : observe
Description

Bangs when the clip play position is crossing the loop start marker (possibly projected into the loop).

loop_start
TYPE : double
ACCES : get, set, observe
Description

For looped clips: loop start.
For unlooped clips: clip start.

loop_start and loop_end are in absolute clip beat time if clip is MIDI or warped. The 1.1.1 position has beat time 0. If the clip is unwarped audio, they are given in seconds, 0 is the time of the first sample in the audio material.

looping
TYPE : bool
ACCES : get, set, observe
Description

1 = clip is looped. Unwarped audio cannot be looped.

muted
TYPE : bool
ACCES : get, set, observe
Description

1 = muted (i.e. the Clip Activator button of the clip is off).

name
TYPE : symbol
ACCES : get, set, observe
Description
notes
TYPE : bang
ACCES : observe
Description

Observer sends bang when the list of notes changes.
Available for MIDI clips only.

pitch_coarse
TYPE : int
ACCES : get, set, observe
Description

Pitch shift in semitones (« Transpose »), -48 … 48.
Available for audio clips only.

pitch_fine
TYPE : float
ACCES : get, set, observe
Description

Extra pitch shift in cents (« Detune »), -50 … 49.
Available for audio clips only.

playing_position
TYPE : float
ACCES : get, observe
Description

Current playing position of the clip.

For MIDI and warped audio clips, the value is given in beats of absolute clip time. The clip’s beat time of 0 is where 1 is shown in the bar/beat/16th time scale at the top of the clip view.

For unwarped audio clips, the position is given in seconds, according to the time scale shown at the bottom of the clip view.

Stopped clips have a playing position of 0.

playing_status
TYPE : bang
ACCES : observe
Description

Observer sends bang when playing/trigger status changes.

position
TYPE : float
ACCES : get, observe
Description

Get and set the clip’s loop position. The value will always equal loop_start, however setting this property, unlike setting loop_start, preserves the loop length.

ram_mode
TYPE : bool
ACCES : get, set, observe
Description

1 = an audio clip’s RAM switch is enabled.

signature_denominator
TYPE : int
ACCES : get, set, observe
Description
signature_numerator
TYPE : int
ACCES : get, set, observe
Description
start_marker
TYPE : double
ACCES : get, set, observe
Description

The start marker of the clip in beats, independent of the loop state. Cannot be set behind the end marker.

start_time
TYPE : double
ACCES : get
Description

The time the clip was started, relative to the global song time. The value is in beats.

warp_mode
TYPE : int
ACCES : get, set, observe
Description

The Warp Mode of the clip as an integer index. Available Warp Modes are:
0 = Beats Mode
1 = Tones Mode
2 = Texture Mode
3 = Re-Pitch Mode
4 = Complex Mode
5 = REX Mode
6 = Complex Pro Mode
Available for audio clips only.

warping
TYPE : bool
ACCES : get, set, observe
Description

1 = Warp switch is on.
Available for audio clips only.

will_record_on_start
TYPE : bool
ACCES : get
Description

1 for MIDI clips which are in triggered state, with the track armed and MIDI Arrangement Overdub on.

Fonctions

clear_all_envelopes

Removes all automation in the clip.

clear_envelope

Parameter:
device_parameter [id]Removes the automation of the clip for the given parameter.

crop

Crops the clip: if the clip is looped, the region outside the loop is removed; if it isn’t, the region outside the start and end markers.

deselect_all_notes

Call this before replace_selected_notes if you just want to add some notes.
Output:
deselect_all_notes id 0

For MIDI clips only.

duplicate_loop

Makes the loop two times longer by moving loop_end to the right, and duplicates both the notes and the envelopes. If the clip is not looped, the clip start/end range is duplicated. Available for MIDI clips only.

duplicate_region

Parameter:
region_start [double/int]region_length [double/int]destination_time [double/int]pitch (optional) [int]transposition_amount (optional) [int]Duplicate the notes in the specified region to the destination_time. Only notes of the specified pitch are duplicated or all if pitch is -1. If the transposition_amount is not 0, the notes in the region will be transposed by the transpose_amount of semitones. Available for MIDI clips only.

fire

Same effect as pressing the Clip Launch button.

get_notes

Parameter:
from_time [double/int]from_pitch [int]time_span [double/int]pitch_span [int]Returns a list of notes that start in the given area. The output is similar to get_selected_notes.

get_selected_notes

Use this if you want to operate on the selected notes.
Output:
get_selected_notes notes count
get_selected_notes note pitch time duration velocity muted

get_selected_notes done

count [int] is the number of note lines to follow.
pitch [int] is the MIDI note number, 0…127, 60 is C3.
time [double] is the note start time in beats of absolute clip time.
duration [double] is the note length in beats.
velocity [int] is the note velocity, 1 … 127.
muted [bool] 1 = the note is deactivated.

For MIDI clips only.

move_playing_pos

Parameter: beats
beats [double] relative jump distance in beats. Negative beats jump backwards.
Jumps by given amount, unquantized.
Unwarped audio clips, recording audio clips and recording non-overdub MIDI clips cannot jump.

quantize

Parameter:
quantization_grid [int]amount [double]Quantizes all notes in the clip to the quantization_grid taking the song’s swing_amount into account.

quantize_pitch

Parameter:
pitch [int]quantization_grid [int]amount [double]Same as quantize, but only for notes in the given pitch.

remove_notes

Parameter:
from_time [double]from_pitch [int]time_span [double]pitch_span [int]Deletes all notes that start in the given area.

replace_selected_notes

To replace the notes selected in the clip, send a series of the following function calls to the clip.

replace_selected_notes
notes count
note pitch time duration velocity muted
done

The sequence is the same as in get_selected_notes , the parameters are the same too. The sequence must always be completed, since the clip waits for the respective calls even if intermediate messages are sent. If count is zero, this means there are no note calls.

In Live, notes don’t overlap, so if the new notes overlap with unselected notes, the unselected ones are made to fit in the same way as when you edit notes manually.

An example sequence of calls looks like this:

call replace_selected_notes
call notes 2
call note 60 0.0 0.5 100 0
call note 62 0.5 0.5 64 0
call done

For MIDI clips only.

scrub

Parameter: beat_time [double]Scrub the clip to a time, specified in beats. This behaves exactly like scrubbing with the mouse; the scrub will respect Global Quantization, starting and looping in time with the transport. The scrub will continue until stop_scrub() is called.

select_all_notes

Use this function to process all notes of a clip, independent of the current selection.

Output:
select_all_notes id 0

For MIDI clips only.

set_fire_button_state

Parameter: state [bool]If the state is set to 1, Live simulates pressing the clip start button until the state is set to 0, or until the clip is otherwise stopped.

set_notes

Parameter:
list_of_notes [pitch, time, duration, velocity, is_muted]Will apply the given notes to the clip, overwriting existing notes.
An example sequence of calls looks like this:

call set_notes
call notes 2
call note 60 0.0 0.5 100 0
call note 62 0.5 0.5 64 0
call done

For MIDI clips only.

stop

Same effect as pressing the stop button of the track, but only if this clip is actually playing or recording. If this clip is triggered or if another clip in this track is playing, it has no effect.

stop_scrub

Stops an active scrub on a clip.

Clip.View

Representing the view aspects of a Clip.

Chemin d’accès

live_set tracks N clip_slots M clip view

Propriétés

grid_is_triplet
TYPE : bool
ACCES : get, set
Description

Get/set whether the clip is displayed with a triplet grid.

grid_quantization
TYPE : int
ACCES : get, set
Description

Get/set the grid quantization.

Fonctions

hide_envelope

Hide the Envelopes box.

select_envelope_parameter

Parameter: [DeviceParameter]Select the specified device parameter in the Envelopes box.

show_envelope

Show the Envelopes box.

show_loop

If the clip is visible in Live’s Detail View, this function will make the current loop visible there.

Device

This class represents a MIDI or audio device in Live.

Chemin d’accès

live_set tracks N devices M

Chemin d’accès

live_set tracks N devices M chains L devices K

Chemin d’accès

live_set tracks N devices M return_chains L devices K

Enfants

parameters
TYPE : list of DeviceParameter
ACCES : get, observe
Description

Only automatable parameters are accessible. See DeviceParameter to learn how to modify them.

view
ACCES : get
Description

Propriétés

can_have_chains
TYPE : bool
ACCES : get
Description

0 for a single device
1 for a device Rack

can_have_drum_pads
TYPE : bool
ACCES : get
Description

1 for Drum Racks

class_display_name
TYPE : symbol
ACCES : get
Description

Get the original name of the device (e.g. OperatorAuto Filter).

class_name
TYPE : symbol
ACCES : get
Description

Live device TYPE : such as MidiChord , Operator , Limiter , MxDeviceAudioEffect , or PluginDevice .

is_active
TYPE : bool
ACCES : get, observe
Description

0 = either the device itself or its enclosing Rack device is off.

name
TYPE : symbol
ACCES : get, set, observe
Description

This is the string shown in the title bar of the device.

TYPE
TYPE : symbol
ACCES : get
Description

The TYPE : of the device. Possible TYPE : s are: 0 = undefined, 1 = instrument, 2 = audio_effect, 3 = midi_effect.

Fonctions

store_chosen_bank

Parameters:
script_index [int]bank_index [int](This is related to hardware control surfaces and is usually not relevant.)

Device.View

Representing the view aspects of a Device.

Chemin d’accès

live_set tracks N devices M view

Chemin d’accès

live_set tracks N devices M chains L devices K view

Chemin d’accès

live_set tracks N devices M return_chains L devices K view

Propriétés

is_collapsed
TYPE : bool
ACCES : get, set, observe
Description

1 = the device is shown collapsed in the device chain.

DeviceParameter

This class represents an (automatable) parameter within a MIDI or audio device. To modify a device parameter, set its value property or send its object ID to live.remote~ .

Chemin d’accès

live_set tracks N devices M parameters L

Propriétés

automation_state
TYPE : int
ACCES : get, observe
Description

Get the automation state of the parameter.
0 = no automation.
1 = automation active.
2 = automation overridden.

default_value
TYPE : float
ACCES : get
Description

Get the default value for this parameter.
Only available for parameters that aren’t quantized (see is_quantized).

is_enabled
TYPE : bool
ACCES : get
Description

1 = the parameter value can be modified directly by the user, by sending set to a live.object , by automation or by an assigned MIDI message or keystroke.
Parameters can be disabled because they are macro-controlled, or they are controlled by a live-remote~ object, or because Live thinks that they should not be moved.

is_quantized
TYPE : bool
ACCES : get
Description

1 for booleans and enums
0 for int/float parameters
Although parameters like MidiPitch.Pitch appear quantized to the user, they actually have an is_quantized value of 0.

max
TYPE : float
ACCES : get
Description

Lowest allowed value.

min
TYPE : float
ACCES : get
Description

Largest allowed value.

name
TYPE : symbol
ACCES : get
Description

The short parameter name as shown in the (closed) automation chooser.

original_name
TYPE : symbol
ACCES : get
Description

The name of a Macro parameter before its assignment.

state
TYPE : int
ACCES : get, observe
Description

The active state of the parameter.
0 = the parameter is active and can be changed.
1 = the parameter can be changed but isn’t active, so changes won’t have an audible effect.
2 = the parameter cannot be changed.

value
TYPE : float
ACCES : get, set, observe
Description

Linear-to-GUI value between min and max.

value_items
ACCES : get
Description

Get a list of the possible values for this parameter.
Only available for parameters that are quantized (see is_quantized).

Fonctions

re_enable_automation

Re-enable automation for this parameter.

str_for_value

Parameter: value [float] Returns: [symbol] String representation of the specified value.

__str__

Returns: [symbol] String representation of the current parameter value.

RackDevice

This class represents a Live Device Rack.
A RackDevice is a TYPE : of Device, meaning that it has all the Enfants, Propriétés and Fonctions that a Device has. Listed below are members unique to RackDevice.

Enfants

chains
TYPE : list of Chain
ACCES : get, observe
Description

The Rack’s chains.

drum_pads
TYPE : list of DrumPad
ACCES : get, observe
Description

All 128 Drum Pads for the topmost Drum Rack. Inner Drum Racks return a list of 0 entries.

return_chains
TYPE : list of Chain
ACCES : get, observe
Description

The Rack’s return chains.

visible_drum_pads
TYPE : list of DrumPad
ACCES : get, observe
Description

All 16 visible DrumPads for the topmost Drum Rack. Inner Drum Racks return a list of 0 entries.

Propriétés

can_show_chains
TYPE : bool
ACCES : get
Description

1 = The Rack contains an instrument device that is capable of showing its chains in Session View.

has_drum_pads
TYPE : bool
ACCES : get, observe
Description

1 = the device is a Drum Rack with pads. A nested Drum Rack is a Drum Rack without pads.
Only available for Drum Racks.

has_macro_mappings
TYPE : bool
ACCES : get, observe
Description

1 = any of a Rack’s Macros are mapped to a parameter.

is_showing_chains
TYPE : bool
ACCES : get, set, observe
Description

1 = The Rack contains an instrument device that is showing its chains in Session View.

Fonctions

copy_pad

Parameters:
source_index [int]destination_index [int]Copies all content of a Drum Rack pad from a source pad to a destination pad. The source_index and destination_index refer to pad indices inside a Drum Rack.

RackDevice.View

Represents the view aspects of a Rack Device.
A RackDevice.View is a TYPE : of Device.View, meaning that it has all the Propriétés that a Device.View has. Listed below are the members unique to RackDevice.View.

Enfants

selected_drum_pad
TYPE : DrumPad
ACCES : get, set, observe
Description

Currently selected Drum Rack pad.
Only available for Drum Racks.

selected_chain
TYPE : Chain
ACCES : get, set, observe
Description

Currently selected chain.

Propriétés

drum_pads_scroll_position
TYPE : int
ACCES : get, set, observe
Description

Lowest row of pads visible, range: 0 – 28.
Only available for Drum Racks.

is_showing_chain_devices
TYPE : bool
ACCES : get, set, observe
Description

1 = the devices in the currently selected chain are visible.

DrumPad

This class represents a Drum Rack pad in Live.

Chemin d’accès

live_set tracks N devices M drum_pads L

Enfants

chains
TYPE : Chain
ACCES : get, observe
Description

Propriétés

mute
TYPE : bool
ACCES : get, set, observe
Description

1 = muted

name
TYPE : symbol
ACCES : get, observe
Description
note
TYPE : int
ACCES : get
Description
solo
TYPE : bool
ACCES : get, set, observe
Description

1 = soloed (Solo switch on)
Does not automatically turn Solo off in other chains.

Fonctions

delete_all_chains

Chain

This class represents a group device chain in Live.

Chemin d’accès

live_set tracks N devices M chains L

Chemin d’accès

live_set tracks N devices M return_chains L

Chemin d’accès

live_set tracks N devices M chains L devices K chains P …

Chemin d’accès

live_set tracks N devices M return_chains L devices K chains P …

Enfants

devices
TYPE : Device
ACCES : get, observe
Description
mixer_device
ACCES : get
Description

Propriétés

color
TYPE : int
ACCES : get, set, observe
Description

The RGB value of the chain’s color in the form 0x00rrggbb or (2^16 * red) + (2^8) * green + blue, where red, green and blue are values from 0 (dark) to 255 (light).

When setting the RGB value, the nearest color from the color chooser is taken.

color_index
TYPE : long
ACCES : get, set, observe
Description

The color index of the chain.

is_auto_colored
TYPE : bool
ACCES : get, set, observe
Description

1 = the chain will always have the color of the containing track or chain.

has_audio_input
TYPE : bool
ACCES : get
Description
has_audio_output
TYPE : bool
ACCES : get
Description
has_midi_input
TYPE : bool
ACCES : get
Description
has_midi_output
TYPE : bool
ACCES : get
Description
mute
TYPE : bool
ACCES : get, set, observe
Description

1 = muted (Chain Activator off)

muted_via_solo
TYPE : bool
ACCES : get, observe
Description

1 = muted due to another chain being soloed.

name
TYPE : unicode
ACCES : get, set, observe
Description
solo
TYPE : bool
ACCES : get, set, observe
Description

1 = soloed (Solo switch on)
does not automatically turn Solo off in other chains.

Fonctions

delete_device

Parameter: index [int]Delete the device at the given index.

DrumChain

This class represents a Drum Rack device chain in Live.

A DrumChain is a TYPE : of Chain, meaning that it has all the Enfants, Propriétés and Fonctions that a Chain has. Listed below are the members unique to DrumChain.

Propriétés

out_note
TYPE : int
ACCES : get, set, observe
Description

Get/set the MIDI note sent to the devices in the chain.

choke_group
TYPE : int
ACCES : get, set, observe
Description

Get/set the chain’s choke group.

ChainMixerDevice

This class represents a chain’s mixer device in Live.

Chemin d’accès

live_set tracks N devices M chains L mixer_device

Chemin d’accès

live_set tracks N devices M return_chains L mixer_device

Enfants

sends
TYPE : list of DeviceParameter
ACCES : get, observe
Description

[in Audio Effect Racks and Instrument Racks only]For Drum Racks, otherwise empty.

chain_activator
ACCES : get
Description
panning
ACCES : get
Description

[in Audio Effect Racks and Instrument Racks only]

volume
ACCES : get
Description

[in Audio Effect Racks and Instrument Racks only]

SimplerDevice

This class represents an instance of Simpler.
A Simpler device is a TYPE : of device, meaning that it has all the Enfants, Propriétés and Fonctions that a device has. Listed below are members unique to SimplerDevice.

Enfants

sample
TYPE : Sample
ACCES : get, observe
Description

The sample currently loaded into Simpler.

Propriétés

can_warp_as
TYPE : bool
ACCES : get, observe
Description

1 = warp_as is available.

can_warp_double
TYPE : bool
ACCES : get, observe
Description

1 = warp_double is available.

can_warp_half
TYPE : bool
ACCES : get, observe
Description

1 = warp_half is available.

multi_sample_mode
TYPE : bool
ACCES : get, observe
Description

1 = Simpler is in multisample mode.

pad_slicing
TYPE : bool
ACCES : get, set, observe
Description

1 = slices can be added in Slicing Mode by playing notes which are not yet assigned to existing slices.

playback_mode
TYPE : int
ACCES : get, set, observe
Description

Get/set Simpler’s playback mode.
0 = Classic Mode
1 = One-Shot Mode
2 = Slicing Mode

playing_position
TYPE : float
ACCES : get, observe
Description

The current playing position in the sample, expressed as a value between 0. and 1.

playing_position_enabled
TYPE : bool
ACCES : get, observe
Description

1 = Simpler is playing back the sample and showing the playing position.

retrigger
TYPE : bool
ACCES : get, set, observe
Description

1 = Retrigger is enabled in Simpler.

slicing_playback_mode
TYPE : int
ACCES : get, set, observe
Description

Get/set Simpler’s Slicing Playback Mode.
0 = Mono
1 = Poly
2 = Thru

voices
TYPE : int
ACCES : get, set, observe
Description

Get/set the number of Voices.

Fonctions

crop

Crop the loaded sample to the active region between the start and end markers.

guess_playback_length

Returns: [float] An estimated beat time for the playback length between the start and end markers.

reverse

Reverse the loaded sample.

warp_as

Parameters: beats [int]Warp the active region between the start and end markers as the specified number of beats.

warp_double

Double the playback tempo of the active region between the start and end markers.

warp_half

Halve the playback tempo for the active region between the start and end markers.

SimplerDevice.View

Represents the view aspects of a SimplerDevice.
A SimplerDevice.View is a TYPE : of Device.View, meaning that it has all the Propriétés that a Device.View has. Listed below are the members unique to SimplerDevice.View.

Propriétés

selected_slice
TYPE : int
ACCES : get, set, observe
Description

The currenctly selected slice, identified by its slice time.

Sample

This class represents a sample file loaded into Simpler.

Chemin d’accès

live_set tracks N devices N sample

Propriétés

beats_granulation_resolution
TYPE : int
ACCES : get, set, observe
Description

Get/set which divisions to preserve in the sample in Beats Mode.
0 = 1 Bar
1 = 1/2
2 = 1/4
3 = 1/8
4 = 1/16
5 = 1/32
6 = Transients

beats_transient_envelope
TYPE : float
ACCES : get, set, observe
Description

Get/set the duration of a volume fade applied to each segment of audio in Beats Mode.

0 = fastest decay
100 = no fade

beats_transient_loop_mode
TYPE : int
ACCES : get, set, observe
Description

Get/set the Transient Loop Mode applied to each segment of audio in Beats Mode.
0 = Off
1 = Loop Forward
2 = Loop Back-and-Forth

complex_pro_envelope
TYPE : float
ACCES : get, set, observe
Description

Get/set the Envelope parameter in Complex Pro Mode.

complex_pro_formants
TYPE : float
ACCES : get, set, observe
Description

Get/set the Formants parameter in Complex Pro Mode.

end_marker
TYPE : int
ACCES : get, set, observe
Description

Get/set the position of the sample’s end marker.

file_path
TYPE : unicode
ACCES : get, observe
Description

Get the path of the sample file.

gain
TYPE : float
ACCES : get, set, observe
Description

Get/set the sample gain.

length
TYPE : int
ACCES : get
Description

Get the length of the sample file in sample frames.

slicing_sensitivity
TYPE : float
ACCES : get, set, observe
Description

Get/set the slicing sensitivity. Values are between 0.0 and 1.0.

start_marker
TYPE : int
ACCES : get, set, observe
Description

Get/set the position of the sample’s start marker.

texture_flux
TYPE : float
ACCES : get, set, observe
Description

Get/set the Flux parameter in Texture Mode.

texture_grain_size
TYPE : float
ACCES : get, set, observe
Description

Get/set the Grain Size parameter in Texture Mode.

tones_grain_size
TYPE : float
ACCES : get, set, observe
Description

Get/set the Grain Size parameter in Tones Mode.

warp_markers
TYPE : bang
ACCES : observe
Description

Observe changes to the list of warp markers.

warp_mode
TYPE : int
ACCES : get, set, observe
Description

Get/set the Warp Mode.
0 = Beats Mode
1 = Tones Mode
2 = Texture Mode
3 = Re-Pitch Mode
4 = Complex Mode
6 = Complex Pro Mode

warping
TYPE : bool
ACCES : get, set, observe
Description

1 = warping is enabled.

slicing_style
TYPE : int
ACCES : get, set, observe
Description

Get/set the Slicing Mode.
0 = Transient
1 = Beat
2 = Region
3 = Manual

slicing_beat_division
TYPE : int
ACCES : get, set, observe
Description

Get/set the slice beat division in Beat Slicing Mode.
0 = 1/16
1 = 1/16T
2 = 1/8
3 = 1/8T
4 = 1/4
5 = 1/4T
6 = 1/2
7 = 1/2T
8 = 1 Bar
9 = 2 Bars
10 = 4 Bars

slicing_region_count
TYPE : int
ACCES : get, set, observe
Description

Get/set the number of slice regions in Region Slicing Mode.

Fonctions

gain_display_string

Returns: [list of symbols] The sample’s gain value as a string, e.g. « 0.0 dB ».

insert_slice

Parameters: slice_time [int]Insert a new slice at the specified time if there is none.

move_slice

Parameters: source_time [int] destination_time [int]Move an existing slice to a specified time.

remove_slice

Parameters: slice_time [int]Remove a slice at the specified time if it exists.

clear_slices

Clear all slices created in Manual Slicing Mode.

reset_slices

Reset all edited slices to their original positions.

WavetableDevice

This class represents a Wavetable instrument.

A WavetableDevice shares all of the Enfants, Fonctions and Propriétés that a Device has. Listed below are members unique to it.

Propriétés

filter_routing
TYPE : int
ACCES : get, set, observe
Description

Access to the current filter routing. 0 = Serial, 1 = Parallel, 2 = Split.

mono_poly
TYPE : int
ACCES : get, set, observe
Description

Access to Wavetable’s Poly/Mono switch. 0 = Mono, 1 = Poly.

oscillator_1_effect_mode
TYPE : int
ACCES : get, set, observe
Description

Access to oscillator 1’s effect mode. 0 = None, 1 = Fm, 2 = Classic, 3 = Modern.

oscillator_2_effect_mode
TYPE : int
ACCES : get, set, observe
Description

Access to oscillator 2’s effect mode.

oscillator_1_wavetable_category
TYPE :
ACCES : get, set, observe
Description

Access to oscillator 1’s wavetable category selector.

oscillator_2_wavetable_category
TYPE :
ACCES : get, set, observe
Description

Access to oscillator 2’s wavetable category selector.

oscillator_1_wavetable_index
TYPE :
ACCES : get, set, observe
Description

Access to oscillator 1’s wavetable index selector.

oscillator_2_wavetable_index
TYPE :
ACCES : get, set, observe
Description

Access to oscillator 2’s wavetable index selector.

oscillator_1_wavetables
ACCES : get, observe
Description

List of names of the wavetables currently available for oscillator 1. Depends on the current wavetable category selection (see oscillator_1_wavetable_category).

oscillator_2_wavetables
ACCES : get, observe
Description

List of names of the wavetables currently available for oscillator 2. Depends on the current wavetable category selection (see oscillator_2_wavetable_category).

oscillator_wavetable_categories
ACCES : get
Description

List of the names of the available wavetable categories.

poly_voices
TYPE : int
ACCES : get, set, observe
Description

The current number of polyphonic voices.

unison_mode
TYPE : int
ACCES : get, set, observe
Description

Access to Wavetable’s unison mode parameter.

0 = None
1 = Classic
2 = Shimmer
3 = Noise
4 = Phase Sync
5 = Position Spread
6 = Random Note

unison_voice_count
TYPE : int
ACCES : get, set, observe
Description

Access to the number of unison voices.

visible_modulation_target_names
ACCES : get, observe
Description

List of the names of modulation targets currently visible in the modulation matrix.

Fonctions

add_parameter_to_modulation_matrix

Parameter: parameter_to_add [DeviceParameter]Add an instrument parameter to the modulation matrix. Only works for parameters that can be modulated (see is_parameter_modulatable).

get_modulation_target_parameter_name

Parameter: index [int]Return the modulation target parameter name at index in the modulation matrix as a [symbol].

get_modulation_value

Parameters: modulation_target_index [int] modulation_source_index [int]Return the amount of the modulation of the parameter at modulation_target_index by the modulation source at modulation_source_index in Wavetable’s modulation matrix.

is_parameter_modulatable

Parameter: parameter [DeviceParameter]1 = parameter can be modulated. Call this before add_parameter_to_modulation_matrix.

set_modulation_value

Parameters: modulation_target_index [int] modulation_source_index [int]Set the amount of the modulation of the parameter at modulation_target_index by the modulation source at modulation_source_index in Wavetable’s modulation matrix.

CompressorDevice

This class represents a Compressor device in Live.
A CompressorDevice shares all of the Enfants, Fonctions and Propriétés of a Device; listed below are the members unique to it.

Propriétés

available_input_routing_channels
TYPE : dict
ACCES : get, observe
Description

The list of available source channels for the compressor’s input routing in the sidechain. It’s represented as a dictionary with the following key:
available_input_routing_channels [list]The list contains dictionaries as described in input_routing_channel.

available_input_routing_TYPE : s
TYPE : dict
ACCES : get, observe
Description

The list of available source TYPE : s for the compressor’s input routing in the sidechain. It’s represented as a dictionary with the following key:
available_input_routing_TYPE : s [list]The list contains dictionaries as described in input_routing_TYPE : .

input_routing_channel
TYPE : dict
ACCES : get, set, observe
Description

The currently selected source channel for the compressor’s input routing in the sidechain. It’s represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to all values found in the compressor’s available_input_routing_channels.

input_routing_TYPE
TYPE : dict
ACCES : get, set, observe
Description

The currently selected source TYPE : for the compressor’s input routing in the sidechain. It’s represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to all values found in the track’s available_input_routing_TYPE : s.

PluginDevice

This class represents a plug-in device.

A PluginDevice is a TYPE : of Device, meaning that it has all the Enfants, Propriétés and Fonctions that a Device has. Listed below are the members unique to PluginDevice.

Propriétés

presets
ACCES : get, observe
Description

Get the list of the plug-in’s presets.

selected_preset_index
TYPE : int
ACCES : get, set, observe
Description

Get/set the index of the currently selected preset.

 

MaxDevice

This class represents a Max for Live device in Live.

A MaxDevice is a TYPE : of Device, meaning that it has all the Enfants, Propriétés and Fonctions that a Device has. Listed below are the members unique to MaxDevice.

Propriétés

audio_inputs
TYPE : list of DeviceIO
ACCES : get, observe
Description

List of the audio inputs that the MaxDevice offers.

audio_outputs
TYPE : list of DeviceIO
ACCES : get, observe
Description

List of the audio outputs that the MaxDevice offers.

Fonctions

get_bank_count

Returns: [int] the number of parameter banks.

get_bank_name

Parameters: bank_index [int]Returns: [list of symbols] The name of the parameter bank specified by bank_index.

get_bank_parameters

Parameters: bank_index [int]Returns: [list of ints] The indices of the parameters contained in the bank specified by bank_index. Empty slots are marked as -1. Bank index -1 refers to the « Best of » bank.

MixerDevice

This class represents a mixer device in Live. It provides access to volume, panning and other DeviceParameter objects. See DeviceParameter to learn how to modify them.

Chemin d’accès

live_set tracks N mixer_device

Enfants

sends
TYPE : list of DeviceParameter
ACCES : get, observe
Description

One send per return track.

cue_volume
ACCES : get
Description

[in master track only]

crossfader
ACCES : get
Description

[in master track only]

left_split_stereo
ACCES : get
Description

The Track’s Left Split Stereo Pan Parameter.

panning
ACCES : get
Description
right_split_stereo
ACCES : get
Description

The Track’s Right Split Stereo Pan Parameter.

song_tempo
ACCES : get
Description

[in master track only]

track_activator
ACCES : get
Description
volume
ACCES : get
Description

Propriétés

crossfade_assign
TYPE : int
ACCES : get, set, observe
Description

0 = A, 1 = none, 2 = B [not in master track]

panning_mode
TYPE : int
ACCES : get, set, observe
Description

Access to the Track mixer’s pan mode: 0 = Stereo, 1 = Split Stereo.

Eq8Device

This class represents an instance of an EQ Eight device in Live.
An Eq8Device has all the Propriétés, Fonctions and Enfants of a Device. Listed below are members unique to Eq8Device.

Propriétés

edit_mode
TYPE : bool
ACCES : get, set, observe
Description

Access to EQ Eight’s edit mode, which toggles the channel currently available for editing. The available edit modes depend on the global mode (see global_mode) and are encoded as follows:

In L/R mode: 0 = L, 1 = R
In M/S mode: 0 = M, 1 = S
In Stereo mode: 0 = A, 1 = B (inactive)

global_mode
TYPE : int
ACCES : get, set, observe
Description

Access to EQ Eight’s global mode. The modes are encoded as follows:

0 = Stereo
1 = L/R
2 = M/S

oversample
TYPE : bool
ACCES : get, set, observe
Description

Access to EQ Eight’s Oversampling parameter. 0 = Off, 1 = On.

Eq8Device.View

Represents the view aspects of an Eq8Device.
An Eq8Device.View has all the Enfants, Propriétés and Fonctions of a Device.View. Listed below are members unique to it.

Propriétés

selected_band
TYPE : int
ACCES : get, set, observe
Description

The index of the currently selected filter band.

DeviceIO

This class represents an input or output bus of a Live device.

Propriétés

available_routing_channels
TYPE : dictionary
ACCES : get, observe
Description

The available channels for this input/output bus. The channels are represented as a dictionary with the following key:
available_routing_channels [list]The list contains dictionaries as described in routing_channel.

available_routing_TYPE : s
TYPE : dictionary
ACCES : get, observe
Description

The available TYPE : s for this input/output bus. The TYPE : s are represented as a dictionary with the following key:
available_routing_TYPE : s [list]The list contains dictionaries as described in routing_TYPE : .

default_external_routing_is_none
TYPE : bool
ACCES : get, set
Description

Get and set whether the routing channel will default to None rather than 1/2 when switching to external routing TYPE : s.

routing_channel
TYPE : dictionary
ACCES : get, set, observe
Description

The current routing channel for this input/output bus. It is represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to any of the values found in available_routing_channels.

routing_TYPE
TYPE : dictionary
ACCES : get, set, observe
Description

The current routing TYPE : for this input/output bus. It is represented as a dictionary with the following keys:
display_name [symbol]identifier [symbol]Can be set to any of the values found in available_routing_TYPE : s.

Scene

This class represents a series of clip slots in Live’s Session View matrix.

Chemin d’accès

live_set scenes N

Enfants

clip_slots
TYPE : list of ClipSlot
ACCES : get, observe
Description

Propriétés

color
TYPE : int
ACCES : get, set, observe
Description

The RGB value of the scene’s color in the form 0x00rrggbb or (2^16 * red) + (2^8) * green + blue, where red, green and blue are values from 0 (dark) to 255 (light).

When setting the RGB value, the nearest color from the Scene color chooser is taken.

color_index
TYPE : long
ACCES : get, set, observe
Description

The color index of the scene.

is_empty
TYPE : bool
ACCES : get
Description

1 = none of the slots in the scene is filled.

is_triggered
TYPE : bool
ACCES : get, observe
Description

1 = scene is blinking.

name
TYPE : symbol
ACCES : get, set, observe
Description

May contain BPM and signature commands (like « 128 BPM 3/4 » ).

tempo
TYPE : float
ACCES : get, set
Description

Tempo in BPM as found by Live in the name.

Fonctions

fire

Parameter: force_legato (optional) [bool]can_select_scene_on_launch (optional) [bool]Fire all clip slots contained within the scene and select this scene.
Starts recording of armed and empty tracks within a Group Track in this scene if Preferences->Launch->Start Recording on Scene Launch is ON.
Calling with force_legato = 1 (default = 0) will launch all clips immediately in Legato, independent of their launch mode.
When calling with can_select_scene_on_launch = 0 (default = 1) the scene is fired without selecting it.

fire_as_selected

Parameter: force_legato (optional) [bool]Fire the selected scene, then select the next scene.
It doesn’t matter on which scene you are calling this function.
Calling with force_legato = 1 (default = 0) will launch all clips immediately in Legato, independent of their launch mode.

set_fire_button_state

Parameter: state [bool]If the state is set to 1, Live simulates pressing of scene button until the state is set to 0 or until the scene is stopped otherwise.

CuePoint

Represents a locator in the Arrangement View.

Chemin d’accès

live_set cue_points N

Propriétés

name
TYPE : symbol
ACCES : get, observe
Description
time
TYPE : float
ACCES : get, observe
Description

Arrangement position of the marker in beats.

Fonctions

jump

Set current Arrangement playback position to marker, quantized if song is playing.

ControlSurface

A ControlSurface can be reached either directly by the root path control_surfaces N or by getting a list of active control surface IDs, via calling get control_surfaces on an Application object.
The latter list is in the same order in which control surfaces appear in Live’s Link/MIDI Preferences. Note the same order is not guaranteed when getting a control surface via the control_surfaces N path.

A control surface can be thought of as a software layer between the Live API and, in this case, Max for Live. Individiual controls on the surface are represented by objects that can be grabbed and released via Max for Live, to obtain and give back exclusive control (see grab_control and release_control). In this way, parts of the hardware can be controlled via Max for Live while other parts can retain their default functionality.

Additionally, Live offers a special MaxForLive control surface that has a register_midi_control function. Using this, Max for Live developers can set up entirely custom control surfaces by adding and grabbing arbitrary controls.

Chemin d’accès

control_surfaces N

Fonctions

get_control

Parameter: name
Returns the control with the given name.

get_control_names

Returns the list of all control names.

grab_control

Parameter: control
Take ownership of the control. This releases all standard functionality of the control, so that it can be used exclusively via Max for Live.

grab_midi

Forward MIDI messages received from the control surface to Max for Live.

register_midi_control

Parameters:
name [symbol]status [int]number [int]

(MaxForLive control surface only) Register a MIDI control defined by status and number. Supported status codes are 144 (note on), 176 (continuous control) and 224 (pitchbend).
Returns the LOM ID associated with the control.
Once a control is registered and grabbed via grab_control, Live will forward associated MIDI messages that it receives to Max for Live. Max for Live can send values to the control (e.g. to light an LED) by calling send_value on the control object.

release_control

Parameter: control
Re-establishes the standard functionality for the control.

release_midi

Stop forwarding MIDI messages received from the control surface to Max for Live.

send_midi

Parameter: midi_message [list of int]Send midi_message to the control surface.

send_receive_sysex

Parameters:
sysex_message [list of int]timeout [symbol, int]Send sysex_message to the control surface and await a response.
If the message is followed by the word timeout and a float, this sets the response timeout accordingly. The default timeout value is 0.2.
If the response times out and MIDI has not been grabbed via grab_midi, it’s not forwarded to Max for Live. If MIDI has been grabbed via Max for Live, received messages are always forwarded, but the timeout is still reported.

this_device

This root path represents the device containing the live.path object to which the goto this_device message is sent. The class of this object is Device .

Chemin d’accès

live_set tracks N devices M
Retour en haut
Retour haut de page