Skip to content

pushbase.quantization_component

Module constants

  • RecordingQuantization
  • QUANTIZATION_OPTIONS
  • DEFAULT_QUANTIZATION_INDEX
  • QUANTIZATION_NAMES = ('1/4', '1/8', '1/8T', '1/8+T', '1/16', '1/16T', '1/16+T', '1/32')
  • QUANTIZATION_NAMES_UNICODE = ('¼', '⅛', '⅛T', '⅛+T', '\ue001', '\ue001T', '\ue001+T', '\ue002')

Classes

class QuantizationSettingsComponent(Component)

Bases: Component

Attributes

  • quantize_amount
  • quantize_to_index
  • record_quantization_index
  • _QuantizationSettingsComponent__on_swing_amount_changed
  • _QuantizationSettingsComponent__on_record_quantization_changed

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

quantize_to(self)

swing_amount(self)

record_quantization_enabled(self)

quantization_option_names(self)

selected_quantization_name(self)

swing_amount_encoder(self, value, encoder)

_clamp_quantization_index(index)

quantize_to_encoder(self, value, encoder)

quantize_amount_encoder(self, value, encoder)

record_quantization_encoder(self, value, encoder)

record_quantization_toggle_button(self, value, button)

__on_swing_amount_changed(self)

__on_record_quantization_changed(self)

_update_record_quantization(self)

class QuantizationComponent(Component, Messenger)

Bases: Component, Messenger

__init__(self, settings_class, quantization_names, *a, **k)

quantize_pitch(self, note, source)

action_button(self, button)

hide_settings(self, button)

action_button(self, button)

Functions

quantize_amount_to_string(amount)