<commit_before># by amounra 0216 : http://www.aumhaa.com
# written against Live 9.6 release on 021516

from __future__ import absolute_import, print_function

import Live

from ableton.v2.control_surface.elements.encoder import EncoderElement
from ableton.v2.control_surface.input_control_element import InputControlElement
from ableton.v2.control_surface.control_element import NotifyingControlElement

from aumhaa.v2.control_surface.elements.mono_bridge import MonoBridgeProxy
from aumhaa.v2.base.debug import initialize_debug

debug = initialize_debug()

MIDI_NOTE_TYPE = 0
MIDI_CC_TYPE = 1
MIDI_PB_TYPE = 2
MIDI_MSG_TYPES = (MIDI_NOTE_TYPE,
 MIDI_CC_TYPE,
 MIDI_PB_TYPE)
MIDI_NOTE_ON_STATUS = 144
MIDI_NOTE_OFF_STATUS = 128
MIDI_CC_STATUS = 176
MIDI_PB_STATUS = 224

class MonoEncoderElement(EncoderElement):
	__module__ = __name__
	__doc__ = ' Class representing a slider on the controller '


	def __init__(self, name = 'MonoEncoder', num = 0, script = None, mapping_feedback_delay = 1, monobridge = None, *a, **k):
		super(MonoEncoderElement, self).__init__(map_mode=Live.MidiMap.MapMode.absolute, *a, **k)
		self._mapping_feedback_delay = mapping_feedback_delay
		self.num = num
		self._parameter = None
		self._script = script
		self._is_enabled = True
		self._paramter_lcd_name = ' '
		self._parameter_last_value = None
		self._mapped_to_midi_velocity = False
		if not monobridge is None:
			self._monobridge = monobridge
		elif hasattr(script, '_monobridge'):
			self._monobridge = script._monobridge
		else:
			self._monobridge = MonoBridgeProxy()<commit_msg>mono_encoder   :   fixed name declaration at __init__ which prevented LCD patch from working properly.<commit_after># by amounra 0216 : http://www.aumhaa.com
# written against Live 9.6 release on 021516

from __future__ import absolute_import, print_function
import Live

from ableton.v2.control_surface.elements.encoder import EncoderElement
from ableton.v2.control_surface.input_control_element import InputControlElement
from ableton.v2.control_surface.control_element import NotifyingControlElement

from aumhaa.v2.control_surface.elements.mono_bridge import MonoBridgeProxy
from aumhaa.v2.base.debug import initialize_debug

debug = initialize_debug()

MIDI_NOTE_TYPE = 0
MIDI_CC_TYPE = 1
MIDI_PB_TYPE = 2
MIDI_MSG_TYPES = (MIDI_NOTE_TYPE,
 MIDI_CC_TYPE,
 MIDI_PB_TYPE)
MIDI_NOTE_ON_STATUS = 144
MIDI_NOTE_OFF_STATUS = 128
MIDI_CC_STATUS = 176
MIDI_PB_STATUS = 224

class MonoEncoderElement(EncoderElement):
	__module__ = __name__
	__doc__ = ' Class representing a slider on the controller '


	def __init__(self, name = 'MonoEncoder', num = 0, script = None, mapping_feedback_delay = 1, monobridge = None, *a, **k):
		super(MonoEncoderElement, self).__init__(map_mode=Live.MidiMap.MapMode.absolute, *a, **k)
		self._mapping_feedback_delay = mapping_feedback_delay
		self.num = num
		self.name = name
		self._parameter = None
		self._script = script
		self._is_enabled = True
		self._paramter_lcd_name = ' '
		self._parameter_last_value = None
		self._mapped_to_midi_velocity = False
		if not monobridge is None:
			self._monobridge = monobridge
		elif hasattr(script, '_monobridge'):
			self._monobridge = script._monobridge
		else:
			self._monobridge = MonoBridgeProxy()
{'fraction_non_alphanumeric': 0.07633117882425362, 'fraction_numerical': 0.020929516774392122, 'mean_word_length': 5.55241935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4886066', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1104, 'n_words': 251}