Measurement Objects

class pytta.RecMeasure(lengthDomain=None, fftDegree=None, timeLength=None, *args, **kwargs)[source]

Recording object

  • lengthDomain (‘time’), (str):

    signal’s length domain. May be ‘time’ or ‘samples’;

  • timeLength (seconds), (float):

    signal’s time length in seconds for lengthDomain = ‘time’;

  • fftDegree (fftDegree), (float):

    2**fftDegree signal’s number of samples for lengthDomain = ‘samples’;

  • device (system default), (list/int):

    list of input and output devices;

  • inChannels ([1]), (list/int):

    list of device’s input channel used for recording;

  • samplingRate (44100), (int):

    signal’s sampling rate;

  • numSamples (samples), (int):

    signal’s number of samples

  • freqMin (20), (float):

    minimum frequency bandwidth limit;

  • freqMax (20000), (float):

    maximum frequency bandwidth limit;

  • comment (‘No comments.’), (str):

    some commentary about the signal or measurement object;

  • run():

    starts recording using the inch and device information, during timeLen seconds;

run()[source]

Run method: starts recording during Tmax seconds Outputs a signalObj with the recording content

class pytta.PlayRecMeasure(excitation=None, outputAmplification=0, *args, **kwargs)[source]

Playback and Record object

  • excitation (SignalObj), (SignalObj):

    signal information used to reproduce (playback);

  • outputAmplification (0), (float):

    Gain in dB applied to the output channels.

  • device (system default), (list/int):

    list of input and output devices;

  • inChannels ([1]), (list/int):

    list of device’s input channel used for recording;

  • outChannels ([1]), (list/int):

    list of device’s output channel used for playing or reproducing a signalObj;

  • samplingRate (44100), (int):

    signal’s sampling rate;

  • lengthDomain (‘time’), (str):

    signal’s length domain. May be ‘time’ or ‘samples’;

  • timeLength (seconds), (float):

    signal’s time length in seconds for lengthDomain = ‘time’;

  • fftDegree (fftDegree), (float):

    2**fftDegree signal’s number of samples for lengthDomain = ‘samples’;

  • numSamples (samples), (int):

    signal’s number of samples

  • freqMin (20), (int):

    minimum frequency bandwidth limit;

  • freqMax (20000), (int):

    maximum frequency bandwidth limit;

  • comment (‘No comments.’), (str):

    some commentary about the signal or measurement object;

Methods: meaning;
  • run():

    starts playing the excitation signal and recording during the excitation timeLen duration;

run()[source]

Starts reproducing the excitation signal and recording at the same time Outputs a signalObj with the recording content

class pytta.FRFMeasure(method='linear', winType=None, winSize=None, overlap=None, regularization=True, *args, **kwargs)[source]

Transferfunction object

  • excitation (SignalObj), (SignalObj):

    signal information used to reproduce (playback);

  • device (system default), (list | int):

    list of input and output devices;

  • inChannels ([1]), (list | int):

    list of device’s input channel used for recording;

  • outChannels ([1]), (list | int):

    list of device’s output channel used for playing or reproducing a signalObj;

  • samplingRate (44100), (int):

    signal’s sampling rate;

  • lengthDomain (‘time’), (str):

    signal’s length domain. May be ‘time’ or ‘samples’;

  • timeLength (seconds), (float):

    signal’s time length in seconds for lengthDomain = ‘time’;

  • fftDegree (fftDegree), (float):

    2**fftDegree signal’s number of samples for lengthDomain = ‘samples’;

  • numSamples (samples), (int):

    signal’s number of samples

  • freqMin (20), (int):

    minimum frequency bandwidth limit;

  • freqMax (20000), (int):

    maximum frequency bandwidth limit;

  • comment (‘No comments.’), (str):

    some commentary about the signal or measurement object;

  • run():

    starts playing the excitation signal and recording during the excitation timeLen duration;

run()[source]

Starts reproducing the excitation signal and recording at the same time Outputs the transferfunction ImpulsiveResponse