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).

!7

// reacts to new recording or file path on clipboard
cmodule AnalyzeLastRecording > DynSCP {
  start {
    set verboseTimers;
    dm_onNewRecordingOrWAVOnClipboard(voidfunc(File f) {
      print("Analyzing " + f.getName());
      BWImage image = audioFileToFrequencyImage(f);
      
      set audio_defaultClip_useExitPoints;
      new Var<BWImage> processedImage;
      L<Int> entryPoints = audio_entryPoints_v1(image, +processedImage);
      L<Int> exitPoints = audio_exitPoints_v1(image);
      
      L<BWImage> images = ll(markIntRangesOnTopOfBWImage(squishBWImage(processedImage!, 20),
          intsToSize2Ranges(entryPoints),
          intsToSize2Ranges(exitPoints)));
      
      images.add(audio_autoClipAndVisualizeTwoWordAnalyzer1(f, audio_yesNoAnalyzer2()));
      
      setComponent(jscroll_center(jImageSurface(
        mergeBWImagesVertically(images)).setZoom(2)));
          
      setFileInfoFieldIfNotNull(f, 'Guess, print("Guess", audio_yesNoGuess2(f)));
    });
  }
}

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