1 | static double audio_absoluteVolume(float[] raw) { |
2 | if (empty(raw)) ret 0; |
3 | ret (max(raw)-min(raw))/2.0; |
4 | } |
Began life as a copy of #1009778
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009779 |
Snippet name: | audio_absoluteVolume (0 to 1) |
Eternal ID of this version: | #1009779/1 |
Text MD5: | 72c8d7b008ccf3a209deac7ae4e79c12 |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-16 18:08:08 |
Source code size: | 110 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 473 / 519 |
Referenced in: | [show references] |