def get_phys_out_nominal(self, ch): if ch >= len(self.info['phys-outputs']): raise ValueError('Invalid argument for physical output channel') return EftPhysOutput.get_param(self, 'nominal', ch)
def get_phys_out_gain(self, ch): if ch >= len(self.info['phys-outputs']): raise ValueError('Invalid argument for physical output channel') vol = EftPhysOutput.get_param(self, 'gain', ch) return self._calculate_vol_to_db(vol)
def set_phys_out_mute(self, ch, val): if ch >= len(self.info['phys-outputs']): raise ValueError('Invalid argument for physical output channel') EftPhysOutput.set_param(self, 'mute', ch, val)
def set_phys_out_gain(self, ch, db): if ch >= len(self.info['phys-outputs']): raise ValueError('Invalid argument for physical output channel') vol = self._calculate_vol_from_db(db) EftPhysOutput.set_param(self, 'gain', ch, vol)