MCPcopy Create free account
hub / github.com/PyTTaMaster/PyTTa / PlayRecMeasure

Class PlayRecMeasure

pytta/classes/measurement.py:460–654  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

458
459# PlayRecMeasure class
460class 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)

Callers 2

measurementFunction · 0.90
__parse_loadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected