Download Jar. Uses 70K of libraries. Click here for Pure Java version (1924L/13K).
!7 lib 1009752 // musicg import com.musicg.wave.Wave; import com.musicg.fingerprint.FingerprintSimilarity; static L<S> ids = ll(#1009753, #1009754, #1009755); static new L<Wave> waves; p { for (S id : ids) waves.add(new Wave(f2s(loadLibrary(id)))); for (int i = 0; i < l(waves); i++) for (int j = 0; j < l(waves); j++) { Wave w1 = waves.get(i), w2 = waves.get(j); FingerprintSimilarity fps = w1.getFingerprintSimilarity(w2); float score = fps.getScore(); float sim = fps.getSimilarity(); print(getSnippetTitle_cached(ids.get(i)) + "/" + getSnippetTitle_cached(ids.get(j)) + " score: " + score + (score == sim ? "" : " / " + sim)); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009756 |
Snippet name: | Test musicg [WORKS] |
Eternal ID of this version: | #1009756/8 |
Text MD5: | b9ef1c6a3a538bb9421e452db05bb1a0 |
Transpilation MD5: | 0902ea38373cae0a4d6aec021461eaf6 |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-16 02:59:07 |
Source code size: | 723 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 852 / 1638 |
Version history: | 7 change(s) |
Referenced in: | #1009760 - Test musicg on some sounds |