60 | | def setVolume(self, name, vol): |
---|
61 | | vol = -vol |
---|
62 | | ctrl = self.VolumeControls[name] |
---|
63 | | print "setting %s volume to %d" % (name, vol) |
---|
64 | | self.hw.setContignuous(ctrl[0], vol, idx = ctrl[1]) |
---|
| 60 | def setBalanceIn1(self, bal): |
---|
| 61 | self.setValue('bal1', bal) |
---|
| 62 | |
---|
| 63 | def setBalanceIn2(self, bal): |
---|
| 64 | self.setValue('bal2', bal) |
---|
| 65 | |
---|
| 66 | def setBalanceIn3(self, bal): |
---|
| 67 | self.setValue('bal3', bal) |
---|
| 68 | |
---|
| 69 | def setBalanceIn4(self, bal): |
---|
| 70 | self.setValue('bal4', bal) |
---|
| 71 | |
---|
| 72 | def setBalanceIn5(self, bal): |
---|
| 73 | self.setValue('bal5', bal) |
---|
| 74 | |
---|
| 75 | def setBalanceIn6(self, bal): |
---|
| 76 | self.setValue('bal6', bal) |
---|
| 77 | |
---|
| 78 | def setBalanceIn7(self, bal): |
---|
| 79 | self.setValue('bal7', bal) |
---|
| 80 | |
---|
| 81 | def setBalanceIn8(self, bal): |
---|
| 82 | self.setValue('bal8', bal) |
---|
| 83 | |
---|
| 84 | def setBalanceIn9(self, bal): |
---|
| 85 | self.setValue('bal9', bal) |
---|
| 86 | |
---|
| 87 | def setBalanceIn10(self,bal): |
---|
| 88 | self.setValue('bal10', bal) |
---|
| 89 | |
---|
| 90 | def setValue(self, name, val): |
---|
| 91 | val = -val |
---|
| 92 | ctrl = self.VolumeControls[name] |
---|
| 93 | print "setting %s to %d" % (name, val) |
---|
| 94 | self.hw.setContignuous(ctrl[0], val, idx = ctrl[1]) |
---|
69 | | self.VolumeControls = { |
---|
70 | | # feature name, channel, qt slider |
---|
71 | | 'in1' : ['/Mixer/Feature_5', 1, self.sldInput1], |
---|
72 | | 'in2' : ['/Mixer/Feature_5', 2, self.sldInput2], |
---|
73 | | 'in3' : ['/Mixer/Feature_1', 1, self.sldInput3], |
---|
74 | | 'in4' : ['/Mixer/Feature_1', 2, self.sldInput4], |
---|
75 | | 'in5' : ['/Mixer/Feature_2', 1, self.sldInput5], |
---|
76 | | 'in6' : ['/Mixer/Feature_2', 2, self.sldInput6], |
---|
77 | | 'in7' : ['/Mixer/Feature_3', 1, self.sldInput7], |
---|
78 | | 'in8' : ['/Mixer/Feature_3', 2, self.sldInput8], |
---|
79 | | 'in9' : ['/Mixer/Feature_4', 1, self.sldInput9], |
---|
80 | | 'in10' : ['/Mixer/Feature_4', 2, self.sldInput10], |
---|
81 | | } |
---|
| 99 | self.VolumeControls = { |
---|
| 100 | # feature name, channel, qt slider |
---|
| 101 | 'vol1' : ['/Mixer/Feature_Volume_5', 1, self.sldInput1], |
---|
| 102 | 'vol2' : ['/Mixer/Feature_Volume_5', 2, self.sldInput2], |
---|
| 103 | 'vol3' : ['/Mixer/Feature_Volume_1', 1, self.sldInput3], |
---|
| 104 | 'vol4' : ['/Mixer/Feature_Volume_1', 2, self.sldInput4], |
---|
| 105 | 'vol5' : ['/Mixer/Feature_Volume_2', 1, self.sldInput5], |
---|
| 106 | 'vol6' : ['/Mixer/Feature_Volume_2', 2, self.sldInput6], |
---|
| 107 | 'vol7' : ['/Mixer/Feature_Volume_3', 1, self.sldInput7], |
---|
| 108 | 'vol8' : ['/Mixer/Feature_Volume_3', 2, self.sldInput8], |
---|
| 109 | 'vol9' : ['/Mixer/Feature_Volume_4', 1, self.sldInput9], |
---|
| 110 | 'vol10' : ['/Mixer/Feature_Volume_4', 2, self.sldInput10], |
---|
| 111 | |
---|
| 112 | 'bal1' : ['/Mixer/Feature_LRBalance_5', 1, self.sldBal1], |
---|
| 113 | 'bal2' : ['/Mixer/Feature_LRBalance_5', 2, self.sldBal2], |
---|
| 114 | 'bal3' : ['/Mixer/Feature_LRBalance_1', 1, self.sldBal3], |
---|
| 115 | 'bal4' : ['/Mixer/Feature_LRBalance_1', 2, self.sldBal4], |
---|
| 116 | 'bal5' : ['/Mixer/Feature_LRBalance_2', 1, self.sldBal5], |
---|
| 117 | 'bal6' : ['/Mixer/Feature_LRBalance_2', 2, self.sldBal6], |
---|
| 118 | 'bal7' : ['/Mixer/Feature_LRBalance_3', 1, self.sldBal7], |
---|
| 119 | 'bal8' : ['/Mixer/Feature_LRBalance_3', 2, self.sldBal8], |
---|
| 120 | 'bal9' : ['/Mixer/Feature_LRBalance_4', 1, self.sldBal9], |
---|
| 121 | 'bal10' : ['/Mixer/Feature_LRBalance_4', 2, self.sldBal10], |
---|
| 122 | } |
---|