Classes for managing jack client connections.
Project description
conn_jack
Classes for managing jack client connections.
These differ from the JACK Client for Python (jack), in that it makes possible connecting and disconnecting ports which are not "owned" by a client created in your process.
There is also an (optionally installed) QtJackConnectionManager which emits signals when events of interest happen. In order to use the QtJackConnectionManager class, you must install with the "[Qt]" option, like so:
$ pip install conn_jack[Qt]
Using the plain (non-Qt) version
Import JackConnectionManager:
from conn_jack import JackConnectionManager
Create an instance using standard constructor syntax ...
self.conn_man = JackConnectionManager()
... or use it as a context manage:
with JackConnectionManager() as conn_man:
The non-Qt version uses callbacks to inform your program when events of interest happen. Register your functions as callbacks using the "on_" methods:
self.conn_man.on_client_registration(self.jack_client_reg)
self.conn_man.on_port_registration(self.jack_port_reg)
self.conn_man.on_shutdown(self.close)
Using the Qt version:
In order to use the Qt version, you must import "QtJackConnectionManager" from the conn_jack.qt module.
from conn_jack.qt import QtJackConnectionManager
self.conn_man = QtJackConnectionManager(client_name = "DescriptiveClientName")
The Qt version forsakes callbacks for the Qt signal/slot mechanism. To subscribe to signals which are generated on events of interest:
self.conn_man.sig_client_registration.connect(self.slot_client_registration)
self.conn_man.sig_port_registration.connect(self.slot_port_registration)
self.conn_man.sig_shutdown.connect(self.slot_shutdown)
Refer to the help text to determine the function arguments to use in the callbacks or slots.
Help
Refer to the help for conn_jack. From python:
>>> import conn_jack
>>> help(conn_jack)
>>> import conn_jack.qt
>>> help(conn_jack.qt)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file conn_jack-1.1.1.tar.gz.
File metadata
- Download URL: conn_jack-1.1.1.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7911703cfccc637920430210fb466ad40e361f2315de6d442efbef2dea616a37
|
|
| MD5 |
37e35a2443f56dba847d72ed29ccbed6
|
|
| BLAKE2b-256 |
eaad6b3e1df823b36e8d514a007f0f39301ce39a95cfeb7530288154d18e4941
|
File details
Details for the file conn_jack-1.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: conn_jack-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f8fbfb260a589bddf1767c54458d25939348312d8d87a851585ff6edf2e6b7
|
|
| MD5 |
8d33e8df27722063b2d976d1eb2dc6cc
|
|
| BLAKE2b-256 |
1be7bf42a89cf1e23b73c94866de8b4ba5b498522987d083eb774ad11b161f44
|