Transpiled version (2591L) is out of date.
1 | // windowSize is in seconds |
2 | static float[] decodeWAVToMonoSamples_floatVolumeProfile(File wavFile, double windowSize) { |
3 | temp CloseableItIt<short[]> it = decodeWAVToMonoSamples_iterator(wavFile, windowSize); |
4 | ret decodeWAVToMonoSamples_floatVolumeProfile(it); |
5 | } |
6 | |
7 | // windowSize is in samples |
8 | static float[] decodeWAVToMonoSamples_floatVolumeProfile(File wavFile, int windowSize) { |
9 | temp CloseableItIt<short[]> it = decodeWAVToMonoSamples_iterator(wavFile, windowSize); |
10 | ret decodeWAVToMonoSamples_floatVolumeProfile(it); |
11 | } |
12 | |
13 | // could rename this one |
14 | static float[] decodeWAVToMonoSamples_floatVolumeProfile(ItIt<short[]> it) { |
15 | new L<Float> volumes; |
16 | fOr (short[] chunk : it) |
17 | volumes.add(shortArray_maxAbsValue(chunk)/(float) Short.MAX_VALUE); |
18 | ret toFloatArray(volumes); |
19 | } |
Began life as a copy of #1024594
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1024601 |
Snippet name: | decodeWAVToMonoSamples_floatVolumeProfile |
Eternal ID of this version: | #1024601/5 |
Text MD5: | 1265cda08b4a5c0962e67a7bafa27b6b |
Author: | stefan |
Category: | javax / sound |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-03 14:22:03 |
Source code size: | 800 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 272 / 377 |
Version history: | 4 change(s) |
Referenced in: | [show references] |