MIDI Control Change Message
Project description
FoxDotCC - MIDI Control Change Messages
Instalation
pip install FoxDotCC
# or
pip install git+https://codeberg.org/FoxDotExtensions/FoxDotCC
Usage
Import lib
from FoxDotCC import CC
See which MIDI's are available
CC.list_ports()
Create a connection
cc = CC(0) # index
cc = CC('MIDI Mix:MIDI Mix MIDI 1 28:0') # literal string
Add a function to see which events are received
cc(lambda msg: print(msg.control_number))
or use a decorator
@cc
def _(msg: cc.Msg):
print(msg.control_number)
Alternate between values, useful for the buttons
d1 >> play('x.', amp=cc(1).switch(1,0))
Use Knobs/Fader to control values with Range
d2 >> bass('s...', lpf=cc(18).range(500, 5000))
Map your own functions
@cc(1)
def _(msg):
d1.amp = not d1.amp
d2.amp = not d2.amp
if d2.amp:
d3 >> play('x-')
Close the connection
cc.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
foxdotcc-0.1.1.tar.gz
(8.2 kB
view details)
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 foxdotcc-0.1.1.tar.gz.
File metadata
- Download URL: foxdotcc-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f114b30c410f26556846073fed5eb83932aba19f5ed95fcf426aca5f6f8002d
|
|
| MD5 |
9f0caa95a4d9f23aca691f6dc289a75d
|
|
| BLAKE2b-256 |
edf7c53ee012c57d5e9a9ea3814fe1f42cedbed03478026317ada019a4b874f7
|
File details
Details for the file foxdotcc-0.1.1-py3-none-any.whl.
File metadata
- Download URL: foxdotcc-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f85abf96ead8a055e4de5fc4ccec6e4a6cdfeefc2f8d6741e5a96e4e6a989a8
|
|
| MD5 |
23a5fb25c52cd40abca0575785eac195
|
|
| BLAKE2b-256 |
7fb1fb2f002f0f90232c53bc2da3b546bd3f984c7fdb677f0e0beeeac63c5db7
|