MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / freqToFloat

Function freqToFloat

libraries/p5.sound.js:2986–2990  ·  view source on GitHub ↗
(fft)

Source from the content-addressed store, hash-verified

2984 };
2985 // helper methods to convert type from float (dB) to int (0-255)
2986 var freqToFloat = function (fft) {
2987 if (fft.freqDomain instanceof Float32Array === false) {
2988 fft.freqDomain = new Float32Array(fft.analyser.frequencyBinCount);
2989 }
2990 };
2991 var freqToInt = function (fft) {
2992 if (fft.freqDomain instanceof Uint8Array === false) {
2993 fft.freqDomain = new Uint8Array(fft.analyser.frequencyBinCount);

Callers 1

p5.sound.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected