(samples, taps, pythonSnippet, pyodide)
| 55 | } |
| 56 | |
| 57 | export 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 | |
| 67 | export function convertToFloat32(buffer, dataType) { |
| 68 | if (dataType === 'ci8_le' || dataType === 'ci8' || dataType === 'i8') { |
no test coverage detected