Ejemplo n.º 1
0
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        uicLoad("ffado/mixer/saffirele_small", self)
        SaffireMixerBase.__init__(self)

        log.debug("Init small Saffire LE mixer window")

        self.VolumeControls={
                self.sldIN1RecMix:    ['/Mixer/LEMix96', 0, 4],
                self.sldIN2RecMix:    ['/Mixer/LEMix96', 1, 4],
                self.sldIN3RecMix:    ['/Mixer/LEMix96', 2, 4],
                self.sldIN4RecMix:    ['/Mixer/LEMix96', 3, 4],
                self.sldSPDIF1RecMix: ['/Mixer/LEMix96', 4, 4],
                self.sldSPDIF2RecMix: ['/Mixer/LEMix96', 5, 4],

                self.sldPC1Out1: ['/Mixer/LEMix96', 6, 0],
                self.sldPC1Out2: ['/Mixer/LEMix96', 6, 1],
                self.sldPC1Out3: ['/Mixer/LEMix96', 6, 2],
                self.sldPC1Out4: ['/Mixer/LEMix96', 6, 3],
                self.sldPC2Out1: ['/Mixer/LEMix96', 7, 0],
                self.sldPC2Out2: ['/Mixer/LEMix96', 7, 1],
                self.sldPC2Out3: ['/Mixer/LEMix96', 7, 2],
                self.sldPC2Out4: ['/Mixer/LEMix96', 7, 3],
                }

        self.SelectorControls={
                self.chkOut12Mute:          ['/Mixer/Out12Mute'],
                self.chkOut12HwCtrl:        ['/Mixer/Out12HwCtrl'],
                self.chkOut34Mute:          ['/Mixer/Out34Mute'],
                self.chkOut34HwCtrl:        ['/Mixer/Out34HwCtrl'],
                self.chkOut56Mute:          ['/Mixer/Out56Mute'],
                self.chkOut56HwCtrl:        ['/Mixer/Out56HwCtrl'],
                self.chkSPDIFTransparent:   ['/Mixer/SpdifTransparent'],
                self.chkMIDITru:            ['/Mixer/MidiThru'],
                self.chkHighGain3:          ['/Mixer/HighGainLine3'],
                self.chkHighGain4:          ['/Mixer/HighGainLine4'],
                }

        self.VolumeControlsLowRes={
                self.sldOut12Level:      ['/Mixer/Out12Level'],
                self.sldOut34Level:      ['/Mixer/Out34Level'],
                self.sldOut56Level:      ['/Mixer/Out56Level'],
                }

        self.TriggerButtonControls={
            self.btnSaveSettings:        ['/Mixer/SaveSettings'],
        }

        self.TextControls={
        }

        self.saveTextControls={
        }

        self.ComboControls={
        }
Ejemplo n.º 2
0
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        uicLoad("ffado/mixer/saffirele_small", self)
        SaffireMixerBase.__init__(self)

        log.debug("Init small Saffire LE mixer window")

        self.VolumeControls={
                self.sldIN1RecMix:    ['/Mixer/LEMix96', 0, 4],
                self.sldIN2RecMix:    ['/Mixer/LEMix96', 1, 4],
                self.sldIN3RecMix:    ['/Mixer/LEMix96', 2, 4],
                self.sldIN4RecMix:    ['/Mixer/LEMix96', 3, 4],
                self.sldSPDIF1RecMix: ['/Mixer/LEMix96', 4, 4],
                self.sldSPDIF2RecMix: ['/Mixer/LEMix96', 5, 4],

                self.sldPC1Out1: ['/Mixer/LEMix96', 6, 0],
                self.sldPC1Out2: ['/Mixer/LEMix96', 6, 1],
                self.sldPC1Out3: ['/Mixer/LEMix96', 6, 2],
                self.sldPC1Out4: ['/Mixer/LEMix96', 6, 3],
                self.sldPC2Out1: ['/Mixer/LEMix96', 7, 0],
                self.sldPC2Out2: ['/Mixer/LEMix96', 7, 1],
                self.sldPC2Out3: ['/Mixer/LEMix96', 7, 2],
                self.sldPC2Out4: ['/Mixer/LEMix96', 7, 3],
                }

        self.SelectorControls={
                self.chkOut12Mute:          ['/Mixer/Out12Mute'],
                self.chkOut12HwCtrl:        ['/Mixer/Out12HwCtrl'],
                self.chkOut34Mute:          ['/Mixer/Out34Mute'],
                self.chkOut34HwCtrl:        ['/Mixer/Out34HwCtrl'],
                self.chkOut56Mute:          ['/Mixer/Out56Mute'],
                self.chkOut56HwCtrl:        ['/Mixer/Out56HwCtrl'],
                self.chkSPDIFTransparent:   ['/Mixer/SpdifTransparent'],
                self.chkMIDITru:            ['/Mixer/MidiThru'],
                self.chkHighGain3:          ['/Mixer/HighGainLine3'],
                self.chkHighGain4:          ['/Mixer/HighGainLine4'],
                }

        self.VolumeControlsLowRes={
                self.sldOut12Level:      ['/Mixer/Out12Level'],
                self.sldOut34Level:      ['/Mixer/Out34Level'],
                self.sldOut56Level:      ['/Mixer/Out56Level'],
                }

        self.TriggerButtonControls={
            self.btnSaveSettings:        ['/Mixer/SaveSettings'],
        }

        self.TextControls={
        }

        self.saveTextControls={
        }

        self.ComboControls={
        }
Ejemplo n.º 3
0
 def triggerButton(self):
     sender = self.sender()
     if sender == self.btnReboot and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Operation not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.btnReboot.setEnabled(False)
         return
     SaffireMixerBase.triggerButton(self)
Ejemplo n.º 4
0
 def triggerButton(self):
     sender = self.sender()
     if sender == self.btnReboot and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Operation not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.btnReboot.setEnabled(False)
         return
     SaffireMixerBase.triggerButton(self)
Ejemplo n.º 5
0
    def updateValues(self):
        for i in range(self.tabInputMix.count()):
            self.tabInputMix.setTabEnabled(i, True)

        if not self.my_parent.have_adat:
            for i in range(self.tabInputMix.count()):
                page = self.tabInputMix.widget(i)
                name = page.objectName()
                if name[0:4] == "adat":
                    self.tabInputMix.setTabEnabled(i, False)
                else:
                    self.tabInputMix.setTabEnabled(i, True)

        self.tabInputMix.setCurrentWidget(self.tabInputMix.widget(0))
        SaffireMixerBase.updateValues(self)
Ejemplo n.º 6
0
    def updateValues(self):
        for i in range(self.tabInputMix.count()):
            self.tabInputMix.setTabEnabled(i, True)

        if not self.my_parent.have_adat:
            for i in range(self.tabInputMix.count()):
                page = self.tabInputMix.widget(i)
                name = page.objectName()
                if name[0:4] == "adat":
                    self.tabInputMix.setTabEnabled(i, False)
                else:
                    self.tabInputMix.setTabEnabled(i, True)

        self.tabInputMix.setCurrentWidget(self.tabInputMix.widget(0))
        SaffireMixerBase.updateValues(self)
Ejemplo n.º 7
0
 def updateSelector(self, a0):
     sender = self.sender()
     #if sender == self.chkAC3 and not self.my_parent.is_not_streaming:
     #msg = QMessageBox()
     #msg.question( msg, "Error", \
     #"<qt>Change not permitted. Is streaming active?</qt>", \
     #QMessageBox.Ok )
     #self.chkAC3.setEnabled(False)
     #if a0:
     #self.chkAC3.setChecked(False)
     #else:
     #self.chkAC3.setChecked(True)
     #return
     if sender == self.chkMidiEnable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkMidiEnable.setEnabled(False)
         state = self.hw.getDiscrete(
             self.SelectorControls[self.chkMidiEnable][0])
         if state:
             self.chkMidiEnable.setChecked(True)
         else:
             self.chkMidiEnable.setChecked(False)
         return
     if sender == self.chkAdatDisable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkAdatDisable.setEnabled(False)
         state = self.hw.getDiscrete(
             self.SelectorControls[self.chkAdatDisable][0])
         if state:
             self.chkAdatDisable.setChecked(True)
         else:
             self.chkAdatDisable.setChecked(False)
         return
     SaffireMixerBase.updateSelector(self, a0)
Ejemplo n.º 8
0
 def updateSelector(self,a0):
     sender = self.sender()
     #if sender == self.chkAC3 and not self.my_parent.is_not_streaming:
         #msg = QMessageBox()
         #msg.question( msg, "Error", \
             #"<qt>Change not permitted. Is streaming active?</qt>", \
             #QMessageBox.Ok )
         #self.chkAC3.setEnabled(False)
         #if a0:
             #self.chkAC3.setChecked(False)
         #else:
             #self.chkAC3.setChecked(True)
         #return
     if sender == self.chkMidiEnable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkMidiEnable.setEnabled(False)
         state = self.hw.getDiscrete(self.SelectorControls[self.chkMidiEnable][0])
         if state:
             self.chkMidiEnable.setChecked(True)
         else:
             self.chkMidiEnable.setChecked(False)
         return
     if sender == self.chkAdatDisable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkAdatDisable.setEnabled(False)
         state = self.hw.getDiscrete(self.SelectorControls[self.chkAdatDisable][0])
         if state:
             self.chkAdatDisable.setChecked(True)
         else:
             self.chkAdatDisable.setChecked(False)
         return
     SaffireMixerBase.updateSelector(self,a0)
