set build param
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "linux-audiomixer"
|
name = "midimixer"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Add your description here"
|
description = "Software to control pipewire via MIDI"
|
||||||
|
authors = [
|
||||||
|
{ name="Melody LaFae", email="melafae@basicchaos.de" }
|
||||||
|
]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
@@ -10,3 +13,11 @@ dependencies = [
|
|||||||
"python-rtmidi>=1.5.8",
|
"python-rtmidi>=1.5.8",
|
||||||
"ruff>=0.14.0",
|
"ruff>=0.14.0",
|
||||||
]
|
]
|
||||||
|
classifiers = [
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Operating System :: Linux",
|
||||||
|
]
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["uv_build >= 0.9.5, <0.10.0"]
|
||||||
|
build-backend = "uv_build"
|
||||||
|
|||||||
0
src/midimixer/__init__.py
Normal file
0
src/midimixer/__init__.py
Normal file
5
main.py → src/midimixer/main.py
Normal file → Executable file
5
main.py → src/midimixer/main.py
Normal file → Executable file
@@ -184,8 +184,6 @@ def set_volume(volume: int, device: str) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# TODO threading for MIDI values;
|
|
||||||
|
|
||||||
with mido.open_input("nanoKONTROL2:nanoKONTROL2 _ CTRL 28:0") as mixer:
|
with mido.open_input("nanoKONTROL2:nanoKONTROL2 _ CTRL 28:0") as mixer:
|
||||||
for update in mixer:
|
for update in mixer:
|
||||||
midi_input = nanoKontrol2_mapping[update.control]
|
midi_input = nanoKontrol2_mapping[update.control]
|
||||||
@@ -207,13 +205,10 @@ def main():
|
|||||||
elif midi_input.startswith("Mute") and update.value == 0:
|
elif midi_input.startswith("Mute") and update.value == 0:
|
||||||
set_mute(toggle=False, device=audiomixer_mapping[midi_input])
|
set_mute(toggle=False, device=audiomixer_mapping[midi_input])
|
||||||
|
|
||||||
# TODO parsing return to dict to split inputs
|
|
||||||
# TODO define mixers in config files
|
# TODO define mixers in config files
|
||||||
# TODO pipewire integration
|
|
||||||
# TODO user config for audio streams
|
# TODO user config for audio streams
|
||||||
# TODO running as a daemon
|
# TODO running as a daemon
|
||||||
# TODO systemctl unit file
|
# TODO systemctl unit file
|
||||||
# TODO evaluating update time of script. 1ms? 0.1ms?
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
Reference in New Issue
Block a user