Skip to main content

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


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.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foxdotcc-0.1.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file foxdotcc-0.1.2.tar.gz.

File metadata

  • Download URL: foxdotcc-0.1.2.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

Hashes for foxdotcc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cf7a9040af79ecdbb1a0dc4526338d9fc98d350d4703317633a5aa7c99433029
MD5 50229159339ef297d7e17b24cb61319a
BLAKE2b-256 2cf01dac141b9eab751c5050b5f758204e88dd14e8dd685396a581822b95a61d

See more details on using hashes here.

File details

Details for the file foxdotcc-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: foxdotcc-0.1.2-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

Hashes for foxdotcc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7eb06078bd4f041f2490dfb4823c638a9667058283b4af0fdbefc9bf564fece2
MD5 b6bef4b581106452e3aae189455cec5c
BLAKE2b-256 3774cd55d6c846473564f77e8438dde6d724f848606b9a2f98195ff26871e2c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page