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

28
LINES

< > BotCompany Repo | #1018844 // Analyze Recording v3 [entry & exit points, yes/no guess (distinguish two words)]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 12716K of libraries. Click here for Pure Java version (7933L/42K).

1  
!7
2  
3  
// reacts to new recording or file path on clipboard
4  
cmodule AnalyzeLastRecording > DynSCP {
5  
  start {
6  
    set verboseTimers;
7  
    dm_onNewRecordingOrWAVOnClipboard(voidfunc(File f) {
8  
      print("Analyzing " + f.getName());
9  
      BWImage image = audioFileToFrequencyImage(f);
10  
      
11  
      set audio_defaultClip_useExitPoints;
12  
      new Var<BWImage> processedImage;
13  
      L<Int> entryPoints = audio_entryPoints_v1(image, +processedImage);
14  
      L<Int> exitPoints = audio_exitPoints_v1(image);
15  
      
16  
      L<BWImage> images = ll(markIntRangesOnTopOfBWImage(squishBWImage(processedImage!, 20),
17  
          intsToSize2Ranges(entryPoints),
18  
          intsToSize2Ranges(exitPoints)));
19  
      
20  
      images.add(audio_autoClipAndVisualizeTwoWordAnalyzer1(f, audio_yesNoAnalyzer2()));
21  
      
22  
      setComponent(jscroll_center(jImageSurface(
23  
        mergeBWImagesVertically(images)).setZoom(2)));
24  
          
25  
      setFileInfoFieldIfNotNull(f, 'Guess, print("Guess", audio_yesNoGuess2(f)));
26  
    });
27  
  }
28  
}

Author comment

Began life as a copy of #1018804

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1018844
Snippet name: Analyze Recording v3 [entry & exit points, yes/no guess (distinguish two words)]
Eternal ID of this version: #1018844/10
Text MD5: 9ff01596209b55323c3fc60f7c14c957
Transpilation MD5: 1550c9737eeba8391c36647c816e6a1b
Author: stefan
Category: javax / audio recognition
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-03 00:42:40
Source code size: 1021 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 395 / 800
Version history: 9 change(s)
Referenced in: [show references]