Ejemplo n.º 9
0
 def triggerButton(self):
     SaffireMixerBase.triggerButton(self)
Ejemplo n.º 10
0
    def __init__(self, parent=None):
        self.my_parent = parent
        QWidget.__init__(self, parent)
        uicLoad("ffado/mixer/saffire_stereo", self)
        SaffireMixerBase.__init__(self)
        QObject.connect(self.btnRefresh, SIGNAL('clicked()'),
                        self.updateValues)
        QObject.connect(self.btnSwitchStereoMode, SIGNAL('clicked()'),
                        self.switchStereoMode)

        self.VolumeControls = {
            self.sldIN1Out910: ['/Mixer/MatrixMixerMono', 0, 0],
            self.sldIN1Out12: ['/Mixer/MatrixMixerMono', 0, 1],
            self.sldIN1Out34: ['/Mixer/MatrixMixerMono', 0, 2],
            self.sldIN1Out56: ['/Mixer/MatrixMixerMono', 0, 3],
            self.sldIN1Out78: ['/Mixer/MatrixMixerMono', 0, 4],
            self.sldIN3Out910: ['/Mixer/MatrixMixerMono', 1, 0],
            self.sldIN3Out12: ['/Mixer/MatrixMixerMono', 1, 1],
            self.sldIN3Out34: ['/Mixer/MatrixMixerMono', 1, 2],
            self.sldIN3Out56: ['/Mixer/MatrixMixerMono', 1, 3],
            self.sldIN3Out78: ['/Mixer/MatrixMixerMono', 1, 4],
            self.sldFX1Out910: ['/Mixer/MatrixMixerMono', 2, 0],
            self.sldFX1Out12: ['/Mixer/MatrixMixerMono', 2, 1],
            self.sldFX1Out34: ['/Mixer/MatrixMixerMono', 2, 2],
            self.sldFX1Out56: ['/Mixer/MatrixMixerMono', 2, 3],
            self.sldFX1Out78: ['/Mixer/MatrixMixerMono', 2, 4],
            self.sldIN2Out910: ['/Mixer/MatrixMixerMono', 3, 0],
            self.sldIN2Out12: ['/Mixer/MatrixMixerMono', 3, 1],
            self.sldIN2Out34: ['/Mixer/MatrixMixerMono', 3, 2],
            self.sldIN2Out56: ['/Mixer/MatrixMixerMono', 3, 3],
            self.sldIN2Out78: ['/Mixer/MatrixMixerMono', 3, 4],
            self.sldIN4Out910: ['/Mixer/MatrixMixerMono', 4, 0],
            self.sldIN4Out12: ['/Mixer/MatrixMixerMono', 4, 1],
            self.sldIN4Out34: ['/Mixer/MatrixMixerMono', 4, 2],
            self.sldIN4Out56: ['/Mixer/MatrixMixerMono', 4, 3],
            self.sldIN4Out78: ['/Mixer/MatrixMixerMono', 4, 4],
            self.sldFX2Out910: ['/Mixer/MatrixMixerMono', 5, 0],
            self.sldFX2Out12: ['/Mixer/MatrixMixerMono', 5, 1],
            self.sldFX2Out34: ['/Mixer/MatrixMixerMono', 5, 2],
            self.sldFX2Out56: ['/Mixer/MatrixMixerMono', 5, 3],
            self.sldFX2Out78: ['/Mixer/MatrixMixerMono', 5, 4],
            self.sldPC910Out910: ['/Mixer/MatrixMixerMono', 6, 0],
            self.sldPC910Out12: ['/Mixer/MatrixMixerMono', 6, 1],
            self.sldPC910Out34: ['/Mixer/MatrixMixerMono', 6, 2],
            self.sldPC910Out56: ['/Mixer/MatrixMixerMono', 6, 3],
            self.sldPC910Out78: ['/Mixer/MatrixMixerMono', 6, 4],
            self.sldPC12Out910: ['/Mixer/MatrixMixerMono', 7, 0],
            self.sldPC12Out12: ['/Mixer/MatrixMixerMono', 7, 1],
            self.sldPC12Out34: ['/Mixer/MatrixMixerMono', 7, 2],
            self.sldPC12Out56: ['/Mixer/MatrixMixerMono', 7, 3],
            self.sldPC12Out78: ['/Mixer/MatrixMixerMono', 7, 4],
            self.sldPC34Out910: ['/Mixer/MatrixMixerMono', 8, 0],
            self.sldPC34Out12: ['/Mixer/MatrixMixerMono', 8, 1],
            self.sldPC34Out34: ['/Mixer/MatrixMixerMono', 8, 2],
            self.sldPC34Out56: ['/Mixer/MatrixMixerMono', 8, 3],
            self.sldPC34Out78: ['/Mixer/MatrixMixerMono', 8, 4],
            self.sldPC56Out910: ['/Mixer/MatrixMixerMono', 9, 0],
            self.sldPC56Out12: ['/Mixer/MatrixMixerMono', 9, 1],
            self.sldPC56Out34: ['/Mixer/MatrixMixerMono', 9, 2],
            self.sldPC56Out56: ['/Mixer/MatrixMixerMono', 9, 3],
            self.sldPC56Out78: ['/Mixer/MatrixMixerMono', 9, 4],
            self.sldPC78Out910: ['/Mixer/MatrixMixerMono', 10, 0],
            self.sldPC78Out12: ['/Mixer/MatrixMixerMono', 10, 1],
            self.sldPC78Out34: ['/Mixer/MatrixMixerMono', 10, 2],
            self.sldPC78Out56: ['/Mixer/MatrixMixerMono', 10, 3],
            self.sldPC78Out78: ['/Mixer/MatrixMixerMono', 10, 4],
        }

        # First column is the DBUS subpath of the control.
        # Second column is a list of linked controls that should
        # be rewritten whenever this control is updated
        self.SelectorControls = {
            self.chkSpdifSwitch: ['/Mixer/SpdifSwitch'],
            self.chkOut12Mute: ['/Mixer/Out12Mute', [self.chkOut12HwCtrl]],
            self.chkOut12HwCtrl: ['/Mixer/Out12HwCtrl'],
            self.chkOut12Dim: ['/Mixer/Out12Dim'],
            self.chkOut34Mute: ['/Mixer/Out34Mute', [self.chkOut34HwCtrl]],
            self.chkOut34HwCtrl: ['/Mixer/Out34HwCtrl'],
            self.chkOut56Mute: ['/Mixer/Out56Mute', [self.chkOut56HwCtrl]],
            self.chkOut56HwCtrl: ['/Mixer/Out56HwCtrl'],
            self.chkOut78Mute: ['/Mixer/Out78Mute', [self.chkOut78HwCtrl]],
            self.chkOut78HwCtrl: ['/Mixer/Out78HwCtrl'],
            self.chkOut910Mute: ['/Mixer/Out910Mute'],
        }

        self.VolumeControlsLowRes = {
            self.sldOut12Level: ['/Mixer/Out12Level'],
            self.sldOut34Level: ['/Mixer/Out34Level'],
            self.sldOut56Level: ['/Mixer/Out56Level'],
            self.sldOut78Level: ['/Mixer/Out78Level'],
        }

        self.TriggerButtonControls = {
            self.btnSaveSettings: ['/Mixer/SaveSettings'],
        }

        self.TextControls = {}

        self.saveTextControls = {}

        self.ComboControls = {}
