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-')
Pad integration to play FoxDot samples
cc(37).pad('O', sample=1)
cc(43).pad('v')
Keyboard integration to play FoxDot synths
# mapping a synth
cc.keyboard(space)
# adding effects
cc.keyboard(space, sus=2, swell=1/8, glide=1/2)
# change synth and effects
cc.keyboard(star, chop=2)
Close the connection
cc.close()
Metadata
Release files for FoxDotCC 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| foxdotcc-0.2.0.tar.gz | 8.9 kB | Without provenance | Details for foxdotcc-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| foxdotcc-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for foxdotcc-0.2.0-py3-none-any.whl |
Total release size: 18.6 kB
Release files / foxdotcc-0.2.0.tar.gz
| Download URL | foxdotcc-0.2.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9ff8927cf801c163dbc00021d3be646685652e8588f6c890ae57db0d41ab376
|
|
BLAKE2b-256 checksum How to use checksums |
2eba2ae20abc373ba56443cc6c1b40236421ed16430bfffd9219aa1d0d8761f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / foxdotcc-0.2.0-py3-none-any.whl
| Download URL | foxdotcc-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
edb90bab8b7157ebbadbd623623d6c9863e54ecc04d1c4a87c12154e0b9c1ac2
|
|
BLAKE2b-256 checksum How to use checksums |
252bce9ae9566ac9c6d048afda4c84f073f663ccb4062a443b6bcb4716d0ee2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Security for FoxDotCC 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.