Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Notabela/Lie_to_me
/ functions
Functions
216 in github.com/Notabela/Lie_to_me
⨍
Functions
216
◇
Types & classes
28
↳
Endpoints
3
Method
__add__
Adds two waves elementwise. other: Wave returns: new Wave
lie_to_me/modules/thinkdsp.py:659
Method
__add__
Adds two signals. other: Signal returns: Signal
lie_to_me/modules/thinkdsp.py:1160
Method
__init__
Opens the file and sets parameters. filename: string framerate: samples per second
lie_to_me/modules/thinkdsp.py:49
Method
__init__
Initializes a spectrum. hs: array of amplitudes (real or complex) fs: array of frequencies framerate: frames per second
lie_to_me/modules/thinkdsp.py:151
Method
__init__
Initializes an integrated spectrum: cs: sequence of cumulative amplitudes fs: sequence of frequencies
lie_to_me/modules/thinkdsp.py:443
Method
__init__
Initialize the spectrogram. spec_map: map from float time to Spectrum seg_length: number of samples in each segment
lie_to_me/modules/thinkdsp.py:522
Method
__init__
Initializes the wave. ys: wave array ts: array of times framerate: samples per second
lie_to_me/modules/thinkdsp.py:618
Method
__init__
Initializes the sum. args: tuple of signals
lie_to_me/modules/thinkdsp.py:1229
Method
__init__
Initializes a sinusoidal signal. freq: float frequency in Hz amp: float amplitude, 1.0 is nominal max offset: float phase off
lie_to_me/modules/thinkdsp.py:1263
Method
__init__
Initializes a linear chirp. start: float frequency in Hz end: float frequency in Hz amp: float amplitude, 1.0 is nominal max
lie_to_me/modules/thinkdsp.py:1456
Method
__init__
(self, locations, amps=1)
lie_to_me/modules/thinkdsp.py:1530
Method
__init__
Initializes a white noise signal. amp: float amplitude, 1.0 is nominal max
lie_to_me/modules/thinkdsp.py:1550
Method
__init__
Initializes a pink noise signal. amp: float amplitude, 1.0 is nominal max
lie_to_me/modules/thinkdsp.py:1617
Method
__len__
Length of the spectrum.
lie_to_me/modules/thinkdsp.py:289
Method
__len__
(self)
lie_to_me/modules/thinkdsp.py:640
Method
__mul__
Multiplies two spectrums elementwise. other: Spectrum returns: new Spectrum
lie_to_me/modules/thinkdsp.py:309
Method
__mul__
Multiplies two waves elementwise. Note: this operation ignores the timestamps; the result has the timestamps of self. other:
lie_to_me/modules/thinkdsp.py:712
Method
__or__
Concatenates two waves. other: Wave returns: new Wave
lie_to_me/modules/thinkdsp.py:698
Method
add_ys
(wave)
lie_to_me/modules/thinkdsp.py:678
Method
amps
Returns a sequence of amplitudes (read-only property).
lie_to_me/modules/thinkdsp.py:170
Method
amps
Returns a sequence of amplitudes (read-only property). Note: for DCTs, amps are positive or negative real.
lie_to_me/modules/thinkdsp.py:483
Function
analysis
Analysis Route View Final Analysis of Uploaded Video :return:
lie_to_me/routes.py:45
Method
angles
Returns a sequence of angles (read-only property).
lie_to_me/modules/thinkdsp.py:350
Function
applyhamming
Multiplying each frame with a hamming window :param framearray: array of waves (frames) :return: array of hamming window filtered frames
lie_to_me/modules/audio.py:43
Method
band_stop
Attenuate frequencies between the cutoffs. low_cutoff: frequency in Hz high_cutoff: frequency in Hz factor: what to multiply
lie_to_me/modules/thinkdsp.py:377
Function
beginAnalysis
()
lie_to_me/static/js/analyze.js:27
Function
cleanup_data
Clean up temporary stored data
lie_to_me/process.py:351
Method
convolve
Convolves two Spectrums. other: Spectrum returns: Spectrum
lie_to_me/modules/thinkdsp.py:320
Method
corr
Correlation coefficient two waves. other: Wave returns: float coefficient of correlation
lie_to_me/modules/thinkdsp.py:973
Method
cos_transform
Discrete cosine transform. returns: list of frequency, cov pairs
lie_to_me/modules/thinkdsp.py:1015
Method
cov_mat
Covariance matrix of two waves. other: Wave returns: 2x2 covariance matrix
lie_to_me/modules/thinkdsp.py:983
Method
differentiate
Apply the differentiation filter. returns: new Spectrum
lie_to_me/modules/thinkdsp.py:398
Method
duration
Duration (property). returns: float duration in seconds
lie_to_me/modules/thinkdsp.py:652
Method
end
(self)
lie_to_me/modules/thinkdsp.py:648
Function
energy
Calculates the energy of each frame :param framearray: array of waves (frames) :return: array of energy per frame
lie_to_me/modules/audio.py:65
Method
estimate_slope
Runs linear regression on log power vs log frequency. returns: slope, inter, r2, p, stderr
lie_to_me/modules/thinkdsp.py:266
Method
estimate_slope
Runs linear regression on log cumulative power vs log frequency. returns: slope, inter, r2, p, stderr
lie_to_me/modules/thinkdsp.py:466
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1249
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1284
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1336
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1352
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1369
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1386
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1404
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1420
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1438
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1502
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1517
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1534
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1569
Method
evaluate
Evaluates the signal at the given times. ts: float array of times returns: float wave array
lie_to_me/modules/thinkdsp.py:1583
Method
evaluate
Evaluates the signal at the given times. Computes Brownian noise by taking the cumulative sum of a uniform random series. ts
lie_to_me/modules/thinkdsp.py:1597
Function
fourier
Fourier transforms all waves from array. (Real values only) :param framearray: array of waves (frames) :return: array of FFT waves (spec
lie_to_me/modules/audio.py:82
Method
freq_res
(self)
lie_to_me/modules/thinkdsp.py:223
Method
freq_res
Frequency resolution in Hz.
lie_to_me/modules/thinkdsp.py:543
Function
fundamentalf
Calculates pitch deviation to detect stress if pitch deviation >= 5, classified as stressed :param periodarray: array of pitch periods
lie_to_me/modules/audio.py:213
Function
handle_client_disconnect
(msg)
lie_to_me/websockets.py:38
Function
handle_connect
()
lie_to_me/websockets.py:20
Function
handle_disconnect
()
lie_to_me/websockets.py:26
Function
handle_message_receival
(json)
lie_to_me/websockets.py:32
Function
handle_next_frame_request
(json)
lie_to_me/websockets.py:56
Function
handle_ready_receive
(json)
lie_to_me/websockets.py:44
Method
high_pass
Attenuate frequencies below the cutoff. cutoff: frequency in Hz factor: what to multiply the magnitude by
lie_to_me/modules/thinkdsp.py:369
Method
imag
Returns the imaginary part of the hs (read-only property).
lie_to_me/modules/thinkdsp.py:345
Function
infer_framerate
Given ts, find the framerate. Assumes that the ts are equally spaced. ts: sequence of times in seconds returns: frames per second
lie_to_me/modules/thinkdsp.py:1211
Method
integrate
Apply the integration filter. returns: new Spectrum
lie_to_me/modules/thinkdsp.py:407
Function
inverse_fourier
Apply logarithm to magnitude spectrum and IFFT to get output of homomorphic operation :param fourierarray: array of spectrums (frames) :
lie_to_me/modules/audio.py:100
Method
invert
Inverts this spectrum/filter. returns: new Wave
lie_to_me/modules/thinkdsp.py:213
Method
low_pass
Attenuate frequencies above the cutoff. cutoff: frequency in Hz factor: what to multiply the magnitude by
lie_to_me/modules/thinkdsp.py:361
Method
make_audio
Makes an IPython Audio object.
lie_to_me/modules/thinkdsp.py:1046
Method
make_dct
Computes the DCT of this wave.
lie_to_me/modules/thinkdsp.py:913
Method
make_integrated_spectrum
Makes an integrated spectrum.
lie_to_me/modules/thinkdsp.py:416
Method
make_spectrogram
Computes the spectrogram of the wave. seg_length: number of samples in each segment win_flag: boolean, whether to apply hamming windo
lie_to_me/modules/thinkdsp.py:921
Method
make_wave
Transforms to the time domain. returns: Wave
lie_to_me/modules/thinkdsp.py:423
Method
make_wave
Inverts the spectrogram and returns a Wave. returns: Wave
lie_to_me/modules/thinkdsp.py:584
Method
make_wave
Makes a Wave object. duration: float seconds start: float seconds framerate: int frames per second returns: Wave
lie_to_me/modules/thinkdsp.py:1625
Method
max_diff
Computes the maximum absolute difference between spectra. other: Spectrum returns: float
lie_to_me/modules/thinkdsp.py:186
Method
max_diff
Computes the maximum absolute difference between waves. other: Wave returns: float
lie_to_me/modules/thinkdsp.py:729
Method
max_freq
Returns the Nyquist frequency for this spectrum.
lie_to_me/modules/thinkdsp.py:165
Function
maxpitchamp
Max Pitch Amplitude audio feature: High Predictability rate (86%) :param amparray: array of pitch period amplitudes (floats) :return max
lie_to_me/modules/audio.py:175
Function
meanenergy
Mean Energy audio feature: Low predictability rate (61%) :param energyarray: array of energies per frame (waves) :return meanaudio: aver
lie_to_me/modules/audio.py:155
Method
peaks
Finds the highest peaks and their frequencies. returns: sorted list of (amplitude, frequency) pairs
lie_to_me/modules/thinkdsp.py:276
Method
period
Period of the signal in seconds (property). Since this is used primarily for purposes of plotting, the default behavior is to return
lie_to_me/modules/thinkdsp.py:1174
Method
period
Period of the signal in seconds. Note: this is not correct; it's mostly a placekeeper. But it is correct for a harmonic sequence whe
lie_to_me/modules/thinkdsp.py:1237
Method
period
Period of the signal in seconds. returns: float seconds
lie_to_me/modules/thinkdsp.py:1277
Method
period
Period of the signal in seconds. returns: float seconds
lie_to_me/modules/thinkdsp.py:1468
Method
period
Period of the signal in seconds. returns: float seconds
lie_to_me/modules/thinkdsp.py:1558
Method
play
Plays a wave file. filename: string
lie_to_me/modules/thinkdsp.py:1038
Method
plot
Plots amplitude vs frequency. Note: if this is a full spectrum, it ignores low and high high: frequency to cut off at
lie_to_me/modules/thinkdsp.py:240
Method
plot
Make a pseudocolor plot. high: highest frequency component to plot
lie_to_me/modules/thinkdsp.py:563
Method
plot
Plots the signal. The default behavior is to plot three periods. framerate: samples per second
lie_to_me/modules/thinkdsp.py:1185
Method
plot_power
Plots power vs frequency. high: frequency to cut off at
lie_to_me/modules/thinkdsp.py:254
Method
plot_power
Plots the integrated spectrum. low: int index to start at high: int index to end at
lie_to_me/modules/thinkdsp.py:452
Method
plot_vlines
Plots the wave with vertical lines for samples.
lie_to_me/modules/thinkdsp.py:966
Method
power
Returns a sequence of powers (read-only property).
lie_to_me/modules/thinkdsp.py:175
Function
process_audio
Process Audio component of Video
lie_to_me/process.py:106
Function
process_video
Processes Video Submitted by User
lie_to_me/process.py:82
Function
random_seed
Initialize the random and np.random generators. x: int seed
lie_to_me/modules/thinkdsp.py:33
Method
ratio
The ratio of two spectrums. denom: Spectrum thresh: values smaller than this are replaced val: with this value retu
lie_to_me/modules/thinkdsp.py:199
Function
read_wave
Reads a wave file. filename: string returns: Wave
lie_to_me/modules/thinkdsp.py:89
← previous
next →
101–200 of 216, ranked by callers