Transpiled version (2591L) is out of date.
// windowSize is in seconds static float[] decodeWAVToMonoSamples_floatVolumeProfile(File wavFile, double windowSize) { temp CloseableItIt<short[]> it = decodeWAVToMonoSamples_iterator(wavFile, windowSize); ret decodeWAVToMonoSamples_floatVolumeProfile(it); } // windowSize is in samples static float[] decodeWAVToMonoSamples_floatVolumeProfile(File wavFile, int windowSize) { temp CloseableItIt<short[]> it = decodeWAVToMonoSamples_iterator(wavFile, windowSize); ret decodeWAVToMonoSamples_floatVolumeProfile(it); } // could rename this one static float[] decodeWAVToMonoSamples_floatVolumeProfile(ItIt<short[]> it) { new L<Float> volumes; fOr (short[] chunk : it) volumes.add(shortArray_maxAbsValue(chunk)/(float) Short.MAX_VALUE); ret toFloatArray(volumes); }
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: | 517 / 655 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |