Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1009756 // Test musicg [WORKS]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 70K of libraries. Click here for Pure Java version (1924L/13K).

1  
!7
2  
3  
lib 1009752 // musicg
4  
5  
import com.musicg.wave.Wave;
6  
import com.musicg.fingerprint.FingerprintSimilarity;
7  
8  
static L<S> ids = ll(#1009753, #1009754, #1009755);
9  
static new L<Wave> waves;
10  
11  
p {
12  
  for (S id : ids)
13  
    waves.add(new Wave(f2s(loadLibrary(id))));
14  
15  
  for (int i = 0; i < l(waves); i++)
16  
    for (int j = 0; j < l(waves); j++) {
17  
      Wave w1 = waves.get(i), w2 = waves.get(j);
18  
      FingerprintSimilarity fps = w1.getFingerprintSimilarity(w2);
19  
      float score = fps.getScore();
20  
      float sim = fps.getSimilarity();
21  
      print(getSnippetTitle_cached(ids.get(i)) + "/" 
22  
        + getSnippetTitle_cached(ids.get(j)) + " score: " + score + (score == sim ? "" : " / " + sim));
23  
    }
24  
    
25  
}

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: 685 / 1235
Version history: 7 change(s)
Referenced in: [show references]