simple-carla 2.1.1__py2.py3-none-any.whl → 2.1.3__py2.py3-none-any.whl

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.
simple_carla/__init__.py CHANGED
@@ -240,7 +240,7 @@ from carla_backend import (
240
240
  )
241
241
 
242
242
 
243
- __version__ = "2.1.1"
243
+ __version__ = "2.1.3"
244
244
 
245
245
 
246
246
  # -------------------------------------------------------------------
@@ -2913,7 +2913,7 @@ class Plugin(PatchbayClient):
2913
2913
  self.parameters[int(key)].value = value
2914
2914
 
2915
2915
  # -------------------------------------------------------------------
2916
- # Port parameter counts
2916
+ # Port counts
2917
2917
 
2918
2918
  @property
2919
2919
  def audio_in_count(self):
@@ -2943,19 +2943,8 @@ class Plugin(PatchbayClient):
2943
2943
  """
2944
2944
  return self._midi_out_count
2945
2945
 
2946
- @property
2947
- def input_parameter_count(self):
2948
- """
2949
- Returns (int)
2950
- """
2951
- return len(self.input_parameters())
2952
-
2953
- @property
2954
- def output_parameter_count(self):
2955
- """
2956
- Returns (int)
2957
- """
2958
- return len(self.output_parameters())
2946
+ # -------------------------------------------------------------------
2947
+ # Peaks
2959
2948
 
2960
2949
  @property
2961
2950
  def peak_mono(self):
@@ -2978,6 +2967,23 @@ class Plugin(PatchbayClient):
2978
2967
  """
2979
2968
  return Carla.instance.get_input_peak_value(self.plugin_id, False)
2980
2969
 
2970
+ # -------------------------------------------------------------------
2971
+ # Parameters
2972
+
2973
+ @property
2974
+ def input_parameter_count(self):
2975
+ """
2976
+ Returns (int)
2977
+ """
2978
+ return len(self.input_parameters())
2979
+
2980
+ @property
2981
+ def output_parameter_count(self):
2982
+ """
2983
+ Returns (int)
2984
+ """
2985
+ return len(self.output_parameters())
2986
+
2981
2987
  def input_parameters(self):
2982
2988
  """
2983
2989
  Returns a list of Parameter objects.
@@ -2990,6 +2996,20 @@ class Plugin(PatchbayClient):
2990
2996
  """
2991
2997
  return [ param for param in self.parameters.values() if param.is_used and param.is_output ]
2992
2998
 
2999
+ def parameter(self, name):
3000
+ """
3001
+ Returns the parameter with the given (str) "name"
3002
+
3003
+ Raises IndexError
3004
+ """
3005
+ for param in self.parameters.values():
3006
+ if param.name == name:
3007
+ return param
3008
+ raise IndexError
3009
+
3010
+ # -------------------------------------------------------------------
3011
+ # Str
3012
+
2993
3013
  def __str__(self):
2994
3014
  return '<{0} "{1}" (uuid {2}, client_id {3})>'.format(
2995
3015
  type(self).__name__, self.moniker, self.uuid, self.client_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simple_carla
3
- Version: 2.1.1
3
+ Version: 2.1.3
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
@@ -1,10 +1,10 @@
1
- simple_carla/__init__.py,sha256=Ef6nxZrbP9RmBi9CB6vUATElq9k3GP8OvBp2LP8PtEk,109822
1
+ simple_carla/__init__.py,sha256=4-RZAF8A5z3JproxtcIIC8n73E3ox9zJjwnib7qiaMs,110275
2
2
  simple_carla/plugin_dialog.py,sha256=uof7YSqVEjgUrWqF-bo76hegsecIOtu6aZr03kdNrKQ,1498
3
3
  simple_carla/qt.py,sha256=8J56Zagbh9ip_HGkhqcNQR36JC8YrUsR4H0QIlhPWIA,15636
4
4
  simple_carla/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  simple_carla/scripts/sc_plugin_def.py,sha256=CVseichHuDCmGeD8v7CfHweeyHHXI60-RcvzU8OILqo,2214
6
- simple_carla-2.1.1.dist-info/entry_points.txt,sha256=oqJRVQXTCIUOmspGNnqDWq9mhz397uoRMQQOhBFbIcs,73
7
- simple_carla-2.1.1.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
8
- simple_carla-2.1.1.dist-info/WHEEL,sha256=j3d_2VkBU36k09xOc4O9RZyJJ8uFqn4BR2AtKD7MOp8,99
9
- simple_carla-2.1.1.dist-info/METADATA,sha256=kdj7k4mTazROnGFYn7vN8YuJkhJL26YXKUX4O9MsgQI,1717
10
- simple_carla-2.1.1.dist-info/RECORD,,
6
+ simple_carla-2.1.3.dist-info/entry_points.txt,sha256=oqJRVQXTCIUOmspGNnqDWq9mhz397uoRMQQOhBFbIcs,73
7
+ simple_carla-2.1.3.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
8
+ simple_carla-2.1.3.dist-info/WHEEL,sha256=j3d_2VkBU36k09xOc4O9RZyJJ8uFqn4BR2AtKD7MOp8,99
9
+ simple_carla-2.1.3.dist-info/METADATA,sha256=JLUDAwsFc92JEBEm72ncRkY5rgIyOrMNKdcMiu2lPus,1717
10
+ simple_carla-2.1.3.dist-info/RECORD,,