Saturday, December 18, 2010

Simple Insight

Some of the Remote Scripts have a function called update_display.
I was scouring the various online resources for info on this, because I wanted to utilize it for making a blinking button. This is part of the 'special behavior' that any MIDI Remote Script must include as a part of itself. The script itself must implement a sort of abstract class.

In reading the sparse comments of some of the _Framework classes, I got the big idea to run this init.py script. I thought it would possibly show any expected methods in the Live module that one can import:
import Live
def create_instance(c_instance):
  for name in dir(Live):
    c_instance.log_message(name)
  return None
Then I checked my log file and found stuff that reflects the LOM and also a nice little class signature formed of errors..
8713361 ms. RemoteScriptMessage: Application
8713362 ms. RemoteScriptMessage: Clip
8713362 ms. RemoteScriptMessage: ClipSlot
8713362 ms. RemoteScriptMessage: Device
8713363 ms. RemoteScriptMessage: DeviceParameter
8713363 ms. RemoteScriptMessage: MidiMap
8713363 ms. RemoteScriptMessage: MixerDevice
8713364 ms. RemoteScriptMessage: Scene
8713364 ms. RemoteScriptMessage: Song
8713364 ms. RemoteScriptMessage: String
8713365 ms. RemoteScriptMessage: Track
8713365 ms. RemoteScriptMessage: __doc__
8713365 ms. RemoteScriptMessage: __name__
8713366 ms. RemoteScriptError: AttributeError
8713366 ms. RemoteScriptError: :
8713366 ms. RemoteScriptError: 'NoneType' object has no attribute 'refresh_state'
8713367 ms. RemoteScriptError:

8713367 ms. RemoteScriptError: AttributeError
8713367 ms. RemoteScriptError: :
8713368 ms. RemoteScriptError: 'NoneType' object has no attribute 'connect_script_instances'
8713368 ms. RemoteScriptError:

8713368 ms. RemoteScriptError: AttributeError
8713369 ms. RemoteScriptError: :
8713369 ms. RemoteScriptError: 'NoneType' object has no attribute 'can_lock_to_devices'
8713369 ms. RemoteScriptError:

8713525 ms. RemoteScriptError: AttributeError
8713525 ms. RemoteScriptError: :
8713526 ms. RemoteScriptError: 'NoneType' object has no attribute 'build_midi_map'
8713526 ms. RemoteScriptError:

8713552 ms. RemoteScriptError: AttributeError
8713552 ms. RemoteScriptError: :
8713553 ms. RemoteScriptError: 'NoneType' object has no attribute 'suggest_input_port'
8713553 ms. RemoteScriptError:

8713554 ms. RemoteScriptError: AttributeError
8713554 ms. RemoteScriptError: :
8713555 ms. RemoteScriptError: 'NoneType' object has no attribute 'suggest_output_port'
8713555 ms. RemoteScriptError:

8713681 ms. RemoteScriptError: AttributeError
8713681 ms. RemoteScriptError: :
8713682 ms. RemoteScriptError: 'NoneType' object has no attribute 'update_display'
8713683 ms. RemoteScriptError:

8713791 ms. RemoteScriptError: AttributeError
8713791 ms. RemoteScriptError: :
8713792 ms. RemoteScriptError: 'NoneType' object has no attribute 'update_display'
8713793 ms. RemoteScriptError:

8713901 ms. RemoteScriptError: AttributeError
8713902 ms. RemoteScriptError: :
8713903 ms. RemoteScriptError: 'NoneType' object has no attribute 'update_display'
8713903 ms. RemoteScriptError:

8714001 ms. RemoteScriptError: AttributeError
8714001 ms. RemoteScriptError: :
8714002 ms. RemoteScriptError: 'NoneType' object has no attribute 'update_display'
8714002 ms. RemoteScriptError:

8714104 ms. RemoteScriptError: AttributeError
8714104 ms. RemoteScriptError: :
8714105 ms. RemoteScriptError: 'NoneType' object has no attribute 'update_display'
8714106 ms. RemoteScriptError:

8714211 ms. RemoteScriptError: AttributeError
8714212 ms. RemoteScriptError: :
8714213 ms. RemoteScriptError: 'NoneType' object has no attribute 'update_display'
8714213 ms. RemoteScriptError:
... update_display continues to be called at a regularish rate
8799427 ms. RemoteScriptError: AttributeError
8799427 ms. RemoteScriptError: :
8799428 ms. RemoteScriptError: 'NoneType' object has no attribute 'disconnect'
8799428 ms. RemoteScriptError: