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

21
LINES

< > BotCompany Repo | #1026914 // Downsample FFT Image [OK]

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

Uses 911K of libraries. Click here for Pure Java version (5389L/29K).

!7

cmodule DownsampleFFTImage > DynImageSurface {
  switchable int w = 10;
  switchable int h = 10;
  
  afterVisualize {
    imageSurface_pixelated(imageSurface);
    setZoom(20);
  }
    
  start {
    dm_requireLiveAudioFFT();

    dm_vmBus_onMessage_q newAudioFrequencyImage(voidfunc(virtual BWImage _img) {
      BWImage img = cast quickImport(_img);
      BWIntegralImage ii = new(img);
      setImage(scaleDownUsingIntegralImageBW(ii, w, h));
   });
  }
}

Author comment

Began life as a copy of #1026913

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026914
Snippet name: Downsample FFT Image [OK]
Eternal ID of this version: #1026914/7
Text MD5: d63f45ffa75ff294393ca62fc18e3a65
Transpilation MD5: 82d3988e7fd65c38d31e40b388672191
Author: stefan
Category: javax / audio analysis
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-02 17:46:10
Source code size: 483 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 155 / 1053
Version history: 6 change(s)
Referenced in: [show references]