Ejemplo n.º 11
0
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        SaffireMixerBase.__init__(self)
        uicLoad("ffado/mixer/saffirepro_small", self)
        log.debug("Init small Saffire Pro mixer window")

        self.VolumeControls={

            self.sldOMixPC1O1: ['/Mixer/OutputMix', 0, 0], 
            self.sldOMixPC2O2: ['/Mixer/OutputMix', 1, 1], 
            self.sldOMixPC3O3: ['/Mixer/OutputMix', 2, 2], 
            self.sldOMixPC4O4: ['/Mixer/OutputMix', 3, 3], 
            self.sldOMixPC5O5: ['/Mixer/OutputMix', 4, 4], 
            self.sldOMixPC6O6: ['/Mixer/OutputMix', 5, 5], 
            self.sldOMixPC7O7: ['/Mixer/OutputMix', 6, 6], 
            self.sldOMixPC8O8: ['/Mixer/OutputMix', 7, 7], 
            self.sldOMixPC9O9: ['/Mixer/OutputMix', 8, 8], 
            self.sldOMixPC10O10: ['/Mixer/OutputMix', 9, 9],
            
            self.sldOMixPC1O3: ['/Mixer/OutputMix', 0, 2], 
            self.sldOMixPC2O4: ['/Mixer/OutputMix', 1, 3], 
            self.sldOMixPC1O5: ['/Mixer/OutputMix', 0, 4], 
            self.sldOMixPC2O6: ['/Mixer/OutputMix', 1, 5], 
            self.sldOMixPC1O7: ['/Mixer/OutputMix', 0, 6], 
            self.sldOMixPC2O8: ['/Mixer/OutputMix', 1, 7], 
            self.sldOMixPC1O9: ['/Mixer/OutputMix', 0, 8], 
            self.sldOMixPC2O10: ['/Mixer/OutputMix', 1, 9], 
            
            self.sldOMixIMixO1: ['/Mixer/OutputMix', 10, 0], 
            self.sldOMixIMixO2: ['/Mixer/OutputMix', 11, 1], 
            self.sldOMixIMixO3: ['/Mixer/OutputMix', 10, 2], 
            self.sldOMixIMixO4: ['/Mixer/OutputMix', 11, 3], 
            self.sldOMixIMixO5: ['/Mixer/OutputMix', 10, 4], 
            self.sldOMixIMixO6: ['/Mixer/OutputMix', 11, 5], 
            self.sldOMixIMixO7: ['/Mixer/OutputMix', 10, 6], 
            self.sldOMixIMixO8: ['/Mixer/OutputMix', 11, 7], 
            self.sldOMixIMixO9: ['/Mixer/OutputMix', 10, 8], 
            self.sldOMixIMixO10: ['/Mixer/OutputMix', 11, 9], 
            }


        self.SelectorControls={
            # control elements
            self.chkInsert1: ['/Control/Insert1'], 
            self.chkInsert2: ['/Control/Insert2'], 
            self.chkPhantom14: ['/Control/Phantom_1to4'], 
            self.chkPhantom58: ['/Control/Phantom_5to8'], 
            self.chkAC3: ['/Control/AC3pass'], 
            self.chkMidiThru: ['/Control/MidiTru'], 
            self.chkHighVoltage: ['/Control/UseHighVoltageRail'], 
            #self.chkEnableADAT1: ['/Control/EnableAdat1'], 
            #self.chkEnableADAT2: ['/Control/EnableAdat2'],
            #self.chkEnableSPDIF1: ['/Control/EnableSPDIF1'],
            self.chkMidiEnable: ['/Control/MIDIEnable'],
            self.chkAdatDisable: ['/Control/ADATDisable'],
            # Mixer switches
            self.chkMute12: ['/Mixer/Out12Mute'],
            self.chkHwCtrl12: ['/Mixer/Out12HwCtrl'],
            self.chkPad12: ['/Mixer/Out12Pad'],
            self.chkDim12: ['/Mixer/Out12Dim'],
            self.chkMute34: ['/Mixer/Out34Mute'],
            self.chkHwCtrl34: ['/Mixer/Out34HwCtrl'],
            self.chkPad34: ['/Mixer/Out34Pad'],
            self.chkDim34: ['/Mixer/Out34Dim'],
            self.chkMute56: ['/Mixer/Out56Mute'],
            self.chkHwCtrl56: ['/Mixer/Out56HwCtrl'],
            self.chkPad56: ['/Mixer/Out56Pad'],
            self.chkDim56: ['/Mixer/Out56Dim'],
            self.chkMute78: ['/Mixer/Out78Mute'],
            self.chkHwCtrl78: ['/Mixer/Out78HwCtrl'],
            self.chkPad78: ['/Mixer/Out78Pad'],
            self.chkDim78: ['/Mixer/Out78Dim'],
            # direct monitoring
            self.chkMonitor1: ['/Mixer/DirectMonitorCH1'],
            self.chkMonitor2: ['/Mixer/DirectMonitorCH2'],
            self.chkMonitor3: ['/Mixer/DirectMonitorCH3'],
            self.chkMonitor4: ['/Mixer/DirectMonitorCH4'],
            self.chkMonitor5: ['/Mixer/DirectMonitorCH5'],
            self.chkMonitor6: ['/Mixer/DirectMonitorCH6'],
            self.chkMonitor7: ['/Mixer/DirectMonitorCH7'],
            self.chkMonitor8: ['/Mixer/DirectMonitorCH8'],
        }

        self.VolumeControlsLowRes={
            self.sldOut12Level:      ['/Mixer/Out12Level'],
            self.sldOut34Level:      ['/Mixer/Out34Level'],
            self.sldOut56Level:      ['/Mixer/Out56Level'],
            self.sldOut78Level:      ['/Mixer/Out78Level'],
        }

        self.TriggerButtonControls={
            self.btnReboot:        ['/Control/Reboot'],
            self.btnIdentify:      ['/Control/FlashLed'],
            self.btnSaveSettings:  ['/Control/SaveSettings'],
        }

        self.TextControls={
        }

        self.saveTextControls={
        }

        self.ComboControls={
            self.comboStandalone:        ['/Control/StandaloneConfig'],
        }
Ejemplo n.º 12
0
 def selectCombo(self, mode):
     SaffireMixerBase.selectCombo(self,mode)
Ejemplo n.º 13
0
    def __init__(self, parent=None):
        self.my_parent = parent
        QWidget.__init__(self, parent)
        SaffireMixerBase.__init__(self)
        uicLoad("ffado/mixer/saffirepro_large", self)
        self.have_adat = False
        log.debug("Init large Saffire Pro mixer window")

        self.VolumeControls = {
            self.sldIMixAnalog1L: ['/Mixer/InputMix', 0, 0],
            self.sldIMixAnalog1R: ['/Mixer/InputMix', 0, 1],
            self.sldIMixAnalog2L: ['/Mixer/InputMix', 1, 0],
            self.sldIMixAnalog2R: ['/Mixer/InputMix', 1, 1],
            self.sldIMixAnalog3L: ['/Mixer/InputMix', 2, 0],
            self.sldIMixAnalog3R: ['/Mixer/InputMix', 2, 1],
            self.sldIMixAnalog4L: ['/Mixer/InputMix', 3, 0],
            self.sldIMixAnalog4R: ['/Mixer/InputMix', 3, 1],
            self.sldIMixAnalog5L: ['/Mixer/InputMix', 4, 0],
            self.sldIMixAnalog5R: ['/Mixer/InputMix', 4, 1],
            self.sldIMixAnalog6L: ['/Mixer/InputMix', 5, 0],
            self.sldIMixAnalog6R: ['/Mixer/InputMix', 5, 1],
            self.sldIMixAnalog7L: ['/Mixer/InputMix', 6, 0],
            self.sldIMixAnalog7R: ['/Mixer/InputMix', 6, 1],
            self.sldIMixAnalog8L: ['/Mixer/InputMix', 7, 0],
            self.sldIMixAnalog8R: ['/Mixer/InputMix', 7, 1],
            self.sldIMixAnalog9L: ['/Mixer/InputMix', 8, 0],
            self.sldIMixAnalog9R: ['/Mixer/InputMix', 8, 1],
            self.sldIMixAnalog10L: ['/Mixer/InputMix', 9, 0],
            self.sldIMixAnalog10R: ['/Mixer/InputMix', 9, 1],
            self.sldIMixADAT11L: ['/Mixer/InputMix', 10, 0],
            self.sldIMixADAT11R: ['/Mixer/InputMix', 10, 1],
            self.sldIMixADAT12L: ['/Mixer/InputMix', 11, 0],
            self.sldIMixADAT12R: ['/Mixer/InputMix', 11, 1],
            self.sldIMixADAT13L: ['/Mixer/InputMix', 12, 0],
            self.sldIMixADAT13R: ['/Mixer/InputMix', 12, 1],
            self.sldIMixADAT14L: ['/Mixer/InputMix', 13, 0],
            self.sldIMixADAT14R: ['/Mixer/InputMix', 13, 1],
            self.sldIMixADAT15L: ['/Mixer/InputMix', 14, 0],
            self.sldIMixADAT15R: ['/Mixer/InputMix', 14, 1],
            self.sldIMixADAT16L: ['/Mixer/InputMix', 15, 0],
            self.sldIMixADAT16R: ['/Mixer/InputMix', 15, 1],
            self.sldIMixADAT17L: ['/Mixer/InputMix', 16, 0],
            self.sldIMixADAT17R: ['/Mixer/InputMix', 16, 1],
            self.sldIMixADAT18L: ['/Mixer/InputMix', 17, 0],
            self.sldIMixADAT18R: ['/Mixer/InputMix', 17, 1],
            self.sldIMixADAT21L: ['/Mixer/InputMix', 18, 0],
            self.sldIMixADAT21R: ['/Mixer/InputMix', 18, 1],
            self.sldIMixADAT22L: ['/Mixer/InputMix', 19, 0],
            self.sldIMixADAT22R: ['/Mixer/InputMix', 19, 1],
            self.sldIMixADAT23L: ['/Mixer/InputMix', 20, 0],
            self.sldIMixADAT23R: ['/Mixer/InputMix', 20, 1],
            self.sldIMixADAT24L: ['/Mixer/InputMix', 21, 0],
            self.sldIMixADAT24R: ['/Mixer/InputMix', 21, 1],
            self.sldIMixADAT25L: ['/Mixer/InputMix', 22, 0],
            self.sldIMixADAT25R: ['/Mixer/InputMix', 22, 1],
            self.sldIMixADAT26L: ['/Mixer/InputMix', 23, 0],
            self.sldIMixADAT26R: ['/Mixer/InputMix', 23, 1],
            self.sldIMixADAT27L: ['/Mixer/InputMix', 24, 0],
            self.sldIMixADAT27R: ['/Mixer/InputMix', 24, 1],
            self.sldIMixADAT28L: ['/Mixer/InputMix', 25, 0],
            self.sldIMixADAT28R: ['/Mixer/InputMix', 25, 1],
            self.sldOMixPC1O1: ['/Mixer/OutputMix', 0, 0],
            self.sldOMixPC2O2: ['/Mixer/OutputMix', 1, 1],
            self.sldOMixPC3O3: ['/Mixer/OutputMix', 2, 2],
            self.sldOMixPC4O4: ['/Mixer/OutputMix', 3, 3],
            self.sldOMixPC5O5: ['/Mixer/OutputMix', 4, 4],
            self.sldOMixPC6O6: ['/Mixer/OutputMix', 5, 5],
            self.sldOMixPC7O7: ['/Mixer/OutputMix', 6, 6],
            self.sldOMixPC8O8: ['/Mixer/OutputMix', 7, 7],
            self.sldOMixPC9O9: ['/Mixer/OutputMix', 8, 8],
            self.sldOMixPC10O10: ['/Mixer/OutputMix', 9, 9],
            self.sldOMixPC1O3: ['/Mixer/OutputMix', 0, 2],
            self.sldOMixPC2O4: ['/Mixer/OutputMix', 1, 3],
            self.sldOMixPC1O5: ['/Mixer/OutputMix', 0, 4],
            self.sldOMixPC2O6: ['/Mixer/OutputMix', 1, 5],
            self.sldOMixPC1O7: ['/Mixer/OutputMix', 0, 6],
            self.sldOMixPC2O8: ['/Mixer/OutputMix', 1, 7],
            self.sldOMixPC1O9: ['/Mixer/OutputMix', 0, 8],
            self.sldOMixPC2O10: ['/Mixer/OutputMix', 1, 9],
            self.sldOMixIMixO1: ['/Mixer/OutputMix', 10, 0],
            self.sldOMixIMixO2: ['/Mixer/OutputMix', 11, 1],
            self.sldOMixIMixO3: ['/Mixer/OutputMix', 10, 2],
            self.sldOMixIMixO4: ['/Mixer/OutputMix', 11, 3],
            self.sldOMixIMixO5: ['/Mixer/OutputMix', 10, 4],
            self.sldOMixIMixO6: ['/Mixer/OutputMix', 11, 5],
            self.sldOMixIMixO7: ['/Mixer/OutputMix', 10, 6],
            self.sldOMixIMixO8: ['/Mixer/OutputMix', 11, 7],
            self.sldOMixIMixO9: ['/Mixer/OutputMix', 10, 8],
            self.sldOMixIMixO10: ['/Mixer/OutputMix', 11, 9],
        }

        self.SelectorControls = {
            # control elements
            self.chkInsert1: ['/Control/Insert1'],
            self.chkInsert2: ['/Control/Insert2'],
            self.chkPhantom14: ['/Control/Phantom_1to4'],
            self.chkPhantom58: ['/Control/Phantom_5to8'],
            self.chkAC3: ['/Control/AC3pass'],
            self.chkMidiThru: ['/Control/MidiTru'],
            self.chkHighVoltage: ['/Control/UseHighVoltageRail'],
            #self.chkEnableADAT1: ['/Control/EnableAdat1'],
            #self.chkEnableADAT2: ['/Control/EnableAdat2'],
            #self.chkEnableSPDIF1: ['/Control/EnableSPDIF1'],
            self.chkMidiEnable: ['/Control/MIDIEnable'],
            self.chkAdatDisable: ['/Control/ADATDisable'],
            # Mixer switches
            self.chkMute12: ['/Mixer/Out12Mute', [self.chkHwCtrl12]],
            self.chkHwCtrl12: ['/Mixer/Out12HwCtrl'],
            self.chkPad12: ['/Mixer/Out12Pad'],
            self.chkDim12: ['/Mixer/Out12Dim'],
            self.chkMute34: ['/Mixer/Out34Mute', [self.chkHwCtrl34]],
            self.chkHwCtrl34: ['/Mixer/Out34HwCtrl'],
            self.chkPad34: ['/Mixer/Out34Pad'],
            self.chkDim34: ['/Mixer/Out34Dim'],
            self.chkMute56: ['/Mixer/Out56Mute', [self.chkHwCtrl56]],
            self.chkHwCtrl56: ['/Mixer/Out56HwCtrl'],
            self.chkPad56: ['/Mixer/Out56Pad'],
            self.chkDim56: ['/Mixer/Out56Dim'],
            self.chkMute78: ['/Mixer/Out78Mute', [self.chkHwCtrl78]],
            self.chkHwCtrl78: ['/Mixer/Out78HwCtrl'],
            self.chkPad78: ['/Mixer/Out78Pad'],
            self.chkDim78: ['/Mixer/Out78Dim'],
            # direct monitoring
            self.chkMonitor1: ['/Mixer/DirectMonitorCH1'],
            self.chkMonitor2: ['/Mixer/DirectMonitorCH2'],
            self.chkMonitor3: ['/Mixer/DirectMonitorCH3'],
            self.chkMonitor4: ['/Mixer/DirectMonitorCH4'],
            self.chkMonitor5: ['/Mixer/DirectMonitorCH5'],
            self.chkMonitor6: ['/Mixer/DirectMonitorCH6'],
            self.chkMonitor7: ['/Mixer/DirectMonitorCH7'],
            self.chkMonitor8: ['/Mixer/DirectMonitorCH8'],
        }

        self.VolumeControlsLowRes = {
            self.sldOut12Level: ['/Mixer/Out12Level'],
            self.sldOut34Level: ['/Mixer/Out34Level'],
            self.sldOut56Level: ['/Mixer/Out56Level'],
            self.sldOut78Level: ['/Mixer/Out78Level'],
        }

        self.TriggerButtonControls = {
            self.btnReboot: ['/Control/Reboot'],
            self.btnIdentify: ['/Control/FlashLed'],
            self.btnSaveSettings: ['/Control/SaveSettings'],
        }

        self.TextControls = {}

        self.saveTextControls = {}

        self.ComboControls = {
            self.comboStandalone: ['/Control/StandaloneConfig'],
        }
Ejemplo n.º 14
0
    def __init__(self, parent=None):
        self.my_parent = parent
        QWidget.__init__(self, parent)
        SaffireMixerBase.__init__(self)
        uicLoad("ffado/mixer/saffirepro_small", self)
        log.debug("Init small Saffire Pro mixer window")

        self.VolumeControls = {
            self.sldOMixPC1O1: ['/Mixer/OutputMix', 0, 0],
            self.sldOMixPC2O2: ['/Mixer/OutputMix', 1, 1],
            self.sldOMixPC3O3: ['/Mixer/OutputMix', 2, 2],
            self.sldOMixPC4O4: ['/Mixer/OutputMix', 3, 3],
            self.sldOMixPC5O5: ['/Mixer/OutputMix', 4, 4],
            self.sldOMixPC6O6: ['/Mixer/OutputMix', 5, 5],
            self.sldOMixPC7O7: ['/Mixer/OutputMix', 6, 6],
            self.sldOMixPC8O8: ['/Mixer/OutputMix', 7, 7],
            self.sldOMixPC9O9: ['/Mixer/OutputMix', 8, 8],
            self.sldOMixPC10O10: ['/Mixer/OutputMix', 9, 9],
            self.sldOMixPC1O3: ['/Mixer/OutputMix', 0, 2],
            self.sldOMixPC2O4: ['/Mixer/OutputMix', 1, 3],
            self.sldOMixPC1O5: ['/Mixer/OutputMix', 0, 4],
            self.sldOMixPC2O6: ['/Mixer/OutputMix', 1, 5],
            self.sldOMixPC1O7: ['/Mixer/OutputMix', 0, 6],
            self.sldOMixPC2O8: ['/Mixer/OutputMix', 1, 7],
            self.sldOMixPC1O9: ['/Mixer/OutputMix', 0, 8],
            self.sldOMixPC2O10: ['/Mixer/OutputMix', 1, 9],
            self.sldOMixIMixO1: ['/Mixer/OutputMix', 10, 0],
            self.sldOMixIMixO2: ['/Mixer/OutputMix', 11, 1],
            self.sldOMixIMixO3: ['/Mixer/OutputMix', 10, 2],
            self.sldOMixIMixO4: ['/Mixer/OutputMix', 11, 3],
            self.sldOMixIMixO5: ['/Mixer/OutputMix', 10, 4],
            self.sldOMixIMixO6: ['/Mixer/OutputMix', 11, 5],
            self.sldOMixIMixO7: ['/Mixer/OutputMix', 10, 6],
            self.sldOMixIMixO8: ['/Mixer/OutputMix', 11, 7],
            self.sldOMixIMixO9: ['/Mixer/OutputMix', 10, 8],
            self.sldOMixIMixO10: ['/Mixer/OutputMix', 11, 9],
        }

        self.SelectorControls = {
            # control elements
            self.chkInsert1: ['/Control/Insert1'],
            self.chkInsert2: ['/Control/Insert2'],
            self.chkPhantom14: ['/Control/Phantom_1to4'],
            self.chkPhantom58: ['/Control/Phantom_5to8'],
            self.chkAC3: ['/Control/AC3pass'],
            self.chkMidiThru: ['/Control/MidiTru'],
            self.chkHighVoltage: ['/Control/UseHighVoltageRail'],
            #self.chkEnableADAT1: ['/Control/EnableAdat1'],
            #self.chkEnableADAT2: ['/Control/EnableAdat2'],
            #self.chkEnableSPDIF1: ['/Control/EnableSPDIF1'],
            self.chkMidiEnable: ['/Control/MIDIEnable'],
            self.chkAdatDisable: ['/Control/ADATDisable'],
            # Mixer switches
            self.chkMute12: ['/Mixer/Out12Mute'],
            self.chkHwCtrl12: ['/Mixer/Out12HwCtrl'],
            self.chkPad12: ['/Mixer/Out12Pad'],
            self.chkDim12: ['/Mixer/Out12Dim'],
            self.chkMute34: ['/Mixer/Out34Mute'],
            self.chkHwCtrl34: ['/Mixer/Out34HwCtrl'],
            self.chkPad34: ['/Mixer/Out34Pad'],
            self.chkDim34: ['/Mixer/Out34Dim'],
            self.chkMute56: ['/Mixer/Out56Mute'],
            self.chkHwCtrl56: ['/Mixer/Out56HwCtrl'],
            self.chkPad56: ['/Mixer/Out56Pad'],
            self.chkDim56: ['/Mixer/Out56Dim'],
            self.chkMute78: ['/Mixer/Out78Mute'],
            self.chkHwCtrl78: ['/Mixer/Out78HwCtrl'],
            self.chkPad78: ['/Mixer/Out78Pad'],
            self.chkDim78: ['/Mixer/Out78Dim'],
            # direct monitoring
            self.chkMonitor1: ['/Mixer/DirectMonitorCH1'],
            self.chkMonitor2: ['/Mixer/DirectMonitorCH2'],
            self.chkMonitor3: ['/Mixer/DirectMonitorCH3'],
            self.chkMonitor4: ['/Mixer/DirectMonitorCH4'],
            self.chkMonitor5: ['/Mixer/DirectMonitorCH5'],
            self.chkMonitor6: ['/Mixer/DirectMonitorCH6'],
            self.chkMonitor7: ['/Mixer/DirectMonitorCH7'],
            self.chkMonitor8: ['/Mixer/DirectMonitorCH8'],
        }

        self.VolumeControlsLowRes = {
            self.sldOut12Level: ['/Mixer/Out12Level'],
            self.sldOut34Level: ['/Mixer/Out34Level'],
            self.sldOut56Level: ['/Mixer/Out56Level'],
            self.sldOut78Level: ['/Mixer/Out78Level'],
        }

        self.TriggerButtonControls = {
            self.btnReboot: ['/Control/Reboot'],
            self.btnIdentify: ['/Control/FlashLed'],
            self.btnSaveSettings: ['/Control/SaveSettings'],
        }

        self.TextControls = {}

        self.saveTextControls = {}

        self.ComboControls = {
            self.comboStandalone: ['/Control/StandaloneConfig'],
        }
Ejemplo n.º 15
0
 def saveText(self):
     SaffireMixerBase.saveText(self)
Ejemplo n.º 16
0
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        uicLoad("ffado/mixer/saffirele_large", self)
        SaffireMixerBase.__init__(self)

        log.debug("Init large Saffire LE mixer window")

        self.VolumeControls={
                self.sldIN1Out1: ['/Mixer/LEMix48', 0, 0],
                self.sldIN1Out2: ['/Mixer/LEMix48', 0, 1],
                self.sldIN1Out3: ['/Mixer/LEMix48', 0, 2],
                self.sldIN1Out4: ['/Mixer/LEMix48', 0, 3],
                self.sldIN2Out1: ['/Mixer/LEMix48', 1, 0],
                self.sldIN2Out2: ['/Mixer/LEMix48', 1, 1],
                self.sldIN2Out3: ['/Mixer/LEMix48', 1, 2],
                self.sldIN2Out4: ['/Mixer/LEMix48', 1, 3],
                self.sldIN3Out1: ['/Mixer/LEMix48', 2, 0],
                self.sldIN3Out2: ['/Mixer/LEMix48', 2, 1],
                self.sldIN3Out3: ['/Mixer/LEMix48', 2, 2],
                self.sldIN3Out4: ['/Mixer/LEMix48', 2, 3],
                self.sldIN4Out1: ['/Mixer/LEMix48', 3, 0],
                self.sldIN4Out2: ['/Mixer/LEMix48', 3, 1],
                self.sldIN4Out3: ['/Mixer/LEMix48', 3, 2],
                self.sldIN4Out4: ['/Mixer/LEMix48', 3, 3],
                self.sldSPDIF1Out1: ['/Mixer/LEMix48', 4, 0],
                self.sldSPDIF1Out2: ['/Mixer/LEMix48', 4, 1],
                self.sldSPDIF1Out3: ['/Mixer/LEMix48', 4, 2],
                self.sldSPDIF1Out4: ['/Mixer/LEMix48', 4, 3],
                self.sldSPDIF2Out1: ['/Mixer/LEMix48', 5, 0],
                self.sldSPDIF2Out2: ['/Mixer/LEMix48', 5, 1],
                self.sldSPDIF2Out3: ['/Mixer/LEMix48', 5, 2],
                self.sldSPDIF2Out4: ['/Mixer/LEMix48', 5, 3],
                
                self.sldPC1Out1: ['/Mixer/LEMix48', 6, 0],
                self.sldPC1Out2: ['/Mixer/LEMix48', 6, 1],
                self.sldPC1Out3: ['/Mixer/LEMix48', 6, 2],
                self.sldPC1Out4: ['/Mixer/LEMix48', 6, 3],
                self.sldPC2Out1: ['/Mixer/LEMix48', 7, 0],
                self.sldPC2Out2: ['/Mixer/LEMix48', 7, 1],
                self.sldPC2Out3: ['/Mixer/LEMix48', 7, 2],
                self.sldPC2Out4: ['/Mixer/LEMix48', 7, 3],
                self.sldPC3Out1: ['/Mixer/LEMix48', 8, 0],
                self.sldPC3Out2: ['/Mixer/LEMix48', 8, 1],
                self.sldPC3Out3: ['/Mixer/LEMix48', 8, 2],
                self.sldPC3Out4: ['/Mixer/LEMix48', 8, 3],
                self.sldPC4Out1: ['/Mixer/LEMix48', 9, 0],
                self.sldPC4Out2: ['/Mixer/LEMix48', 9, 1],
                self.sldPC4Out3: ['/Mixer/LEMix48', 9, 2],
                self.sldPC4Out4: ['/Mixer/LEMix48', 9, 3],
                self.sldPC5Out1: ['/Mixer/LEMix48', 10, 0],
                self.sldPC5Out2: ['/Mixer/LEMix48', 10, 1],
                self.sldPC5Out3: ['/Mixer/LEMix48', 10, 2],
                self.sldPC5Out4: ['/Mixer/LEMix48', 10, 3],
                self.sldPC6Out1: ['/Mixer/LEMix48', 11, 0],
                self.sldPC6Out2: ['/Mixer/LEMix48', 11, 1],
                self.sldPC6Out3: ['/Mixer/LEMix48', 11, 2],
                self.sldPC6Out4: ['/Mixer/LEMix48', 11, 3],
                self.sldPC7Out1: ['/Mixer/LEMix48', 12, 0],
                self.sldPC7Out2: ['/Mixer/LEMix48', 12, 1],
                self.sldPC7Out3: ['/Mixer/LEMix48', 12, 2],
                self.sldPC7Out4: ['/Mixer/LEMix48', 12, 3],
                self.sldPC8Out1: ['/Mixer/LEMix48', 13, 0],
                self.sldPC8Out2: ['/Mixer/LEMix48', 13, 1],
                self.sldPC8Out3: ['/Mixer/LEMix48', 13, 2],
                self.sldPC8Out4: ['/Mixer/LEMix48', 13, 3],
                }

        self.SelectorControls={
                self.chkOut12Mute:          ['/Mixer/Out12Mute'],
                self.chkOut12HwCtrl:        ['/Mixer/Out12HwCtrl'],
                self.chkOut34Mute:          ['/Mixer/Out34Mute'],
                self.chkOut34HwCtrl:        ['/Mixer/Out34HwCtrl'],
                self.chkOut56Mute:          ['/Mixer/Out56Mute'],
                self.chkOut56HwCtrl:        ['/Mixer/Out56HwCtrl'],
                self.chkSPDIFTransparent:   ['/Mixer/SpdifTransparent'],
                self.chkMIDITru:            ['/Mixer/MidiThru'],
                self.chkHighGain3:          ['/Mixer/HighGainLine3'],
                self.chkHighGain4:          ['/Mixer/HighGainLine4'],
                }

        self.VolumeControlsLowRes={
                self.sldOut12Level:      ['/Mixer/Out12Level'],
                self.sldOut34Level:      ['/Mixer/Out34Level'],
                self.sldOut56Level:      ['/Mixer/Out56Level'],
                }

        self.TriggerButtonControls={
            self.btnSaveSettings:        ['/Mixer/SaveSettings'],
        }

        self.TextControls={
        }

        self.saveTextControls={
        }

        self.ComboControls={
        }
Ejemplo n.º 17
0
    def __init__(self, parent=None):
        self.my_parent = parent
        QWidget.__init__(self, parent)
        uicLoad("ffado/mixer/saffirele_large", self)
        SaffireMixerBase.__init__(self)

        log.debug("Init large Saffire LE mixer window")

        self.VolumeControls = {
            self.sldIN1Out1: ['/Mixer/LEMix48', 0, 0],
            self.sldIN1Out2: ['/Mixer/LEMix48', 0, 1],
            self.sldIN1Out3: ['/Mixer/LEMix48', 0, 2],
            self.sldIN1Out4: ['/Mixer/LEMix48', 0, 3],
            self.sldIN2Out1: ['/Mixer/LEMix48', 1, 0],
            self.sldIN2Out2: ['/Mixer/LEMix48', 1, 1],
            self.sldIN2Out3: ['/Mixer/LEMix48', 1, 2],
            self.sldIN2Out4: ['/Mixer/LEMix48', 1, 3],
            self.sldIN3Out1: ['/Mixer/LEMix48', 2, 0],
            self.sldIN3Out2: ['/Mixer/LEMix48', 2, 1],
            self.sldIN3Out3: ['/Mixer/LEMix48', 2, 2],
            self.sldIN3Out4: ['/Mixer/LEMix48', 2, 3],
            self.sldIN4Out1: ['/Mixer/LEMix48', 3, 0],
            self.sldIN4Out2: ['/Mixer/LEMix48', 3, 1],
            self.sldIN4Out3: ['/Mixer/LEMix48', 3, 2],
            self.sldIN4Out4: ['/Mixer/LEMix48', 3, 3],
            self.sldSPDIF1Out1: ['/Mixer/LEMix48', 4, 0],
            self.sldSPDIF1Out2: ['/Mixer/LEMix48', 4, 1],
            self.sldSPDIF1Out3: ['/Mixer/LEMix48', 4, 2],
            self.sldSPDIF1Out4: ['/Mixer/LEMix48', 4, 3],
            self.sldSPDIF2Out1: ['/Mixer/LEMix48', 5, 0],
            self.sldSPDIF2Out2: ['/Mixer/LEMix48', 5, 1],
            self.sldSPDIF2Out3: ['/Mixer/LEMix48', 5, 2],
            self.sldSPDIF2Out4: ['/Mixer/LEMix48', 5, 3],
            self.sldPC1Out1: ['/Mixer/LEMix48', 6, 0],
            self.sldPC1Out2: ['/Mixer/LEMix48', 6, 1],
            self.sldPC1Out3: ['/Mixer/LEMix48', 6, 2],
            self.sldPC1Out4: ['/Mixer/LEMix48', 6, 3],
            self.sldPC2Out1: ['/Mixer/LEMix48', 7, 0],
            self.sldPC2Out2: ['/Mixer/LEMix48', 7, 1],
            self.sldPC2Out3: ['/Mixer/LEMix48', 7, 2],
            self.sldPC2Out4: ['/Mixer/LEMix48', 7, 3],
            self.sldPC3Out1: ['/Mixer/LEMix48', 8, 0],
            self.sldPC3Out2: ['/Mixer/LEMix48', 8, 1],
            self.sldPC3Out3: ['/Mixer/LEMix48', 8, 2],
            self.sldPC3Out4: ['/Mixer/LEMix48', 8, 3],
            self.sldPC4Out1: ['/Mixer/LEMix48', 9, 0],
            self.sldPC4Out2: ['/Mixer/LEMix48', 9, 1],
            self.sldPC4Out3: ['/Mixer/LEMix48', 9, 2],
            self.sldPC4Out4: ['/Mixer/LEMix48', 9, 3],
            self.sldPC5Out1: ['/Mixer/LEMix48', 10, 0],
            self.sldPC5Out2: ['/Mixer/LEMix48', 10, 1],
            self.sldPC5Out3: ['/Mixer/LEMix48', 10, 2],
            self.sldPC5Out4: ['/Mixer/LEMix48', 10, 3],
            self.sldPC6Out1: ['/Mixer/LEMix48', 11, 0],
            self.sldPC6Out2: ['/Mixer/LEMix48', 11, 1],
            self.sldPC6Out3: ['/Mixer/LEMix48', 11, 2],
            self.sldPC6Out4: ['/Mixer/LEMix48', 11, 3],
            self.sldPC7Out1: ['/Mixer/LEMix48', 12, 0],
            self.sldPC7Out2: ['/Mixer/LEMix48', 12, 1],
            self.sldPC7Out3: ['/Mixer/LEMix48', 12, 2],
            self.sldPC7Out4: ['/Mixer/LEMix48', 12, 3],
            self.sldPC8Out1: ['/Mixer/LEMix48', 13, 0],
            self.sldPC8Out2: ['/Mixer/LEMix48', 13, 1],
            self.sldPC8Out3: ['/Mixer/LEMix48', 13, 2],
            self.sldPC8Out4: ['/Mixer/LEMix48', 13, 3],
        }

        self.SelectorControls = {
            self.chkOut12Mute: ['/Mixer/Out12Mute'],
            self.chkOut12HwCtrl: ['/Mixer/Out12HwCtrl'],
            self.chkOut34Mute: ['/Mixer/Out34Mute'],
            self.chkOut34HwCtrl: ['/Mixer/Out34HwCtrl'],
            self.chkOut56Mute: ['/Mixer/Out56Mute'],
            self.chkOut56HwCtrl: ['/Mixer/Out56HwCtrl'],
            self.chkSPDIFTransparent: ['/Mixer/SpdifTransparent'],
            self.chkMIDITru: ['/Mixer/MidiThru'],
            self.chkHighGain3: ['/Mixer/HighGainLine3'],
            self.chkHighGain4: ['/Mixer/HighGainLine4'],
        }

        self.VolumeControlsLowRes = {
            self.sldOut12Level: ['/Mixer/Out12Level'],
            self.sldOut34Level: ['/Mixer/Out34Level'],
            self.sldOut56Level: ['/Mixer/Out56Level'],
        }

        self.TriggerButtonControls = {
            self.btnSaveSettings: ['/Mixer/SaveSettings'],
        }

        self.TextControls = {}

        self.saveTextControls = {}

        self.ComboControls = {}
Ejemplo n.º 18
0
 def updateSelector(self, a0):
     SaffireMixerBase.updateSelector(self, a0)
Ejemplo n.º 19
0
 def updateLowResVolume(self, a0):
     SaffireMixerBase.updateLowResVolume(self, a0)
Ejemplo n.º 20
0
 def updateMatrixVolume(self, a0):
     SaffireMixerBase.updateMatrixVolume(self, a0)
