Libraryless. Click here for Pure Java version (2264L/14K).
1 | static double autocorrelationNormalizationFactorForAudioSamples(short[] samples) {
|
2 | ret autocorrelationNormalizationFactorForAudioSamples(samples, 0, l(samples)); |
3 | } |
4 | |
5 | static double autocorrelationNormalizationFactorForAudioSamples(short[] samples, int start, int end) {
|
6 | double max = sixteenBitAudioSampleToDouble(absShortMax(samples, start, end)); |
7 | ret sqr(max); |
8 | } |
9 | |
10 | static double autocorrelationNormalizationFactorForAudioSamples(short[] samples, IntRange r) {
|
11 | ret autocorrelationNormalizationFactorForAudioSamples(samples, r.start, r.end); |
12 | } |
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: | 498 / 604 |
| Referenced in: | [show references] |