jdxi_editor.midi.parameter.spec

ParameterSpec class

Attributes

RANGE_BIPOLAR_63

Classes

ParameterSpec

Parameter specification that can be used in place of tuples for Enum definitions.

Module Contents

jdxi_editor.midi.parameter.spec.RANGE_BIPOLAR_63[source]
class jdxi_editor.midi.parameter.spec.ParameterSpec(*args, **kwargs)[source]

Bases: tuple

Parameter specification that can be used in place of tuples for Enum definitions.

Inherits from tuple so Enum can unpack it automatically. Provides named attributes for better code readability and IDE support.

Usage:

# In Enum class definition: PARAM = ParameterSpec(0x10, 0, 127) # address, min_val, max_val PARAM = ParameterSpec(0x10, 0, 127, description=”Description”) # with all params

# Access attributes: param.address # 0x10 param.min_val # 0 param.max_val # 127

get_offset() tuple[source]

Return (0, 0, address) for apply_address_offset to add param address to LSB.

get_display_value() tuple[source]

Return (min_display, max_display) for slider/UI range.