def record(self, monitor = Monitor(5512)): with Streaming('I', self.samplingRate, self.device, 'float32', 0, self.inChannels, None, None, None, self.numSamples, monitor) as strm: rec = strm.record() return SignalObj(rec, 'time', self.samplingRate)
def playrec(self, monitor = Monitor(5512)): with Streaming('IO', self.samplingRate, self.device, 'float32', 0, self.inChannels, self.outChannels, self.excitation, None, self.numSamples, monitor) as strm: rec = strm.playrec() return SignalObj(rec, 'time', self.samplingRate)
def play(self, monitor=Monitor(5512)): """ Play SignalObj. Returns ------- None. """ with Streaming('O', self.samplingRate, self.device, 'float32', 0, None, self.outChannels, self.excitation, None, self.numSamples, monitor) as strm: strm.play() return