# uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\Push2\model\__init__.py
# Compiled at: 2018-11-30 15:48:11
from __future__ import absolute_import, print_function, unicode_literals
from .declaration import Binding, custom_property, id_property, listmodel, listof, view_property, ViewModel, ModelVisitor
from .repr import BrowserItemAdapter, BrowserListWrapper, ClipAdapter, DeviceAdapter, DeviceParameterAdapter, EditModeOptionAdapter, ItemListAdapter, ItemSlotAdapter, LiveDialogAdapter, OptionsListAdapter, RoutingAdapter, SimplerDeviceAdapter, TrackAdapter, TrackControlAdapter, TrackListAdapter, TrackMixAdapter, VisibleAdapter
__all__ = (
 ModelVisitor,)

class RealTimeChannel(Binding):
    channel_id = view_property(unicode, b'')
    object_id = view_property(unicode, b'')


class VisibleModel(ViewModel):
    visible = view_property(bool, False)


class ClipPositions(Binding):
    start = view_property(float, -1)
    end = view_property(float, -1)
    start_marker = view_property(float, -1)
    end_marker = view_property(float, -1)
    loop_start = view_property(float, -1)
    loop_end = view_property(float, -1)


class ClipModel(Binding):
    ADAPTER = ClipAdapter
    id = id_property()
    name = view_property(unicode, b'')
    color_index = view_property(int, -1)
    is_recording = view_property(bool, False)
    warping = view_property(bool, False)
    positions = view_property(ClipPositions)
    loop_start = view_property(float, 0.0)
    loop_end = view_property(float, 0.0)
    signature_numerator = view_property(int, 4)
    signature_denominator = view_property(int, 4)


class Track(Binding):
    ADAPTER = TrackAdapter
    name = view_property(unicode, b'')
    colorIndex = view_property(int, -1)
    isFoldable = view_property(bool, False)
    containsDrumRack = view_property(bool, False)
    canShowChains = view_property(bool, False)
    nestingLevel = view_property(int, 0)
    activated = view_property(bool, True)
    isFrozen = view_property(bool, True)
    parent_track_frozen = view_property(bool, False)
    parentColorIndex = view_property(int, -1)
    arm = view_property(bool, False)
    isMaster = view_property(bool, False)
    isAudio = view_property(bool, False)
    isReturn = view_property(bool, False)
    hasPlayingClip = view_property(bool, False)
    playingClip = view_property(ClipModel)
    outputRouting = view_property(unicode, b'')
    id = id_property()


class TrackListModel(Binding):
    ADAPTER = TrackListAdapter
    visible = view_property(bool, False)
    tracks = view_property(listof(Track))
    selectedTrack = view_property(Track)
    absolute_selected_track_index = view_property(int, -1)
    playhead_real_time_channels = view_property(listof(RealTimeChannel))


class Device(Binding):
    ADAPTER = DeviceAdapter
    name = view_property(unicode, b'')
    navigation_name = view_property(unicode, b'')
    nestingLevel = view_property(int, 0)
    is_active = view_property(bool, False)
    id = id_property()
    class_name = view_property(unicode, b'')
    icon = view_property(unicode, b'')
    chain_color_index = view_property(int, -1)
    rack_color_index = view_property(int, -1)


class DeviceListModel(Binding):
    ADAPTER = ItemListAdapter
    visible = view_property(bool, False)
    items = view_property(listof(Device))
    selectedItem = view_property(Device)
    moving = view_property(bool, False)


class ItemSlotModel(Binding):
    ADAPTER = ItemSlotAdapter
    name = view_property(unicode, b'')
    icon = view_property(unicode, b'')


class ParameterBankListModel(Binding):
    ADAPTER = ItemListAdapter
    visible = view_property(bool, False)
    items = view_property(listof(ItemSlotModel))
    selectedItem = view_property(ItemSlotModel)


class EditModeOption(Binding):
    ADAPTER = EditModeOptionAdapter
    choices = view_property(listof(unicode))
    activeIndex = view_property(int, 0)
    active = view_property(bool, False)


class EditModeOptionsModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    device = view_property(Device)
    options = view_property(listof(EditModeOption))


class TransportState(Binding):
    count_in_duration = view_property(int, 0)
    count_in_real_time_channel_id = view_property(unicode, b'')
    is_counting_in = view_property(bool, False)
    signature_numerator = view_property(int, 4)
    signature_denominator = view_property(int, 4)
    is_playing = view_property(bool, False)


class Chain(Binding):
    ADAPTER = ItemSlotAdapter
    name = view_property(unicode, b'')
    id = id_property()
    icon = view_property(unicode, b'')
    color_index = view_property(int, -1)


