• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python mixer_saffire_base.SaffireMixerBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __init__

    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,代码行数:57,代码来源:mixer_saffire.py


示例2: triggerButton

 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)
开发者ID:janosvitok,项目名称:ffado,代码行数:10,代码来源:mixer_saffirepro.py


示例3: updateValues

    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)
开发者ID:janosvitok,项目名称:ffado,代码行数:15,代码来源:mixer_saffirepro.py


示例4: updateSelector

 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)
开发者ID:janosvitok,项目名称:ffado,代码行数:38,代码来源:mixer_saffirepro.py


示例5: initCombo

 def initCombo(self, combo):
     SaffireMixerBase.initCombo(self,combo)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例6: saveText

 def saveText(self):
     SaffireMixerBase.saveText(self)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例7: triggerButton

 def triggerButton(self):
     SaffireMixerBase.triggerButton(self)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例8: updateSelector

 def updateSelector(self,a0):
     SaffireMixerBase.updateSelector(self,a0)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例9: updateLowResVolume

 def updateLowResVolume(self,a0):
     SaffireMixerBase.updateLowResVolume(self,a0)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例10: updateMatrixVolume

 def updateMatrixVolume(self,a0):
     SaffireMixerBase.updateMatrixVolume(self,a0)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例11: __init__

    def __init__(self,parent = None):
        self.my_parent = parent
        QWidget.__init__(self,parent)
        SaffireMixerBase.__init__(self)
        self.setupUi(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'], 
#.........这里部分代码省略.........
开发者ID:janosvitok,项目名称:ffado,代码行数:101,代码来源:mixer_saffirepro.py


示例12: selectCombo

 def selectCombo(self, mode):
     SaffireMixerBase.selectCombo(self,mode)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例13: updateValues

 def updateValues(self):
     SaffireMixerBase.updateValues(self)
开发者ID:janosvitok,项目名称:ffado,代码行数:2,代码来源:mixer_saffire.py


示例14: __init__

 def __init__(self,parent = None,name = None,fl = 0):
     SaffireMixerUI.__init__(self,parent,name,fl)
     SaffireMixerBase.__init__(self)
开发者ID:janosvitok,项目名称:ffado,代码行数:3,代码来源:mixer_saffire.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python redis_helper.ExpKeys类代码示例发布时间:2022-05-27
下一篇:
Python mixer.blend函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap