jdxi_editor.midi.data.parameter.digital.common
Module: AddressParameterDigitalCommon
This module defines the AddressParameterDigitalCommon class, which represents common parameters for Digital/SuperNATURAL synth tones. These parameters are shared across all partials and define various synthesizer settings, such as tone name, tone level, performance parameters, partial switches, and additional effects.
The class provides methods to:
Retrieve a human-readable display name for each parameter.
Identify if a parameter is a switch (binary or enum).
Get appropriate display text for switch values.
Validate and convert parameter values within their defined range.
Retrieve the partial number (1-3) for partial-specific parameters.
Get a parameter by its name.
Parameters include: - Tone name parameters (12 ASCII characters) - Tone level - Performance parameters (e.g., Portamento switch, Mono switch) - Partial switches (e.g., Partial 1 switch, Partial 2 switch) - Additional effect parameters (e.g., Ring Mod, Unison, Analog Feel)
- Usage example:
# Initialize a parameter object param = AddressParameterDigitalCommon(address=0x00, min_val=0, max_val=127)
# Get the display name for the parameter print(param.display_name)
# Validate and convert a value for the parameter valid_value = param.validate_value(64)
# Get the switch text for a given value switch_text = param.get_switch_text(1)
Classes
Common parameters for Digital/SuperNATURAL synth tones. |
Module Contents
- class jdxi_editor.midi.data.parameter.digital.common.DigitalCommonParam(address: int, min_val: int, max_val: int, tooltip: str = '')[source]
Bases:
picomidi.sysex.parameter.address.AddressParameterCommon parameters for Digital/SuperNATURAL synth tones. These parameters are shared across all partials.
- PORTAMENTO_SWITCH = (18, 0, 1, 'Specifies whether the portamento effect will be applied (ON) or not applied (OFF)')[source]
- MONO_SWITCH = (20, 0, 1, 'Specifies whether notes will sound polyphonically (POLY) or monophonically (MONO)')[source]