class ChainListModel(Binding):
    ADAPTER = ItemListAdapter
    visible = view_property(bool, False)
    items = view_property(listof(Chain))
    selectedItem = view_property(Chain)


class MixerSelectionListModel(Binding):
    ADAPTER = OptionsListAdapter
    visible = view_property(bool, False)
    items = view_property(listof(ItemSlotModel))
    selectedItem = view_property(unicode, b'')


class TrackMixerSelectionListModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    items = view_property(listof(ItemSlotModel))


class DeviceParameter(Binding):
    ADAPTER = DeviceParameterAdapter
    name = view_property(unicode, b'')
    original_name = view_property(unicode, b'')
    min = view_property(float, 0.0)
    max = view_property(float, 0.0)
    value = view_property(float, 0.0)
    valueItems = view_property(listof(unicode))
    valueItemImages = view_property(listof(unicode))
    valueItemSmallImages = view_property(listof(unicode))
    displayValue = view_property(unicode, b'')
    unit = view_property(unicode, b'')
    id = id_property()
    is_enabled = view_property(bool, True)
    hasAutomation = view_property(bool, False)
    automationActive = view_property(bool, False)
    isActive = view_property(bool, True)


class Encoder(Binding):
    id = id_property()
    touched = view_property(bool, False)


class Controls(ViewModel):
    encoders = view_property(listof(Encoder))


class Slice(Binding):
    id = id_property()
    time = view_property(float, -1)


class SimplerPositions(Binding):
    start = view_property(float, 0)
    end = view_property(float, 0)
    start_marker = view_property(float, 0)
    end_marker = view_property(float, 0)
    active_start = view_property(float, 0)
    active_end = view_property(float, 0)
    loop_start = view_property(float, 0)
    loop_end = view_property(float, 0)
    loop_fade_in_samples = view_property(float, 0)
    env_fade_in = view_property(float, 0)
    env_fade_out = view_property(float, 0)
    slices = view_property(listmodel(Slice))
    selected_slice = view_property(Slice)


class TimelineNavigationFocusMarker(Binding):
    name = view_property(unicode, b'')
    position = view_property(float, -1)


class TimelineRegion(Binding):
    start = view_property(float, 0.0)
    end = view_property(float, 0.0)


class WaveformNavigation(Binding):
    animate_visible_region = view_property(bool, False)
    visible_region = view_property(TimelineRegion, depends=animate_visible_region)
    visible_region_in_samples = view_property(TimelineRegion, depends=animate_visible_region)
    show_focus = view_property(bool, False)
    focus_marker = view_property(TimelineNavigationFocusMarker)


class TimelineNavigation(Binding):
    animate_visible_region = view_property(bool, False)
    visible_region = view_property(TimelineRegion, depends=animate_visible_region)
    show_focus = view_property(bool, False)
    focus_marker = view_property(TimelineNavigationFocusMarker)


class SimplerProperties(Binding):
    ADAPTER = SimplerDeviceAdapter
    sample_start = view_property(DeviceParameter)
    sample_length = view_property(DeviceParameter)
    loop_length = view_property(DeviceParameter)
    loop_on = view_property(DeviceParameter)
    gain = view_property(float, 0.0)
    start_marker = view_property(int, 0)
    end_marker = view_property(int, 0)
    multi_sample_mode = view_property(bool, False)
    current_playback_mode = view_property(int, 0)
    slices = view_property(listmodel(Slice))
    selected_slice = view_property(Slice)
    playhead_real_time_channel_id = view_property(unicode, b'')
    waveform_real_time_channel_id = view_property(unicode, b'')
    warping = view_property(bool, False)
    positions = view_property(SimplerPositions)
    waveform_navigation = view_property(WaveformNavigation)


class DeviceParameterListModel(ViewModel):
    visible = view_property(bool, False)
    deviceType = view_property(unicode, b'')
    device = view_property(Device)
    parameters = view_property(listof(DeviceParameter))


class DeviceVisualisationModel(Binding):
    shrink_parameters = view_property(listof(bool))
    visualisation_real_time_channel_id = view_property(unicode, b'')


class SimplerDeviceViewModel(ViewModel):
    visible = view_property(bool, False)
    deviceType = view_property(unicode, b'')
    device = view_property(Device)
    parameters = view_property(listof(DeviceParameter))
    properties = view_property(SimplerProperties)
    bank_view_description = view_property(unicode, b'')


class TrackMixModel(Binding):
    ADAPTER = TrackMixAdapter
    visible = view_property(bool, False)
    parameters = view_property(listof(DeviceParameter))
    scrollOffset = view_property(int, 0)
    real_time_meter_channel = view_property(RealTimeChannel)


