simple-carla 2.0.0__py2.py3-none-any.whl → 2.1.1__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 +51 -31
- {simple_carla-2.0.0.dist-info → simple_carla-2.1.1.dist-info}/METADATA +1 -1
- {simple_carla-2.0.0.dist-info → simple_carla-2.1.1.dist-info}/RECORD +6 -6
- {simple_carla-2.0.0.dist-info → simple_carla-2.1.1.dist-info}/LICENSE +0 -0
- {simple_carla-2.0.0.dist-info → simple_carla-2.1.1.dist-info}/WHEEL +0 -0
- {simple_carla-2.0.0.dist-info → simple_carla-2.1.1.dist-info}/entry_points.txt +0 -0
simple_carla/__init__.py
CHANGED
@@ -154,15 +154,21 @@ from carla_backend import (
|
|
154
154
|
ENGINE_PROCESS_MODE_PATCHBAY,
|
155
155
|
|
156
156
|
# Plugin types:
|
157
|
-
|
158
|
-
|
157
|
+
PLUGIN_NONE,
|
158
|
+
PLUGIN_INTERNAL,
|
159
159
|
PLUGIN_LADSPA,
|
160
|
+
PLUGIN_DSSI,
|
160
161
|
PLUGIN_LV2,
|
161
|
-
PLUGIN_NONE,
|
162
|
-
PLUGIN_SF2,
|
163
|
-
PLUGIN_SFZ,
|
164
162
|
PLUGIN_VST2,
|
165
163
|
PLUGIN_VST3,
|
164
|
+
PLUGIN_AU,
|
165
|
+
PLUGIN_DLS,
|
166
|
+
PLUGIN_GIG,
|
167
|
+
PLUGIN_SF2,
|
168
|
+
PLUGIN_SFZ,
|
169
|
+
PLUGIN_JACK,
|
170
|
+
PLUGIN_JSFX,
|
171
|
+
PLUGIN_CLAP,
|
166
172
|
|
167
173
|
# Plugin options:
|
168
174
|
PLUGIN_OPTION_FIXED_BUFFERS,
|
@@ -234,7 +240,7 @@ from carla_backend import (
|
|
234
240
|
)
|
235
241
|
|
236
242
|
|
237
|
-
__version__ = "2.
|
243
|
+
__version__ = "2.1.1"
|
238
244
|
|
239
245
|
|
240
246
|
# -------------------------------------------------------------------
|
@@ -1540,6 +1546,8 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1540
1546
|
"""
|
1541
1547
|
Returns Plugin.
|
1542
1548
|
"plugin_id" is the integer plugin_id assigned by Carla.
|
1549
|
+
|
1550
|
+
Raises IndexError
|
1543
1551
|
"""
|
1544
1552
|
if plugin_id in self._plugins:
|
1545
1553
|
return self._plugins[plugin_id]
|
@@ -1556,12 +1564,19 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1556
1564
|
"""
|
1557
1565
|
Returns PatchbayClient, either a SystemPatchbayClient or Plugin.
|
1558
1566
|
"client_id" is the integer client_id assigned by Carla.
|
1567
|
+
|
1568
|
+
Raises IndexError
|
1559
1569
|
"""
|
1560
1570
|
if client_id in self._clients:
|
1561
1571
|
return self._clients[client_id]
|
1562
1572
|
raise IndexError()
|
1563
1573
|
|
1564
1574
|
def named_client(self, client_name):
|
1575
|
+
"""
|
1576
|
+
Returns the PatchbayClient (system or Plugin) with the given "client_name"
|
1577
|
+
|
1578
|
+
Raises IndexError
|
1579
|
+
"""
|
1565
1580
|
for client in self._clients.values():
|
1566
1581
|
if client.client_name == client_name:
|
1567
1582
|
return client
|
@@ -1578,10 +1593,12 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1578
1593
|
"""
|
1579
1594
|
Returns the PatchbayClient with the given client_name.
|
1580
1595
|
"client_name" is the same value that JACK audio connection kit uses.
|
1596
|
+
|
1597
|
+
Raises IndexError
|
1581
1598
|
"""
|
1582
1599
|
if client_name in self._sys_clients:
|
1583
1600
|
return self._sys_clients[client_name]
|
1584
|
-
|
1601
|
+
raise IndexError
|
1585
1602
|
|
1586
1603
|
def is_clear(self):
|
1587
1604
|
"""
|
@@ -1594,14 +1611,15 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1594
1611
|
|
1595
1612
|
def system_clients(self):
|
1596
1613
|
"""
|
1597
|
-
Generator which yields SystemPatchbayClient
|
1614
|
+
Generator which yields SystemPatchbayClient - all system clients.
|
1598
1615
|
"""
|
1599
1616
|
for client in self._sys_clients.values():
|
1600
1617
|
return client
|
1601
1618
|
|
1602
1619
|
def system_audio_in_clients(self):
|
1603
1620
|
"""
|
1604
|
-
Generator which yields SystemPatchbayClient
|
1621
|
+
Generator which yields SystemPatchbayClient - system clients with at least one
|
1622
|
+
audio in port.
|
1605
1623
|
"""
|
1606
1624
|
for client in self._sys_clients.values():
|
1607
1625
|
if client.audio_in_count > 0:
|
@@ -1609,7 +1627,8 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1609
1627
|
|
1610
1628
|
def system_audio_out_clients(self):
|
1611
1629
|
"""
|
1612
|
-
Generator which yields SystemPatchbayClient
|
1630
|
+
Generator which yields SystemPatchbayClient - system clients with at least one
|
1631
|
+
audio out port.
|
1613
1632
|
"""
|
1614
1633
|
for client in self._sys_clients.values():
|
1615
1634
|
if client.audio_out_count > 0:
|
@@ -1617,7 +1636,7 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1617
1636
|
|
1618
1637
|
def system_audio_in_ports(self):
|
1619
1638
|
"""
|
1620
|
-
Generator which yields PatchbayPort
|
1639
|
+
Generator which yields PatchbayPort - all audio in ports of all system clients.
|
1621
1640
|
"""
|
1622
1641
|
for client in self._sys_clients.values():
|
1623
1642
|
for port in client.audio_ins():
|
@@ -1625,7 +1644,7 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1625
1644
|
|
1626
1645
|
def system_audio_out_ports(self):
|
1627
1646
|
"""
|
1628
|
-
Generator which yields PatchbayPort
|
1647
|
+
Generator which yields PatchbayPort - all audio out ports of all system clients.
|
1629
1648
|
"""
|
1630
1649
|
for client in self._sys_clients.values():
|
1631
1650
|
for port in client.audio_outs():
|
@@ -1633,7 +1652,8 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1633
1652
|
|
1634
1653
|
def system_midi_in_clients(self):
|
1635
1654
|
"""
|
1636
|
-
Generator which yields SystemPatchbayClient
|
1655
|
+
Generator which yields SystemPatchbayClient - system clients with at least one
|
1656
|
+
MIDI in port.
|
1637
1657
|
"""
|
1638
1658
|
for client in self._sys_clients.values():
|
1639
1659
|
if client.midi_in_count > 0:
|
@@ -1641,7 +1661,8 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1641
1661
|
|
1642
1662
|
def system_midi_out_clients(self):
|
1643
1663
|
"""
|
1644
|
-
Generator which yields SystemPatchbayClient
|
1664
|
+
Generator which yields SystemPatchbayClient - system clients with at least one
|
1665
|
+
MIDI out port.
|
1645
1666
|
"""
|
1646
1667
|
for client in self._sys_clients.values():
|
1647
1668
|
if client.midi_out_count > 0:
|
@@ -1649,7 +1670,7 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1649
1670
|
|
1650
1671
|
def system_midi_in_ports(self):
|
1651
1672
|
"""
|
1652
|
-
Generator which yields PatchbayPort
|
1673
|
+
Generator which yields PatchbayPort - all MIDI in ports of all system clients.
|
1653
1674
|
"""
|
1654
1675
|
for client in self._sys_clients.values():
|
1655
1676
|
for port in client.midi_ins():
|
@@ -1657,7 +1678,7 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1657
1678
|
|
1658
1679
|
def system_midi_out_ports(self):
|
1659
1680
|
"""
|
1660
|
-
Generator which yields PatchbayPort
|
1681
|
+
Generator which yields PatchbayPort - all MIDI out ports of all system clients.
|
1661
1682
|
"""
|
1662
1683
|
for client in self._sys_clients.values():
|
1663
1684
|
for port in client.midi_outs():
|
@@ -1682,7 +1703,8 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1682
1703
|
port1 must be an PatchbayPort which is an output.
|
1683
1704
|
port2 must be an PatchbayPort which is an intput.
|
1684
1705
|
"""
|
1685
|
-
if not self.patchbay_connect(True, port1.client_id, port1.port_id,
|
1706
|
+
if not self.patchbay_connect(True, port1.client_id, port1.port_id,
|
1707
|
+
port2.client_id, port2.port_id):
|
1686
1708
|
logging.error('Patchbay connect FAILED! %s -> %s', port1, port2)
|
1687
1709
|
|
1688
1710
|
# -------------------------------------------------------------------
|
@@ -1690,11 +1712,17 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1690
1712
|
|
1691
1713
|
def autoload(self, plugin, filename, callback = None):
|
1692
1714
|
"""
|
1693
|
-
|
1715
|
+
Tell Carla to load the given filename for the given plugin.
|
1694
1716
|
|
1717
|
+
Some plugins, (such as liquidsfz) do not have an input file parameter, but
|
1718
|
+
instead, requests the host to display an open file dialog from which the user
|
1719
|
+
may select an SFZ file to load. This function triggers the plugin's host gui
|
1720
|
+
display which will call Carla.file_callback(). When there is a plugin to autoload
|
1721
|
+
on deck, Carla.file_callback() will return the "autoload_filename" property of
|
1722
|
+
the plugin, instead of showing the file open dialog and returning the result.
|
1695
1723
|
"""
|
1696
1724
|
if self._autoload_plugin is not None:
|
1697
|
-
raise Exception(
|
1725
|
+
raise Exception(f'Autoload already used by "{self._autoload_plugin}"')
|
1698
1726
|
self._autoload_plugin = plugin
|
1699
1727
|
self._autoload_filename = filename
|
1700
1728
|
#logging.debug('Autoloading "%s"', filename)
|
@@ -1748,11 +1776,11 @@ class _SimpleCarla(CarlaHostDLL):
|
|
1748
1776
|
filter = charPtrToString(filter)
|
1749
1777
|
if action == FILE_CALLBACK_OPEN:
|
1750
1778
|
if self._open_file_callback is None:
|
1751
|
-
raise RuntimeError('
|
1779
|
+
raise RuntimeError('No callback function defined')
|
1752
1780
|
str_filename = self._open_file_callback(caption, filter)
|
1753
1781
|
elif action == FILE_CALLBACK_SAVE:
|
1754
1782
|
if self._save_file_callback is None:
|
1755
|
-
raise RuntimeError('
|
1783
|
+
raise RuntimeError('No callback function defined')
|
1756
1784
|
str_filename = self._save_file_callback(caption, filter)
|
1757
1785
|
else:
|
1758
1786
|
return None
|
@@ -2336,21 +2364,13 @@ class PatchbayClient:
|
|
2336
2364
|
# -------------------------------------------------------------------
|
2337
2365
|
# Other port access funcs:
|
2338
2366
|
|
2339
|
-
def midi_input_port(self):
|
2340
|
-
"""
|
2341
|
-
Returns PatchbayPort;
|
2342
|
-
the first midi input port owned by this client.
|
2343
|
-
"""
|
2344
|
-
for port in self.ports.values():
|
2345
|
-
if port.is_midi and port.is_input:
|
2346
|
-
return port
|
2347
|
-
return None
|
2348
|
-
|
2349
2367
|
def named_port(self, port_name):
|
2350
2368
|
"""
|
2351
2369
|
Returns PatchbayPort;
|
2352
2370
|
the port owned by this client whose "port_name" matches exactly.
|
2353
2371
|
Note that the name does NOT include the client_name portion.
|
2372
|
+
|
2373
|
+
Raises IndexError
|
2354
2374
|
"""
|
2355
2375
|
for port in self.ports.values():
|
2356
2376
|
if port.port_name == port_name:
|
@@ -1,10 +1,10 @@
|
|
1
|
-
simple_carla/__init__.py,sha256=
|
1
|
+
simple_carla/__init__.py,sha256=Ef6nxZrbP9RmBi9CB6vUATElq9k3GP8OvBp2LP8PtEk,109822
|
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.
|
7
|
-
simple_carla-2.
|
8
|
-
simple_carla-2.
|
9
|
-
simple_carla-2.
|
10
|
-
simple_carla-2.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|