Skip to content

BLOCKS.blocks

Module constants

  • NUM_TRACKS = 4
  • NUM_SCENES = 4
  • MODE_MSG_CHANNEL = 15
  • MODE_NAMES_TO_IDS
  • MELODIC_FEEDBACK_CHANNEL = 3
  • DRUM_FEEDBACK_CHANNEL = 4
  • NON_FEEDBACK_CHANNEL = 0
  • FEEDBACK_CHANNELS
  • TEMPO_MIN = 20.0
  • TEMPO_MAX = 250.0
  • PB_VALUE_RANGE_MAX = 16383
  • SYSEX_HEADER = (240, 0, 33, 16)

Classes

class Blocks(SimpleControlSurface)

Bases: SimpleControlSurface

Attributes

  • handle_undo_steps = True
  • _Blocks__on_target_track_changed
  • _Blocks__on_percussion_instrument_found
  • _Blocks__on_armed_tracks_changed
  • _Blocks__on_tempo_changed_in_live
  • _Blocks__on_session_record_changed
  • _Blocks__on_surface_update_message_received

__init__(self, *a, **k)

_create_controls(self)

_create_session(self)

_create_navigation(self)

_create_drums(self)

_create_drum_finder(self)

_create_modes(self)

__on_target_track_changed(self)

__on_percussion_instrument_found(self)

__on_armed_tracks_changed(self)

__on_tempo_changed_in_live(self)

__on_session_record_changed(self)

__on_surface_update_message_received(self, value)

_set_feedback_velocity(self)

_select_note_mode(self)

_send_mode_message(self, mode)

_clear_send_cache(self, controls)

port_settings_changed(self)

Functions

is_playable(track)