class RoutingType(Binding):
    id = id_property()
    name = view_property(unicode, b'')


class RoutingChannel(Binding):
    id = id_property()
    name = view_property(unicode, b'')
    layout = view_property(unicode, b'')
    realtime_channel = view_property(RealTimeChannel)


class RoutingTypeList(Binding):
    id = id_property()
    targets = view_property(listof(RoutingType))
    selected_target = view_property(RoutingType)
    selected_index = view_property(int, -1, depends=targets)
    selected_track = view_property(Track)


class RoutingChannelList(Binding):
    id = id_property()
    targets = view_property(listof(RoutingChannel))
    selected_target = view_property(RoutingChannel)
    selected_index = view_property(int, -1, depends=targets)


class RoutingChannelPositionList(Binding):
    id = id_property()
    targets = view_property(listof(unicode))
    selected_index = view_property(int, -1, depends=targets)


class RoutingControlModel(Binding):
    ADAPTER = RoutingAdapter
    monitoring_state_index = view_property(int, 0)
    can_monitor = view_property(bool, False)
    can_route = view_property(bool, False)
    is_choosing_output = view_property(bool, False)
    routingTypeList = view_property(listof(RoutingTypeList))
    routingChannelList = view_property(listof(RoutingChannelList))
    routingChannelPositionList = view_property(listof(RoutingChannelPositionList))


class CompressorDeviceViewModel(ViewModel):
    visible = view_property(bool, False)
    deviceType = view_property(unicode, b'')
    device = view_property(Device)
    parameters = view_property(listof(DeviceParameter))
    bank_view_description = view_property(unicode, b'')
    routing_type_list = view_property(RoutingTypeList)
    routing_channel_list = view_property(RoutingChannelList)
    routing_channel_position_list = view_property(RoutingChannelPositionList)


class TrackControlModel(Binding):
    ADAPTER = TrackControlAdapter
    track_control_mode = view_property(unicode, b'')
    routing_mode_available = view_property(bool, False)
    track_mix = view_property(TrackMixModel)
    routing = view_property(RoutingControlModel)


class BrowserListView(Binding):
    id = id_property()
    selected_index = view_property(int, -1)


class BrowserItem(Binding):
    ADAPTER = BrowserItemAdapter
    id = id_property()
    name = view_property(unicode, b'')
    icon = view_property(unicode, b'')
    is_loadable = view_property(bool, False)
    is_device = view_property(bool, False)
    color_label_index = view_property(int, -1)


class BrowserLoadNeighbourOverlay(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    can_load_next = view_property(bool, False)
    can_load_previous = view_property(bool, False)


class BrowserModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    lists = view_property(listmodel(BrowserListView))
    scrolling = view_property(bool, False)
    horizontal_navigation = view_property(bool, False)
    focused_list_index = view_property(int, -1)
    focused_item = view_property(BrowserItem)
    list_offset = view_property(int, 0)
    can_enter = view_property(bool, False)
    can_exit = view_property(bool, False)
    expanded = view_property(bool, False)
    prehear_enabled = view_property(bool, False)
    context_text = view_property(unicode, b'')
    context_color_index = view_property(int, -1)
    context_display_type = view_property(unicode, b'')
    load_neighbour_overlay = view_property(BrowserLoadNeighbourOverlay)
    should_widen_focused_item = view_property(bool, False)


class BrowserList(Binding):
    id = id_property()
    items = custom_property(listmodel(BrowserItem), wrapper_class=BrowserListWrapper)


class BrowserData(Binding):
    lists = view_property(listmodel(BrowserList))


class Notification(Binding):
    visible = view_property(bool, False)
    message = view_property(unicode, b'')


class RealTimeClient(Binding):
    clientId = view_property(unicode, b'')


class ConvertModel(Binding):
    ADAPTER = VisibleAdapter
    source_color_index = view_property(int, -1)
    source_name = view_property(unicode, b'')
    visible = view_property(bool, False)
    available_conversions = view_property(listof(unicode))


class NoteLayout(Binding):
    is_in_key = view_property(bool, False)
    is_fixed = view_property(bool, False)
    is_horizontal = view_property(bool, False)


class ScalesModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    scale_names = view_property(listof(unicode), b'')
    selected_scale_index = view_property(int, -1)
    layout_names = view_property(listof(unicode), b'')
    selected_layout_index = view_property(int, 0)
    root_note_names = view_property(listof(unicode), b'')
    selected_root_note_index = view_property(int, -1)
    note_layout = view_property(NoteLayout)
    horizontal_navigation = view_property(bool, False)


class QuantizeSettingsModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    swing_amount = view_property(float, 0.0)
    quantize_to_index = view_property(int, -1)
    quantize_amount = view_property(float, 0.0)
    record_quantization_index = view_property(int, -1)
    record_quantization_enabled = view_property(bool, False)
    quantization_option_names = view_property(listof(unicode))


class StepSettingsModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)


class StepAutomationSettingsModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    deviceType = view_property(unicode, b'')
    parameters = view_property(listof(DeviceParameter))
    device = view_property(Device)
    can_automate_parameters = view_property(bool, False)


class NoteSettingModel(Binding):
    min = view_property(float, 0.0)
    max = view_property(float, 0.0)


class NoteSettingsModel(Binding):
    ADAPTER = VisibleAdapter
    nudge = view_property(NoteSettingModel)
    coarse = view_property(NoteSettingModel)
    fine = view_property(NoteSettingModel)
    velocity = view_property(NoteSettingModel)
    color_index = view_property(int, -1)
    visible = view_property(bool, False)


class FixedLengthSettingsModel(Binding):
    option_names = view_property(listof(unicode))
    selected_index = view_property(int, -1)
    enabled = view_property(bool, False)
    legato_launch = view_property(bool, False)


class FixedLengthSelectorModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)


class AudioLoopSettingsModel(Binding):
    clip = view_property(ClipModel)
    looping = view_property(bool, False)
    loop_parameters = view_property(listof(DeviceParameter))
    timeline_navigation = view_property(WaveformNavigation)


class MidiLoopSettingsModel(Binding):
    clip = view_property(ClipModel)
    looping = view_property(bool, False)
    loop_parameters = view_property(listof(DeviceParameter))
    timeline_navigation = view_property(TimelineNavigation)


class AudioClipSettingsModel(Binding):
    warping = view_property(bool, False)
    gain = view_property(float, 0.0)
    audio_parameters = view_property(listof(DeviceParameter))
    waveform_real_time_channel_id = view_property(unicode, b'')
    playhead_real_time_channel_id = view_property(unicode, b'')


class MidiClipVisualisationModel(Binding):
    visualisation_real_time_channel_id = view_property(unicode, b'')


class ModeState(Binding):
    main_mode = view_property(unicode, b'')
    mix_mode = view_property(unicode, b'')
    global_mix_mode = view_property(unicode, b'')
    device_mode = view_property(unicode, b'')


class MixerViewModel(ViewModel):
    volumeControlListView = view_property(DeviceParameterListModel)
    panControlListView = view_property(DeviceParameterListModel)
    trackControlView = view_property(TrackControlModel)
    sendControlListView = view_property(DeviceParameterListModel)
    realtimeMeterData = view_property(listof(RealTimeChannel))


class GeneralSettingsModel(Binding):
    workflow = view_property(unicode, b'scene')


class PadSettingsModel(Binding):
    sensitivity = view_property(int, 0)
    min_sensitivity = view_property(int, 0)
    max_sensitivity = view_property(int, 0)
    gain = view_property(int, 0)
    min_gain = view_property(int, 0)
    max_gain = view_property(int, 0)
    dynamics = view_property(int, 0)
    min_dynamics = view_property(int, 0)
    max_dynamics = view_property(int, 0)


class HardwareSettingsModel(Binding):
    min_led_brightness = view_property(int, 0)
    max_led_brightness = view_property(int, 0)
    led_brightness = view_property(int, 0)
    min_display_brightness = view_property(int, 0)
    max_display_brightness = view_property(int, 0)
    display_brightness = view_property(int, 0)


class DisplayDebugSettingsModel(Binding):
    show_row_spaces = view_property(bool, False)
    show_row_margins = view_property(bool, False)
    show_row_middle = view_property(bool, False)
    show_button_spaces = view_property(bool, False)
    show_unlit_button = view_property(bool, False)
    show_lit_button = view_property(bool, False)


class SettingsModel(Binding):
    general = view_property(GeneralSettingsModel)
    pad_settings = view_property(PadSettingsModel)
    hardware = view_property(HardwareSettingsModel)
    display_debug = view_property(DisplayDebugSettingsModel)


class VelocityCurveModel(Binding):
    curve_points = view_property(listof(int))


class SetupModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    settings = view_property(SettingsModel)
    selected_mode = view_property(unicode, b'')
    modes = view_property(listof(unicode))
    velocity_curve = view_property(VelocityCurveModel)
    make_it_go_boom = view_property(bool, False)


class ValueModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    value_string = view_property(unicode, b'')


