Download Jar. Uses 70K of libraries. Click here for Pure Java version (2430L/17K).
!7 lib 1009752 // musicg import com.musicg.wave.Wave; import com.musicg.fingerprint.FingerprintSimilarity; static new L<S> names; static new L<Wave> waves; p { ZipFile zip = new ZipFile(loadLibrary(#1009759)); for (S name : names = fileNamesInZip(zip)) waves.add(new Wave(zipInputStream(zip, name))); names.add("computer-2.wav"); waves.add(new Wave(f2s(loadLibrary(#1009763)))); printStruct("Comparing: ", names); for (int i = 0; i < l(waves); i++) for (int j = 0; j < l(waves); j++) { if (i == j) continue; Wave w1 = waves.get(i), w2 = waves.get(j); FingerprintSimilarity fps = w1.getFingerprintSimilarity(w2); float score = fps.getScore(); float sim = fps.getSimilarity(); if (sim == 0) continue; print(names.get(i) + "/" + names.get(j) + " score: " + score + (score == sim ? "" : " / " + sim)); } }
Began life as a copy of #1009756
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, hszllmzzlmie, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009760 |
Snippet name: | Test musicg on some sounds |
Eternal ID of this version: | #1009760/5 |
Text MD5: | 6dbc4b06877f0200b93084ae986eabe3 |
Transpilation MD5: | 46ce2ace397e1fb6e234d5257bcd1915 |
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 03:22:06 |
Source code size: | 928 bytes / 33 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 524 / 1183 |
Version history: | 4 change(s) |
Referenced in: | [show references] |