MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / applyProcessing

Function applyProcessing

client/src/utils/fetch-more-data-source.ts:57–65  ·  view source on GitHub ↗
(samples, taps, pythonSnippet, pyodide)

Source from the content-addressed store, hash-verified

55}
56
57export function applyProcessing(samples, taps, pythonSnippet, pyodide) {
58 if (taps && taps.length !== 1) {
59 samples = convolve(samples, taps); // we apply the taps here and not in the FFT calcs so transients dont hurt us as much
60 }
61 if (pyodide && pythonSnippet && pythonSnippet.length > 0 && pythonSnippet != INITIAL_PYTHON_SNIPPET) {
62 samples = callPyodide(pyodide, pythonSnippet, samples);
63 }
64 return samples;
65}
66
67export function convertToFloat32(buffer, dataType) {
68 if (dataType === 'ci8_le' || dataType === 'ci8' || dataType === 'i8') {

Callers 1

useGetIQDataFunction · 0.90

Calls 2

convolveFunction · 0.85
callPyodideFunction · 0.85

Tested by

no test coverage detected