Libraryless. Click here for Pure Java version (2264L/14K).
static double autocorrelationNormalizationFactorForAudioSamples(short[] samples) { ret autocorrelationNormalizationFactorForAudioSamples(samples, 0, l(samples)); } static double autocorrelationNormalizationFactorForAudioSamples(short[] samples, int start, int end) { double max = sixteenBitAudioSampleToDouble(absShortMax(samples, start, end)); ret sqr(max); } static double autocorrelationNormalizationFactorForAudioSamples(short[] samples, IntRange r) { ret autocorrelationNormalizationFactorForAudioSamples(samples, r.start, r.end); }
Began life as a copy of #1026896
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: | #1026908 | 
| Snippet name: | autocorrelationNormalizationFactorForAudioSamples | 
| Eternal ID of this version: | #1026908/1 | 
| Text MD5: | 1bd4cc98fe7eb919fa731d29286c17dc | 
| Transpilation MD5: | 57b45f5b60537010a647e5eac9333278 | 
| Author: | stefan | 
| Category: | javax / audio | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2020-02-02 16:46:06 | 
| Source code size: | 558 bytes / 12 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 435 / 546 | 
| Referenced in: | [show references] |