当前位置: 首页>>代码示例>>Python>>正文


Python SaffireMixerBase.__init__方法代码示例

本文整理汇总了Python中mixer_saffire_base.SaffireMixerBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python SaffireMixerBase.__init__方法的具体用法?Python SaffireMixerBase.__init__怎么用?Python SaffireMixerBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mixer_saffire_base.SaffireMixerBase的用法示例。


在下文中一共展示了SaffireMixerBase.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from mixer_saffire_base import SaffireMixerBase [as 别名]
# 或者: from mixer_saffire_base.SaffireMixerBase import __init__ [as 别名]
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        self.setupUi(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={
        }
开发者ID:janosvitok,项目名称:ffado,代码行数:59,代码来源:mixer_saffire.py

示例2: __init__

# 需要导入模块: from mixer_saffire_base import SaffireMixerBase [as 别名]
# 或者: from mixer_saffire_base.SaffireMixerBase import __init__ [as 别名]
    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        SaffireMixerBase.__init__(self)
        self.setupUi(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={
        }

#.........这里部分代码省略.........
开发者ID:janosvitok,项目名称:ffado,代码行数:103,代码来源:mixer_saffirepro.py

示例3: __init__

# 需要导入模块: from mixer_saffire_base import SaffireMixerBase [as 别名]
# 或者: from mixer_saffire_base.SaffireMixerBase import __init__ [as 别名]
 def __init__(self,parent = None,name = None,fl = 0):
     SaffireMixerUI.__init__(self,parent,name,fl)
     SaffireMixerBase.__init__(self)
开发者ID:janosvitok,项目名称:ffado,代码行数:5,代码来源:mixer_saffire.py


注:本文中的mixer_saffire_base.SaffireMixerBase.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。