static double rms_shortArray(short[] wav) { double d = 0; if (wav != null) for (short s : wav) d += ((double) s)*s; ret sqrt(d); }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020876 |
Snippet name: | rms_shortArray |
Eternal ID of this version: | #1020876/1 |
Text MD5: | b8ca7a1898a6080e6f85e60cf5fdb528 |
Author: | stefan |
Category: | javax / audio analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-06 23:41:06 |
Source code size: | 145 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 307 / 356 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |