Central base class for scripts based on the new Framework. New scripts
need to subclass this class and add special behavior.
|
|
__init__(self,
c_instance,
publish_self=True,
*a,
**k)
Define and Initialize standard behavior |
source code
|
|
|
|
|
|
|
enable_test_mode(self)
Acceptance tests should call this function before using the script,
to ensure an appropriate testing state |
source code
|
|
|
|
|
|
|
|
|
|
application(self)
Returns a reference to the application that we are running in |
source code
|
|
|
|
song(self)
Returns a reference to the Live song instance that we control |
source code
|
|
|
|
|
|
|
_control_surfaces(self)
Returns list of registered control surfaces |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
suggest_input_port(self)
Live -> Script: Live can ask for the name of the script's prefered
input port |
source code
|
|
|
|
suggest_output_port(self)
Live -> Script: Live can ask for the name of the script's prefered
output port |
source code
|
|
|
|
suggest_map_mode(self,
cc_no,
channel)
Live -> Script: Live can ask for a suitable mapping mode for a
given CC |
source code
|
|
|
|
suggest_needs_takeover(self,
cc_no,
channel)
Live -> Script: Live can ask whether a given CC needs takeover |
source code
|
|
|
|
|
|
|
| set_highlighting_session_component(self,
session_component) |
source code
|
|
|
|
highlighting_session_component(self)
Return the session component showing the ring in Live session |
source code
|
|
|
|
show_message(self,
message)
Displays the given message in Live's status bar |
source code
|
|
|
|
log_message(self,
*message)
Writes the given message into Live's main log file |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
build_midi_map(self,
midi_map_handle)
Live -> Script Build DeviceParameter Mappings, that are processed
in Audio time, or forward MIDI messages explicitly to our
receive_midi_functions. |
source code
|
|
|
|
toggle_lock(self)
Script -> Live Use this function to toggle the script's lock on
devices |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
receive_midi(self,
midi_bytes)
Live -> Script MIDI messages are only received through this
function, when explicitly forwarded in 'build_midi_map'. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| set_device_component(self,
device_component) |
source code
|
|
|
|
|
|
|
| _set_suppress_rebuild_requests(self,
suppress_requests) |
source code
|
|
|
|
| set_pad_translations(self,
pad_translations) |
source code
|
|
|
|
|
|
|
schedule_message(self,
delay_in_ticks,
callback,
parameter=None)
Schedule a callback to be called after a specified time |
source code
|
|
|
|
| _process_remaining_scheduled_messages(self) |
source code
|
|
|
|
|
|
|
set_controlled_track(self,
track)
Sets the track that will send its feedback to the control surface |
source code
|
|
|
|
_register_control(self,
control)
puts control into the list of controls for triggering updates |
source code
|
|
|
|
_register_component(self,
component)
puts component into the list of controls for triggering updates |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_send_midi(self,
midi_event_bytes,
optimized=True)
Script -> Live Use this function to send MIDI events through Live
to the _real_ MIDI devices that this script is assigned to. |
source code
|
|
|
|
|
|
|
|
|
|
| _install_mapping(self,
midi_map_handle,
control,
parameter,
feedback_delay,
feedback_map) |
source code
|
|
|
|
| _install_forwarding(self,
midi_map_handle,
control) |
source code
|
|
|
|
| _translate_message(self,
type,
from_identifier,
from_channel,
to_identifier,
to_channel) |
source code
|
|
|
|
| _set_session_highlight(self,
track_offset,
scene_offset,
width,
height,
include_return_tracks) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_refresh_displays(self)
Make sure the displays of the control surface display current data. |
source code
|
|
|
|
|
|
Inherited from SubjectSlot.SlotManager:
register_slot,
register_slot_manager
Inherited from Disconnectable.CompoundDisconnectable:
disconnect_disconnectable,
find_disconnectable,
has_disconnectable,
register_disconnectable,
unregister_disconnectable
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|