def set_monitor_gain(self, in_ch, out_ch, db): if in_ch >= self.info['capture-channels']: raise ValueError('Invalid argument for capture channel') if out_ch >= self.info['playback-channels']: raise ValueError('Invalid argument for playback channel') vol = self._calculate_vol_from_db(db) EftMonitor.set_param(self, 'gain', in_ch, out_ch, vol)
def get_monitor_gain(self, in_ch, out_ch): if in_ch >= self.info['capture-channels']: raise ValueError('Invalid argument for capture channel') if out_ch >= self.info['playback-channels']: raise ValueError('Invalid argument for playback channel') vol = EftMonitor.get_param(self, 'gain', in_ch, out_ch) return self._calculate_vol_to_db(vol)
def get_monitor_pan(self, in_ch, out_ch): if in_ch >= self.info['capture-channels']: raise ValueError('Invalid argument for capture channel') if out_ch >= self.info['playback-channels']: raise ValueError('Invalid argument for playback channel') return EftMonitor.get_param(self, 'pan', in_ch, out_ch)
def set_monitor_solo(self, in_ch, out_ch, val): if in_ch >= self.info['capture-channels']: raise ValueError('Invalid argument for capture channel') if out_ch >= self.info['playback-channels']: raise ValueError('Invalid argument for playback channel') EftMonitor.set_param(self, 'solo', in_ch, out_ch, val)