Libraryless. Click here for Pure Java version (2326L/15K).
1 | static double[] normalizedAutocorrelationTableForAudioSamples(short[] samples) { |
2 | ret normalizedAutocorrelationTableForAudioSamples(samples, 0, l(samples)); |
3 | } |
4 | |
5 | static double[] normalizedAutocorrelationTableForAudioSamples(short[] samples, int start, int end) { |
6 | double[] table = autocorrelationTableForAudioSamples(samples, start, end); |
7 | double factor = autocorrelationNormalizationFactorForAudioSamples(samples, start, end); |
8 | for i over table: |
9 | table[i] = doubleRatio(table[i], factor); |
10 | ret table; |
11 | } |
12 | |
13 | static double[] normalizedAutocorrelationTableForAudioSamples(short[] samples, IntRange r) { |
14 | ret normalizedAutocorrelationTableForAudioSamples(samples, r.start, r.end); |
15 | } |
Began life as a copy of #1026907
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: | #1026909 |
Snippet name: | normalizedAutocorrelationTableForAudioSamples |
Eternal ID of this version: | #1026909/1 |
Text MD5: | 082bc7c502dcb3b76ecff2a65cc858c3 |
Transpilation MD5: | d3459c14282e5df50742d6682fc55f70 |
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:49:19 |
Source code size: | 697 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 222 / 299 |
Referenced in: | [show references] |