Ejemplo n.º 21
0
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        uicLoad("ffado/mixer/saffire_mono", self)
        SaffireMixerBase.__init__(self)
        QObject.connect(self.btnRefresh, SIGNAL('clicked()'), self.updateValues)
        QObject.connect(self.btnSwitchStereoMode, SIGNAL('clicked()'), self.switchStereoMode)

        self.VolumeControls={
                self.sldIN1Out910: ['/Mixer/MatrixMixerMono', 0, 0],
                self.sldIN1Out12: ['/Mixer/MatrixMixerMono', 0, 1],
                self.sldIN1Out34: ['/Mixer/MatrixMixerMono', 0, 2],
                self.sldIN1Out56: ['/Mixer/MatrixMixerMono', 0, 3],
                self.sldIN1Out78: ['/Mixer/MatrixMixerMono', 0, 4],
                self.sldIN3Out910: ['/Mixer/MatrixMixerMono', 1, 0],
                self.sldIN3Out12: ['/Mixer/MatrixMixerMono', 1, 1],
                self.sldIN3Out34: ['/Mixer/MatrixMixerMono', 1, 2],
                self.sldIN3Out56: ['/Mixer/MatrixMixerMono', 1, 3],
                self.sldIN3Out78: ['/Mixer/MatrixMixerMono', 1, 4],
                self.sldFX1Out910: ['/Mixer/MatrixMixerMono', 2, 0],
                self.sldFX1Out12: ['/Mixer/MatrixMixerMono', 2, 1],
                self.sldFX1Out34: ['/Mixer/MatrixMixerMono', 2, 2],
                self.sldFX1Out56: ['/Mixer/MatrixMixerMono', 2, 3],
                self.sldFX1Out78: ['/Mixer/MatrixMixerMono', 2, 4],
                self.sldIN2Out910: ['/Mixer/MatrixMixerMono', 3, 0],
                self.sldIN2Out12: ['/Mixer/MatrixMixerMono', 3, 1],
                self.sldIN2Out34: ['/Mixer/MatrixMixerMono', 3, 2],
                self.sldIN2Out56: ['/Mixer/MatrixMixerMono', 3, 3],
                self.sldIN2Out78: ['/Mixer/MatrixMixerMono', 3, 4],
                self.sldIN4Out910: ['/Mixer/MatrixMixerMono', 4, 0],
                self.sldIN4Out12: ['/Mixer/MatrixMixerMono', 4, 1],
                self.sldIN4Out34: ['/Mixer/MatrixMixerMono', 4, 2],
                self.sldIN4Out56: ['/Mixer/MatrixMixerMono', 4, 3],
                self.sldIN4Out78: ['/Mixer/MatrixMixerMono', 4, 4],
                self.sldFX2Out910: ['/Mixer/MatrixMixerMono', 5, 0],
                self.sldFX2Out12: ['/Mixer/MatrixMixerMono', 5, 1],
                self.sldFX2Out34: ['/Mixer/MatrixMixerMono', 5, 2],
                self.sldFX2Out56: ['/Mixer/MatrixMixerMono', 5, 3],
                self.sldFX2Out78: ['/Mixer/MatrixMixerMono', 5, 4],

                self.sldPC910Out910: ['/Mixer/MatrixMixerMono', 6, 0],
                self.sldPC910Out12: ['/Mixer/MatrixMixerMono', 6, 1],
                self.sldPC910Out34: ['/Mixer/MatrixMixerMono', 6, 2],
                self.sldPC910Out56: ['/Mixer/MatrixMixerMono', 6, 3],
                self.sldPC910Out78: ['/Mixer/MatrixMixerMono', 6, 4],
                self.sldPC12Out910: ['/Mixer/MatrixMixerMono', 7, 0],
                self.sldPC12Out12: ['/Mixer/MatrixMixerMono', 7, 1],
                self.sldPC12Out34: ['/Mixer/MatrixMixerMono', 7, 2],
                self.sldPC12Out56: ['/Mixer/MatrixMixerMono', 7, 3],
                self.sldPC12Out78: ['/Mixer/MatrixMixerMono', 7, 4],
                self.sldPC34Out910: ['/Mixer/MatrixMixerMono', 8, 0],
                self.sldPC34Out12: ['/Mixer/MatrixMixerMono', 8, 1],
                self.sldPC34Out34: ['/Mixer/MatrixMixerMono', 8, 2],
                self.sldPC34Out56: ['/Mixer/MatrixMixerMono', 8, 3],
                self.sldPC34Out78: ['/Mixer/MatrixMixerMono', 8, 4],
                self.sldPC56Out910: ['/Mixer/MatrixMixerMono', 9, 0],
                self.sldPC56Out12: ['/Mixer/MatrixMixerMono', 9, 1],
                self.sldPC56Out34: ['/Mixer/MatrixMixerMono', 9, 2],
                self.sldPC56Out56: ['/Mixer/MatrixMixerMono', 9, 3],
                self.sldPC56Out78: ['/Mixer/MatrixMixerMono', 9, 4],
                self.sldPC78Out910: ['/Mixer/MatrixMixerMono', 10, 0],
                self.sldPC78Out12: ['/Mixer/MatrixMixerMono', 10, 1],
                self.sldPC78Out34: ['/Mixer/MatrixMixerMono', 10, 2],
                self.sldPC78Out56: ['/Mixer/MatrixMixerMono', 10, 3],
                self.sldPC78Out78: ['/Mixer/MatrixMixerMono', 10, 4],


                }


        # First column is the DBUS subpath of the control.
        # Second column is a list of linked controls that should
        # be rewritten whenever this control is updated
        self.SelectorControls={
                self.chkSpdifSwitch:    ['/Mixer/SpdifSwitch'],
                self.chkOut12Mute:      ['/Mixer/Out12Mute', [self.chkOut12HwCtrl]],
                self.chkOut12HwCtrl:    ['/Mixer/Out12HwCtrl'],
                self.chkOut12Dim:       ['/Mixer/Out12Dim'],
                self.chkOut34Mute:      ['/Mixer/Out34Mute', [self.chkOut34HwCtrl]],
                self.chkOut34HwCtrl:    ['/Mixer/Out34HwCtrl'],
                self.chkOut56Mute:      ['/Mixer/Out56Mute', [self.chkOut56HwCtrl]],
                self.chkOut56HwCtrl:    ['/Mixer/Out56HwCtrl'],
                self.chkOut78Mute:      ['/Mixer/Out78Mute', [self.chkOut78HwCtrl]],
                self.chkOut78HwCtrl:    ['/Mixer/Out78HwCtrl'],
                self.chkOut910Mute:     ['/Mixer/Out910Mute'],
                }

        self.VolumeControlsLowRes={
                self.sldOut12Level:      ['/Mixer/Out12Level'],
                self.sldOut34Level:      ['/Mixer/Out34Level'],
                self.sldOut56Level:      ['/Mixer/Out56Level'],
                self.sldOut78Level:      ['/Mixer/Out78Level'],
                }

        self.TriggerButtonControls={
                self.btnSaveSettings:      ['/Mixer/SaveSettings'],
        }

        self.TextControls={
        }

        self.saveTextControls={
        }

        self.ComboControls={
        }
Ejemplo n.º 22
0
 def updateMatrixVolume(self,a0):
     SaffireMixerBase.updateMatrixVolume(self,a0)
Ejemplo n.º 23
0
 def saveText(self):
     SaffireMixerBase.saveText(self)
Ejemplo n.º 24
0
 def updateSelector(self,a0):
     SaffireMixerBase.updateSelector(self,a0)
Ejemplo n.º 25
0
 def updateLowResVolume(self,a0):
     SaffireMixerBase.updateLowResVolume(self,a0)
Ejemplo n.º 26
0
 def initCombo(self, combo):
     SaffireMixerBase.initCombo(self, combo)
Ejemplo n.º 27
0
 def triggerButton(self):
     SaffireMixerBase.triggerButton(self)
Ejemplo n.º 28
0
 def selectCombo(self, mode):
     SaffireMixerBase.selectCombo(self, mode)
Ejemplo n.º 29
0
 def initCombo(self, combo):
     SaffireMixerBase.initCombo(self,combo)
Ejemplo n.º 30
0
 def updateValues(self):
     SaffireMixerBase.updateValues(self)
Ejemplo n.º 31
0
 def updateValues(self):
     SaffireMixerBase.updateValues(self)
