Skip to content

Push2.convert

Classes

class ConvertAction(object)

Bases: object

Attributes

  • needs_deferred_invocation = False

conversion(song, *a)

class ConvertCategory(EventObject)

Bases: EventObject

Attributes

  • color_source = None
  • name_source = None

__init__(self, actions, color_source, name_source, *a, **k)

convert(self, song, action_index)

class NullConvertCategory(ConvertCategory)

Bases: ConvertCategory

convert(self, song, action_index)

class TrackBasedConvertCategory(ConvertCategory)

Bases: ConvertCategory

__init__(self, track, *a, **k)

class MoveDeviceChain(ConvertAction)

Bases: ConvertAction

Attributes

  • label = 'Drum Pad'

conversion(song, track_index)

class MidiTrackWithoutSimpler(TrackBasedConvertCategory)

Bases: TrackBasedConvertCategory

Attributes

  • internal_name = 'midi_track_to_drum_pad'
  • _MidiTrackWithoutSimpler__on_playback_mode_changed

__init__(self, device, decorator_factory, *a, **k)

convert(self, song, action)

__on_playback_mode_changed(self)

_apply_simpler_properties(self, drum_pad, song, copiers)

_create_copiers(self)

class CreateTrackWithSimpler(ConvertAction)

Bases: ConvertAction

Attributes

  • label = 'Simpler'

conversion(song, clip)

class CreateTrackWithClipInDrumRackPad(ConvertAction)

Bases: ConvertAction

Attributes

  • label = 'Drum Pad'

conversion(song, clip)

class ConvertAudioClipToMidi(ConvertAction)

Bases: ConvertAction

Attributes

  • conversion_type = None

conversion(self, song, clip)

class ConvertAudioClipToHarmonyMidi(ConvertAudioClipToMidi)

Bases: ConvertAudioClipToMidi

Attributes

  • label = 'Harmony-MIDI'
  • conversion_type

class ConvertAudioClipToMelodyMidi(ConvertAudioClipToMidi)

Bases: ConvertAudioClipToMidi

Attributes

  • label = 'Melody-MIDI'
  • conversion_type

class ConvertAudioClipToDrumsMidi(ConvertAudioClipToMidi)

Bases: ConvertAudioClipToMidi

Attributes

  • label = 'Drums-MIDI'
  • conversion_type

class AudioTrackWithSessionClip(ConvertCategory)

Bases: ConvertCategory

Attributes

  • internal_name = 'audio_clip_to_simpler'
  • _AudioTrackWithSessionClip__on_has_clip_changed

__init__(self, clip_slot, track, *a, **k)

convert(self, song, action)

__on_has_clip_changed(self)

class AudioTrackWithArrangementClip(ConvertCategory)

Bases: ConvertCategory

Attributes

  • internal_name = 'audio_arrangement_clip_to_simpler'
  • _AudioTrackWithArrangementClip__on_detail_clip_changed

__init__(self, song_view, track, *a, **k)

convert(self, song, action)

__on_detail_clip_changed(self)

class SlicesToDrumRack(ConvertAction)

Bases: ConvertAction

Attributes

  • label = 'Drum Rack'
  • needs_deferred_invocation = True

conversion(song, device)

class MidiTrackWithSimpler(TrackBasedConvertCategory)

Bases: TrackBasedConvertCategory

Attributes

  • internal_name = 'sliced_simpler_to_drum_rack'
  • _MidiTrackWithSimpler__on_playback_mode_changed
  • _MidiTrackWithSimpler__on_sample_changed

__init__(self, device, *a, **k)

convert(self, song, action)

__on_playback_mode_changed(self)

__on_sample_changed(self)

class DrumPadToMidiTrack(ConvertAction)

Bases: ConvertAction

Attributes

  • label = 'MIDI track'

conversion(song, drum_pad)

class MidiTrackWithDrumRack(ConvertCategory)

Bases: ConvertCategory

Attributes

  • internal_name = 'drum_pad_to_midi_track'
  • _MidiTrackWithDrumRack__on_devices_changed
  • _MidiTrackWithDrumRack__on_chains_changed

__init__(self, drum_pad, track, *a, **k)

__on_devices_changed(self)

__on_chains_changed(self)

convert(self, song, action)

class ConvertComponent(Component)

Bases: Component

Attributes

  • source_color_index
  • source_name
  • _ConvertComponent__on_action_source_color_index_changed
  • _ConvertComponent__on_action_source_name_changed
  • _ConvertComponent__on_action_invalidated

__init__(self, tracks_provider, conversions_provider, decorator_factory, *a, **k)

available_conversions(self)

on_enabled_changed(self)

_update_possible_conversions(self)

__on_action_source_color_index_changed(self)

__on_action_source_name_changed(self)

action_buttons(self, button)

_do_conversion(self, action_index)

_do_conversion_deferred(self, action)

_invoke_conversion(self, action)

cancel_button(self, button)

__on_action_invalidated(self)

class ConvertEnabler(Component)

Bases: Component

Attributes

  • _ConvertEnabler__on_selected_item_changed
  • _ConvertEnabler__on_detail_clip_updated
  • _ConvertEnabler__on_devices_changed
  • _ConvertEnabler__on_selected_drum_pad_changed
  • _ConvertEnabler__on_drum_pad_chains_changed
  • _ConvertEnabler__on_drum_pad_chain_devices_changed
  • _ConvertEnabler__on_selected_scene_changed
  • _ConvertEnabler__on_clip_slot_has_clip_changed
  • _ConvertEnabler__on_clip_recording_status_changed
  • _ConvertEnabler__on_clip_playing_status_changed

__init__(self, enter_dialog_mode, exit_dialog_mode, *a, **k)

__on_selected_item_changed(self, _)

convert_toggle_button(self, button)

_can_enable_mode(self)

_disable_and_check_enabled_state(self)

__on_detail_clip_updated(self)

__on_devices_changed(self)

_update_drum_pad_listeners(self)

__on_selected_drum_pad_changed(self)

__on_drum_pad_chains_changed(self)

__on_drum_pad_chain_devices_changed(self)

__on_selected_scene_changed(self)

_update_clip_slot_listener(self)

__on_clip_slot_has_clip_changed(self)

_update_clip_listeners(self, clip_slot)

__on_clip_recording_status_changed(self)

__on_clip_playing_status_changed(self)

Functions

possible_conversions(track, decorator_factory)