class ImportantGlobals(ViewModel):
    masterVolume = view_property(ValueModel)
    cueVolume = view_property(ValueModel)
    swing = view_property(ValueModel)
    tempo = view_property(ValueModel)


class FirmwareVersion(Binding):
    major = view_property(int, 0)
    minor = view_property(int, 0)
    build = view_property(int, 0)
    release_type = view_property(unicode, b'')


class HardwareInfo(ViewModel):
    firmwareVersion = view_property(FirmwareVersion)
    serialNumber = view_property(int, 0)


class FirmwareUpdateModel(Binding):
    ADAPTER = VisibleAdapter
    visible = view_property(bool, False)
    firmware_file = view_property(unicode, b'')
    data_file = view_property(unicode, b'')
    state = view_property(unicode, b'')


class FirmwareSwitcher(Binding):
    can_switch_firmware = view_property(bool, False)
    version_to_switch_to = view_property(FirmwareVersion)


class LiveDialogViewModel(Binding):
    ADAPTER = LiveDialogAdapter
    visible = view_property(bool, False)
    text = view_property(unicode, b'')
    can_cancel = view_property(bool, False)


class Color(Binding):
    red = view_property(int, 0)
    green = view_property(int, 0)
    blue = view_property(int, 0)


class VisualisationSettings(Binding):
    base_colors = view_property(listof(Color))
    shade1_colors = view_property(listof(Color))
    shade2_colors = view_property(listof(Color))
    shade3_colors = view_property(listof(Color))
    shade4_colors = view_property(listof(Color))
    shade5_colors = view_property(listof(Color))
    button_left = view_property(int, 0)
    light_left = view_property(int, 0)
    light_right = view_property(int, 0)
    button_right = view_property(int, 0)
    row_top = view_property(int, 0)
    body_top = view_property(int, 0)
    body_bottom = view_property(int, 0)
    row_bottom = view_property(int, 0)
    button_spacing = view_property(int, 0)
    row_spacing = view_property(int, 0)
    body_height = view_property(int, 0)
    body_margin = view_property(int, 0)
    button_light_margin = view_property(int, 0)
    button_gap = view_property(int, 0)
    row_height = view_property(int, 0)
    row_gap = view_property(int, 0)
    screen_width = view_property(int, 0)
    screen_height = view_property(int, 0)
    visualisation_left = view_property(int, 0)
    visualisation_top = view_property(int, 0)


class RootModel(ViewModel):
    visualisationSettings = view_property(VisualisationSettings)
    notificationView = view_property(Notification)
    realTimeClient = view_property(RealTimeClient)
    modeState = view_property(ModeState)
    controls = view_property(Controls)
    transportState = view_property(TransportState)
    liveDialogView = view_property(LiveDialogViewModel)
    mixerSelectView = view_property(MixerSelectionListModel)
    trackMixerSelectView = view_property(TrackMixerSelectionListModel)
    devicelistView = view_property(DeviceListModel)
    editModeOptionsView = view_property(EditModeOptionsModel)
    deviceParameterView = view_property(DeviceParameterListModel)
    simplerDeviceView = view_property(SimplerDeviceViewModel)
    compressorDeviceView = view_property(CompressorDeviceViewModel)
    deviceVisualisation = view_property(DeviceVisualisationModel)
    mixerView = view_property(MixerViewModel)
    tracklistView = view_property(TrackListModel)
    chainListView = view_property(ChainListModel)
    parameterBankListView = view_property(ParameterBankListModel)
    browserView = view_property(BrowserModel)
    browserData = view_property(BrowserData)
    convertView = view_property(ConvertModel)
    scalesView = view_property(ScalesModel)
    quantizeSettingsView = view_property(QuantizeSettingsModel)
    fixedLengthSelectorView = view_property(FixedLengthSelectorModel)
    fixedLengthSettings = view_property(FixedLengthSettingsModel)
    noteSettingsView = view_property(NoteSettingsModel)
    stepSettingsView = view_property(StepSettingsModel)
    stepAutomationSettingsView = view_property(StepAutomationSettingsModel)
    audioClipSettingsView = view_property(AudioClipSettingsModel)
    midiClipSettingsView = view_property(MidiClipVisualisationModel)
    audioLoopSettingsView = view_property(AudioLoopSettingsModel)
    midiLoopSettingsView = view_property(MidiLoopSettingsModel)
    setupView = view_property(SetupModel)
    importantGlobals = view_property(ImportantGlobals)
    hardwareInfo = view_property(HardwareInfo)
    firmwareUpdate = view_property(FirmwareUpdateModel)
    firmwareSwitcher = view_property(FirmwareSwitcher)