Playback and Record object Properties: ------------ * excitation (SignalObj), (SignalObj): signal information used to reproduce (playback); * outputAmplification (0), (float): Gain in dB applied to the output channels. * device (system
| 458 | |
| 459 | # PlayRecMeasure class |
| 460 | class PlayRecMeasure(_MeasurementBase): |
| 461 | """ |
| 462 | Playback and Record object |
| 463 | |
| 464 | Properties: |
| 465 | ------------ |
| 466 | |
| 467 | * excitation (SignalObj), (SignalObj): |
| 468 | signal information used to reproduce (playback); |
| 469 | |
| 470 | * outputAmplification (0), (float): |
| 471 | Gain in dB applied to the output channels. |
| 472 | |
| 473 | * device (system default), (list/int): |
| 474 | list of input and output devices; |
| 475 | |
| 476 | * inChannels ([1]), (list/int): |
| 477 | list of device's input channel used for recording; |
| 478 | |
| 479 | * outChannels ([1]), (list/int): |
| 480 | list of device's output channel used for playing or reproducing |
| 481 | a signalObj; |
| 482 | |
| 483 | * samplingRate (44100), (int): |
| 484 | signal's sampling rate; |
| 485 | |
| 486 | * lengthDomain ('time'), (str): |
| 487 | signal's length domain. May be 'time' or 'samples'; |
| 488 | |
| 489 | * timeLength (seconds), (float): |
| 490 | signal's time length in seconds for lengthDomain = 'time'; |
| 491 | |
| 492 | * fftDegree (fftDegree), (float): |
| 493 | 2**fftDegree signal's number of samples for\ |
| 494 | lengthDomain = 'samples'; |
| 495 | |
| 496 | * numSamples (samples), (int): |
| 497 | signal's number of samples |
| 498 | |
| 499 | * freqMin (20), (int): |
| 500 | minimum frequency bandwidth limit; |
| 501 | |
| 502 | * freqMax (20000), (int): |
| 503 | maximum frequency bandwidth limit; |
| 504 | |
| 505 | * comment ('No comments.'), (str): |
| 506 | some commentary about the signal or measurement object; |
| 507 | |
| 508 | Methods: meaning; |
| 509 | * run(): |
| 510 | starts playing the excitation signal and recording during the |
| 511 | excitation timeLen duration; |
| 512 | """ |
| 513 | |
| 514 | def __init__(self, excitation=None, outputAmplification=0, *args, **kwargs): |
| 515 | if excitation is None: |
| 516 | self._excitation = None |
| 517 | super().__init__(*args, **kwargs) |
no outgoing calls
no test coverage detected