-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from quaternionmedia/xair
✖️ Xair
- Loading branch information
Showing
7 changed files
with
96 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
changelog: | ||
categories: | ||
- title: Breaking Changes 🪅 | ||
labels: | ||
- breaking 💔 | ||
|
||
- title: New Features 🎉 | ||
labels: | ||
- enhancement ➕ | ||
|
||
- title: Bugfixes 🐛 | ||
labels: | ||
- bug 🐛 | ||
|
||
- title: Maintenance 🔩 | ||
labels: | ||
- maintenance 🔧 | ||
- CI 🦾 | ||
- CD 🏗️ | ||
- production 🎭 | ||
- test 🧪 | ||
|
||
- title: Other Changes | ||
labels: | ||
- * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .qu24 import Qu24 | ||
from .gld import Gld | ||
from .xair import XAir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
from ludwig import mixer, Mixer, Midi | ||
from rtmidi.midiconstants import NOTE_ON, CONTROL_CHANGE | ||
from ludwig.types import uint1, uint2, uint3, uint4, uint5, uint7, uint8 | ||
from pydantic import conint | ||
|
||
|
||
class XAir(Midi, Mixer): | ||
"""Behringer XAir mixer""" | ||
|
||
@mixer | ||
def fader(self, channel: uint5, volume: uint7): | ||
"""Fade the channel | ||
Fader CH CMD No. Value Comment | ||
CH Faders 1 CC 0-15 0...127 Input Channels 1-16 | ||
CH Faders 1 CC 16 0...127 AuxLineIn 17-18 / USB Recorder Playback (stereo) | ||
CH Faders 1 CC 17-20 0...127 FX1-4 Return (stereo) | ||
Send Faders 1 CC 21-26 0...127 Aux1-6 / Subgroup | ||
Send Faders 1 CC 27-30 0...127 Fx1-4 | ||
Main Fader 1 CC 31 0...127 Main LR (stereo) | ||
""" | ||
self.send([CONTROL_CHANGE | 0, channel, volume]) | ||
|
||
@mixer | ||
def pan(self, channel: uint5, pan: uint7): | ||
"""Pan the channel | ||
Pan CH CMD No. Value Comment | ||
CH PAN 3 CC 0-15 1...127 Panorama Input Channels 1-16, 64=center | ||
CH PAN 3 CC 16 1...127 Balance AuxLineIn 17-18 / USB Recorder Playback, 64=center | ||
CH PAN 3 CC 17-20 1...127 Balance FX1-4 Return, 64=center | ||
Aux PAN (Subgroup) 3 CC 21-26 1...127 Panorama Aux1-6 / Subgroup, 64=center | ||
Main Balance 3 CC 31 1...127 Balance Main LR, 64=center | ||
""" | ||
self.send([CONTROL_CHANGE | 2, channel, pan]) | ||
|
||
@mixer | ||
def mute(self, channel: uint5): | ||
"""Mute the channel | ||
Mute CH CMD No. Value Comment | ||
CH Mutes 2 CC 0-15 127 Input Channels 1-16 | ||
CH Mutes 2 CC 16 127 AuxLineIn 17-18 / USB Recorder Playback (stereo) | ||
CH Mutes 2 CC 17-20 127 FX1-4 Return (stereo) | ||
Send Mutes 2 CC 21-26 127 Aux1-6 / Subgroup | ||
Send Mutes 2 CC 27-30 127 Fx1-4 | ||
Main Mute 2 CC 31 127 Main LR (stereo) | ||
""" | ||
self.send([CONTROL_CHANGE | 1, channel, 127]) | ||
|
||
@mixer | ||
def unmute(self, channel: uint5): | ||
"""Unmute the channel | ||
Mute CH CMD No. Value Comment | ||
CH Mutes 2 CC 0-15 0 Input Channels 1-16 | ||
CH Mutes 2 CC 16 0 AuxLineIn 17-18 / USB Recorder Playback (stereo) | ||
CH Mutes 2 CC 17-20 0 FX1-4 Return (stereo) | ||
Send Mutes 2 CC 21-26 0 Aux1-6 / Subgroup | ||
Send Mutes 2 CC 27-30 0 Fx1-4 | ||
Main Mute 2 CC 31 0 Main LR (stereo) | ||
""" | ||
self.send([CONTROL_CHANGE | 1, channel, 0]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters