simple-carla 2.5.2__tar.gz → 2.6.0__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.5.2
3
+ Version: 2.6.0
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
@@ -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.5.2"
22
+ current_version = "2.6.0"
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.5.2"
243
+ __version__ = "2.6.0"
244
244
 
245
245
 
246
246
  # -------------------------------------------------------------------
@@ -373,7 +373,7 @@ class _SimpleCarla(CarlaHostDLL):
373
373
  Make sure to call carla_engine_idle() at regular intervals afterwards.
374
374
  driver_name: Driver to use
375
375
  """
376
- self.__engine_idle_thread = threading.Thread(target=self.__engine_idle)
376
+ self.__engine_idle_thread = threading.Thread(target = self.__engine_idle)
377
377
  if super().engine_init(driver_name, self.client_name):
378
378
  self._run_idle_loop = True
379
379
  self.__engine_idle_thread.start()
@@ -1514,7 +1514,6 @@ class _SimpleCarla(CarlaHostDLL):
1514
1514
  # ================================================================================
1515
1515
 
1516
1516
  def add_plugin(self, plugin):
1517
- logging.debug('add_plugin %s', plugin.unique_name)
1518
1517
  self._plugin_by_uuid[plugin.unique_name] = plugin
1519
1518
  if not self._add_plugin( # Carla parameter
1520
1519
  # ----------------------------------------- # ---------------
@@ -2727,7 +2726,7 @@ class Plugin(PatchbayClient):
2727
2726
  # -------------------------------------------------------------------
2728
2727
  # Internal lifecycle events
2729
2728
 
2730
- def __init__(self, plugin_def = None, saved_state = None):
2729
+ def __init__(self, plugin_def = None, *, saved_state = None):
2731
2730
  if plugin_def is None:
2732
2731
  if self.plugin_def is None:
2733
2732
  raise RuntimeError("No definition for plugin")
@@ -2758,7 +2757,7 @@ class Plugin(PatchbayClient):
2758
2757
  self._unmute_volume = 1.0
2759
2758
  self._unbypass_wet = 1.0
2760
2759
  self.parameters = {} # Parameter objects. Key is parameter_id.
2761
- self._midi_notes = np_zeros((16, 128), dtype=bool) # array for determining whether midi active.
2760
+ self._midi_notes = np_zeros((16, 128), dtype = bool) # array for determining whether midi active.
2762
2761
 
2763
2762
  self.unique_name = Carla.instance.get_unique_name(self)
2764
2763
  self.moniker = self.unique_name if saved_state is None else saved_state["vars"]["moniker"]
@@ -341,7 +341,7 @@ class AbstractQtPlugin(Plugin):
341
341
 
342
342
  plugin_def = {...}
343
343
 
344
- def __init__(self, parent, plugin_def, saved_state = None):
344
+ def __init__(self, parent, plugin_def, *, saved_state = None):
345
345
  QFrame.__init__(self, parent)
346
346
  AbstractQtPlugin.__init__(self, plugin_def, saved_state)
347
347
 
@@ -437,9 +437,9 @@ class QtPlugin(AbstractQtPlugin, QObject):
437
437
  sig_ctrl_channel_changed = pyqtSignal(Plugin, float)
438
438
 
439
439
 
440
- def __init__(self, plugin_def=None, saved_state=None):
440
+ def __init__(self, plugin_def = None, *, saved_state = None):
441
441
  QObject.__init__(self)
442
- Plugin.__init__(self, plugin_def, saved_state)
442
+ Plugin.__init__(self, plugin_def, saved_state = saved_state)
443
443
 
444
444
 
445
445
  # end simple_carla/qt.py
@@ -48,10 +48,10 @@ class MainWindow(QMainWindow):
48
48
  def main():
49
49
  p = argparse.ArgumentParser()
50
50
  p.epilog = __doc__
51
- p.add_argument("--full", "-f", action="store_true",
52
- help="Spit out the full plugin definition.")
53
- p.add_argument("--verbose", "-v", action="store_true",
54
- help="Show detailed debug information")
51
+ p.add_argument("--full", "-f", action = "store_true",
52
+ help = "Spit out the full plugin definition.")
53
+ p.add_argument("--verbose", "-v", action = "store_true",
54
+ help = "Show detailed debug information")
55
55
  options = p.parse_args()
56
56
  logging.basicConfig(
57
57
  level = logging.DEBUG if options.verbose else logging.ERROR,
@@ -100,6 +100,7 @@ Filename: {plugin.filename}
100
100
  print(label, getattr(param, att));
101
101
  except AttributeError:
102
102
  pass
103
+ print()
103
104
  self.carla.delete()
104
105
  QApplication.instance().quit()
105
106
 
@@ -107,8 +108,8 @@ Filename: {plugin.filename}
107
108
  def main():
108
109
  p = argparse.ArgumentParser()
109
110
  p.epilog = __doc__
110
- p.add_argument("--verbose", "-v", action="store_true",
111
- help="Show detailed debug information")
111
+ p.add_argument("--verbose", "-v", action = "store_true",
112
+ help = "Show detailed debug information")
112
113
  options = p.parse_args()
113
114
  logging.basicConfig(
114
115
  level = logging.DEBUG if options.verbose else logging.ERROR,
@@ -11,7 +11,7 @@ APPLICATION_NAME = 'simple_carla'
11
11
 
12
12
  class TestApp:
13
13
 
14
- def __init__(self, meter_class='EBUMeter'):
14
+ def __init__(self, meter_class = 'EBUMeter'):
15
15
  super().__init__()
16
16
  self.ready = False
17
17
  carla = Carla(APPLICATION_NAME)
File without changes
File without changes
File without changes