Ejemplo n.º 32
0
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        SaffireMixerBase.__init__(self)
        uicLoad("ffado/mixer/saffirepro_large", self)
        self.have_adat = False
        log.debug("Init large Saffire Pro mixer window")

        self.VolumeControls={
            self.sldIMixAnalog1L: ['/Mixer/InputMix', 0, 0], 
            self.sldIMixAnalog1R: ['/Mixer/InputMix', 0, 1], 
            self.sldIMixAnalog2L: ['/Mixer/InputMix', 1, 0], 
            self.sldIMixAnalog2R: ['/Mixer/InputMix', 1, 1], 
            self.sldIMixAnalog3L: ['/Mixer/InputMix', 2, 0], 
            self.sldIMixAnalog3R: ['/Mixer/InputMix', 2, 1], 
            self.sldIMixAnalog4L: ['/Mixer/InputMix', 3, 0], 
            self.sldIMixAnalog4R: ['/Mixer/InputMix', 3, 1], 
            self.sldIMixAnalog5L: ['/Mixer/InputMix', 4, 0], 
            self.sldIMixAnalog5R: ['/Mixer/InputMix', 4, 1], 
            self.sldIMixAnalog6L: ['/Mixer/InputMix', 5, 0], 
            self.sldIMixAnalog6R: ['/Mixer/InputMix', 5, 1], 
            self.sldIMixAnalog7L: ['/Mixer/InputMix', 6, 0], 
            self.sldIMixAnalog7R: ['/Mixer/InputMix', 6, 1], 
            self.sldIMixAnalog8L: ['/Mixer/InputMix', 7, 0], 
            self.sldIMixAnalog8R: ['/Mixer/InputMix', 7, 1], 
            self.sldIMixAnalog9L: ['/Mixer/InputMix', 8, 0], 
            self.sldIMixAnalog9R: ['/Mixer/InputMix', 8, 1], 
            self.sldIMixAnalog10L: ['/Mixer/InputMix', 9, 0], 
            self.sldIMixAnalog10R: ['/Mixer/InputMix', 9, 1], 
            self.sldIMixADAT11L: ['/Mixer/InputMix', 10, 0], 
            self.sldIMixADAT11R: ['/Mixer/InputMix', 10, 1], 
            self.sldIMixADAT12L: ['/Mixer/InputMix', 11, 0], 
            self.sldIMixADAT12R: ['/Mixer/InputMix', 11, 1], 
            self.sldIMixADAT13L: ['/Mixer/InputMix', 12, 0], 
            self.sldIMixADAT13R: ['/Mixer/InputMix', 12, 1], 
            self.sldIMixADAT14L: ['/Mixer/InputMix', 13, 0], 
            self.sldIMixADAT14R: ['/Mixer/InputMix', 13, 1], 
            self.sldIMixADAT15L: ['/Mixer/InputMix', 14, 0], 
            self.sldIMixADAT15R: ['/Mixer/InputMix', 14, 1], 
            self.sldIMixADAT16L: ['/Mixer/InputMix', 15, 0], 
            self.sldIMixADAT16R: ['/Mixer/InputMix', 15, 1], 
            self.sldIMixADAT17L: ['/Mixer/InputMix', 16, 0], 
            self.sldIMixADAT17R: ['/Mixer/InputMix', 16, 1], 
            self.sldIMixADAT18L: ['/Mixer/InputMix', 17, 0], 
            self.sldIMixADAT18R: ['/Mixer/InputMix', 17, 1], 
            self.sldIMixADAT21L: ['/Mixer/InputMix', 18, 0], 
            self.sldIMixADAT21R: ['/Mixer/InputMix', 18, 1], 
            self.sldIMixADAT22L: ['/Mixer/InputMix', 19, 0], 
            self.sldIMixADAT22R: ['/Mixer/InputMix', 19, 1], 
            self.sldIMixADAT23L: ['/Mixer/InputMix', 20, 0], 
            self.sldIMixADAT23R: ['/Mixer/InputMix', 20, 1], 
            self.sldIMixADAT24L: ['/Mixer/InputMix', 21, 0], 
            self.sldIMixADAT24R: ['/Mixer/InputMix', 21, 1], 
            self.sldIMixADAT25L: ['/Mixer/InputMix', 22, 0], 
            self.sldIMixADAT25R: ['/Mixer/InputMix', 22, 1], 
            self.sldIMixADAT26L: ['/Mixer/InputMix', 23, 0], 
            self.sldIMixADAT26R: ['/Mixer/InputMix', 23, 1], 
            self.sldIMixADAT27L: ['/Mixer/InputMix', 24, 0], 
            self.sldIMixADAT27R: ['/Mixer/InputMix', 24, 1], 
            self.sldIMixADAT28L: ['/Mixer/InputMix', 25, 0], 
            self.sldIMixADAT28R: ['/Mixer/InputMix', 25, 1],
            
            self.sldOMixPC1O1: ['/Mixer/OutputMix', 0, 0], 
            self.sldOMixPC2O2: ['/Mixer/OutputMix', 1, 1], 
            self.sldOMixPC3O3: ['/Mixer/OutputMix', 2, 2], 
            self.sldOMixPC4O4: ['/Mixer/OutputMix', 3, 3], 
            self.sldOMixPC5O5: ['/Mixer/OutputMix', 4, 4], 
            self.sldOMixPC6O6: ['/Mixer/OutputMix', 5, 5], 
            self.sldOMixPC7O7: ['/Mixer/OutputMix', 6, 6], 
            self.sldOMixPC8O8: ['/Mixer/OutputMix', 7, 7], 
            self.sldOMixPC9O9: ['/Mixer/OutputMix', 8, 8], 
            self.sldOMixPC10O10: ['/Mixer/OutputMix', 9, 9],
            
            self.sldOMixPC1O3: ['/Mixer/OutputMix', 0, 2], 
            self.sldOMixPC2O4: ['/Mixer/OutputMix', 1, 3], 
            self.sldOMixPC1O5: ['/Mixer/OutputMix', 0, 4], 
            self.sldOMixPC2O6: ['/Mixer/OutputMix', 1, 5], 
            self.sldOMixPC1O7: ['/Mixer/OutputMix', 0, 6], 
            self.sldOMixPC2O8: ['/Mixer/OutputMix', 1, 7], 
            self.sldOMixPC1O9: ['/Mixer/OutputMix', 0, 8], 
            self.sldOMixPC2O10: ['/Mixer/OutputMix', 1, 9], 
            
            self.sldOMixIMixO1: ['/Mixer/OutputMix', 10, 0], 
            self.sldOMixIMixO2: ['/Mixer/OutputMix', 11, 1], 
            self.sldOMixIMixO3: ['/Mixer/OutputMix', 10, 2], 
            self.sldOMixIMixO4: ['/Mixer/OutputMix', 11, 3], 
            self.sldOMixIMixO5: ['/Mixer/OutputMix', 10, 4], 
            self.sldOMixIMixO6: ['/Mixer/OutputMix', 11, 5], 
            self.sldOMixIMixO7: ['/Mixer/OutputMix', 10, 6], 
            self.sldOMixIMixO8: ['/Mixer/OutputMix', 11, 7], 
            self.sldOMixIMixO9: ['/Mixer/OutputMix', 10, 8], 
            self.sldOMixIMixO10: ['/Mixer/OutputMix', 11, 9], 
            }


        self.SelectorControls={
            # control elements
            self.chkInsert1: ['/Control/Insert1'], 
            self.chkInsert2: ['/Control/Insert2'], 
            self.chkPhantom14: ['/Control/Phantom_1to4'], 
            self.chkPhantom58: ['/Control/Phantom_5to8'], 
            self.chkAC3: ['/Control/AC3pass'], 
            self.chkMidiThru: ['/Control/MidiTru'], 
            self.chkHighVoltage: ['/Control/UseHighVoltageRail'], 
            #self.chkEnableADAT1: ['/Control/EnableAdat1'], 
            #self.chkEnableADAT2: ['/Control/EnableAdat2'],
            #self.chkEnableSPDIF1: ['/Control/EnableSPDIF1'],
            self.chkMidiEnable: ['/Control/MIDIEnable'],
            self.chkAdatDisable: ['/Control/ADATDisable'],
            # Mixer switches
            self.chkMute12: ['/Mixer/Out12Mute', [self.chkHwCtrl12]],
            self.chkHwCtrl12: ['/Mixer/Out12HwCtrl'],
            self.chkPad12: ['/Mixer/Out12Pad'],
            self.chkDim12: ['/Mixer/Out12Dim'],
            self.chkMute34: ['/Mixer/Out34Mute', [self.chkHwCtrl34]],
            self.chkHwCtrl34: ['/Mixer/Out34HwCtrl'],
            self.chkPad34: ['/Mixer/Out34Pad'],
            self.chkDim34: ['/Mixer/Out34Dim'],
            self.chkMute56: ['/Mixer/Out56Mute', [self.chkHwCtrl56]],
            self.chkHwCtrl56: ['/Mixer/Out56HwCtrl'],
            self.chkPad56: ['/Mixer/Out56Pad'],
            self.chkDim56: ['/Mixer/Out56Dim'],
            self.chkMute78: ['/Mixer/Out78Mute', [self.chkHwCtrl78]],
            self.chkHwCtrl78: ['/Mixer/Out78HwCtrl'],
            self.chkPad78: ['/Mixer/Out78Pad'],
            self.chkDim78: ['/Mixer/Out78Dim'],
            # direct monitoring
            self.chkMonitor1: ['/Mixer/DirectMonitorCH1'],
            self.chkMonitor2: ['/Mixer/DirectMonitorCH2'],
            self.chkMonitor3: ['/Mixer/DirectMonitorCH3'],
            self.chkMonitor4: ['/Mixer/DirectMonitorCH4'],
            self.chkMonitor5: ['/Mixer/DirectMonitorCH5'],
            self.chkMonitor6: ['/Mixer/DirectMonitorCH6'],
            self.chkMonitor7: ['/Mixer/DirectMonitorCH7'],
            self.chkMonitor8: ['/Mixer/DirectMonitorCH8'],
        }

        self.VolumeControlsLowRes={
            self.sldOut12Level:      ['/Mixer/Out12Level'],
            self.sldOut34Level:      ['/Mixer/Out34Level'],
            self.sldOut56Level:      ['/Mixer/Out56Level'],
            self.sldOut78Level:      ['/Mixer/Out78Level'],
        }

        self.TriggerButtonControls={
            self.btnReboot:        ['/Control/Reboot'],
            self.btnIdentify:      ['/Control/FlashLed'],
            self.btnSaveSettings:  ['/Control/SaveSettings'],
        }

        self.TextControls={
        }

        self.saveTextControls={
        }

        self.ComboControls={
            self.comboStandalone:        ['/Control/StandaloneConfig'],
        }