As it isn't well documented (or not at all) I'd like to collect information about how to deal with the control surfaces.
So far I know that a control surface has children, called controls, that represent the knobs and sliders of the hardware. And there are the components, wich are the part of ableton to be controled.
If you give an ID of a component/control to an live.object together with "getinfo", you'll see that there are almost no properties, but a lot of functions, that represent the parameters you might expect.
That's what I get from the component "TRANSPORT" of the Control Surface "GENERICSCRIPT" (the customizeable control surface for hardware that is not supported - also called "User Remote Scripts")
Code: Select all
print: info id 204
print: info type TransportComponent
print: info description Class encapsulating all functions in Live's transport section
print: info property canonical_parent GenericScript
print: info property name str
print: info property release_class_attributes function
print: info property set_register_component_callback function
print: info property set_register_timer_notification_callback function
print: info property set_request_rebuild_callback function
print: info property set_show_message_callback function
print: info property set_song_and_application function
print: info property set_unregister_timer_notification_callback function
print: info function application
print: info function disconnect
print: info function is_enabled
print: info function on_enabled_changed
print: info function on_scene_list_changed
print: info function on_selected_scene_changed
print: info function on_selected_track_changed
print: info function on_track_list_changed
print: info function set_allow_update
print: info function set_enabled
print: info function set_loop_button
print: info function set_metronome_button
print: info function set_nudge_buttons
print: info function set_overdub_button
print: info function set_play_button
print: info function set_punch_buttons
print: info function set_record_button
print: info function set_seek_buttons
print: info function set_song_position_control
print: info function set_stop_button
print: info function set_tap_tempo_button
print: info function set_tempo_control
print: info function song
print: info function update
print: info done
Now my questions:
1. I call e.g. "call set_tempo_control 120" - it always tells me that this is a wrong syntax. But what would be the correct syntax?
2. How can I GET the parameters? Sometimes there are callback-functions, but I also don't know the valid syntax...
Thanks and cheers,
ring