Skip to content

novation.print_to_clip

Module constants

  • MESSAGE_TYPE_INDEX = 0
  • PACKET_ID_SLICE
  • PAYLOAD_START_INDEX = 11
  • START_POSITION_SLICE
  • LENGTH_SLICE
  • PITCH_INDEX = 4
  • VELOCITY_INDEX = 5
  • MIN_DATA_PACKET_LENGTH = 13
  • BYTES_PER_GROUP_OFFSET = 3
  • BYTES_PER_NOTE = 6
  • TIME_FACTOR = 500.0
  • RESET_PACKET_ID_TASK_DELAY = 0.1
  • WRAPPED_NOTE_OFFSET = 0.1
  • LIMITATION_ERROR_MESSAGE = 'Print to clip failed: No more scenes can be inserted for this version of Live.'
  • PACKET_ERROR_MESSAGE = 'Print to clip failed: Transmission error detected. Please try again.'

Classes

class MessageType(object)

Bases: object

Attributes

  • begin = 1
  • data = 2
  • end = 3

class Note(object)

Bases: object

Attributes

  • pitch = 0
  • start = 1
  • length = 2
  • velocity = 3
  • mute = 4

class PrintToClipComponent(Component)

Bases: Component

Attributes

  • print_to_clip_enabler
  • _PrintToClipComponent__on_selected_track_changed

__init__(self, *a, **k)

_handle_data_packet(self, data_bytes)

_reset_last_packet_id(self)

_print_data_to_clip(self)

_create_clip(self, length)

_wrap_trailing_notes(self)

__on_selected_track_changed(self)

Functions

sum_multi_byte_value(data_bytes, bits_per_byte)

to_absolute_beat_time(data_bytes)

create_note(note_data, start_offset)