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

21
LINES

< > BotCompany Repo | #1018804 // Analyze Recording v2 [show entry points, Dyn Module]

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

Uses 11913K of libraries. Click here for Pure Java version (16602L/117K).

!7

// reacts to new recording or file path on clipboard
sclass AnalyzeLastRecording > DynSCP {
  start {
    set verboseTimers;
    dm_onNewRecordingOrWAVOnClipboard(voidfunc(File f) {
      print("Analyzing " + f.getName());
      BWImage image = audioFileToFrequencyImage(f);
      
      new Var<BWImage> processedImage;
      L<Int> entryPoints = audio_entryPointsUsingBand_v1(image, audio_bestBandForEntryPoints(), +processedImage);
      
      setComponent(jscroll_center(jImageSurface(
        markIntRangesOnTopOfBWImage(squishBWImage(processedImage!, 20),
          intsToSize2Ranges(entryPoints), 5)).setZoom(2)));
          
      setFileInfoFieldIfNotNull(f, 'Guess, audio_yesNoGuess1(f));
    });
  }
}

Author comment

Began life as a copy of #1018652

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018804
Snippet name: Analyze Recording v2 [show entry points, Dyn Module]
Eternal ID of this version: #1018804/10
Text MD5: 6562c142ba6e064c484ee4b94811d9c8
Transpilation MD5: 2f682461af7a8dc685de6236b281b561
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: 2018-10-14 12:07:35
Source code size: 737 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 279 / 454
Version history: 9 change(s)
Referenced in: [show references]