3 ms·
Is "decay" subtracting the waveform's original shape (right-shifted to drop its lowest 2-ish bits) from itself, plus arithmetic overflow?
by nyanpasu64 2y ago
Is "decay" subtracting the waveform's original shape (right-shifted to drop its lowest 2-ish bits) from itself, plus arithmetic overflow?
- CmdrKrool 2y agoYes, exactly that. Search for "function applyDecay" here: https://www.zapspace.net/defender_sound/defender.js https://www.zapspace.net/defender_sound/defender.js (It right-shifts by 4 instead of 2.)