simple-carla 2.4.0__tar.gz → 2.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simple_carla
3
- Version: 2.4.0
3
+ Version: 2.5.1
4
4
  Summary: An easy-to-use, object-oriented interface to the carla plugin host.
5
5
  Author-email: Leon Dionne <ldionne@dridesign.sh.cn>
6
6
  Description-Content-Type: text/markdown
@@ -8,7 +8,6 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (G
8
8
  Requires-Dist: numpy
9
9
  Requires-Dist: log_soso
10
10
  Requires-Dist: PyQt5
11
- Requires-Dist: soso_qt_extras >= 1.2.0
12
11
  Project-URL: Home, https://github.com/Zen-Master-SoSo/simple_carla
13
12
 
14
13
  # simple_carla
@@ -5,7 +5,7 @@ readme = "README.md"
5
5
  license = {file = "LICENSE"}
6
6
  classifiers = ["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"]
7
7
  dynamic = ["version", "description"]
8
- dependencies = ["numpy", "log_soso", "PyQt5", "soso_qt_extras >= 1.2.0"]
8
+ dependencies = ["numpy", "log_soso", "PyQt5"]
9
9
 
10
10
  [project.urls]
11
11
  Home = "https://github.com/Zen-Master-SoSo/simple_carla"
@@ -19,7 +19,7 @@ sc-plugin-def = "simple_carla.scripts.sc_plugin_def:main"
19
19
  sc-plugin-info = "simple_carla.scripts.sc_plugin_info:main"
20
20
 
21
21
  [bumpver]
22
- current_version = "2.4.0"
22
+ current_version = "2.5.1"
23
23
  version_pattern = "MAJOR.MINOR.PATCH"
24
24
  commit_message = "Bump version {old_version} -> {new_version}"
25
25
  commit = true
@@ -240,7 +240,7 @@ from carla_backend import (
240
240
  )
241
241
 
242
242
 
243
- __version__ = "2.4.0"
243
+ __version__ = "2.5.1"
244
244
 
245
245
 
246
246
  # -------------------------------------------------------------------
@@ -2712,7 +2712,7 @@ class Plugin(PatchbayClient):
2712
2712
  _cb_ready = None
2713
2713
  _cb_removed = None
2714
2714
 
2715
- _save_state_keys = [ 'unique_name', 'moniker',
2715
+ _save_state_keys = [ 'moniker',
2716
2716
  'active', 'volume', 'dry_wet', 'panning', 'balance_left', 'balance_right',
2717
2717
  'prefer_generic_dialog', 'send_all_sound_off', 'send_channel_pressure', 'send_control_changes',
2718
2718
  'send_note_aftertouch', 'send_pitchbend', 'send_program_changes', 'skip_sending_notes', 'force_stereo' ]
@@ -21,7 +21,6 @@
21
21
  Qt -enabled classes which utilize signals rather than callbacks.
22
22
  """
23
23
  import logging, traceback, os, sys
24
- import qt_extras.autofit
25
24
  from PyQt5.QtCore import QObject, pyqtSignal
26
25
  from simple_carla import _SimpleCarla, Plugin, Parameter, \
27
26
  PatchbayClient, PatchbayPort, PatchbayConnection
@@ -71,30 +71,35 @@ Output Parameters: {plugin.output_parameter_count}
71
71
  Maker: {plugin.maker}
72
72
  Category: {plugin.category}
73
73
  Label: {plugin.label}
74
- Filename: {plugin.filename}""")
74
+ Filename: {plugin.filename}
75
+ """)
75
76
  for param in plugin.parameters.values():
76
- type_name = 'Boolean' if param.is_boolean \
77
+ param.type_name = 'Boolean' if param.is_boolean \
77
78
  else 'Integer' if param.is_integer \
78
79
  else 'Float'
79
-
80
- print(f"""
81
- Parameter: {param.name}
82
- Symbol: {param.symbol}
83
- Comment: {param.comment}
84
- Group Name: {param.groupName}
85
- Unit: {param.unit}
86
- Enabled: {param.is_enabled}
87
- Type: {type_name}
88
- Min: {param.min}
89
- Max: {param.max}
90
- Step: {param.step}
91
- Automatable: {param.is_automatable}
92
- Read only: {param.is_read_only}
93
- Uses samplerate: {param.uses_samplerate}
94
- Uses scalepoints: {param.uses_scalepoints}
95
- Scale point count: {param.scalePointCount}
96
- Uses custom text: {param.uses_custom_text}
97
- Can be CV controlled: {param.can_be_cv_controlled}""")
80
+ for label, att in [
81
+ ('Parameter: ', 'name'),
82
+ ('Symbol: ', 'symbol'),
83
+ ('Comment: ', 'comment'),
84
+ ('Group Name: ', 'groupName'),
85
+ ('Unit: ', 'unit'),
86
+ ('Enabled: ', 'is_enabled'),
87
+ ('Type: ', 'type_name'),
88
+ ('Min: ', 'min'),
89
+ ('Max: ', 'max'),
90
+ ('Step: ', 'step'),
91
+ ('Automatable: ', 'is_automatable'),
92
+ ('Read only: ', 'is_read_only'),
93
+ ('Uses samplerate: ', 'uses_samplerate'),
94
+ ('Uses scalepoints: ', 'uses_scalepoints'),
95
+ ('Scale point count: ', 'scalePointCount'),
96
+ ('Uses custom text: ', 'uses_custom_text'),
97
+ ('Can be CV controlled:', 'can_be_cv_controlled')
98
+ ]:
99
+ try:
100
+ print(label, getattr(param, att));
101
+ except AttributeError:
102
+ pass
98
103
  self.carla.delete()
99
104
  QApplication.instance().quit()
100
105
 
File without changes
File without changes
File without changes