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

1  
!7
2  
3  
cmodule DownsampleFFTImage > DynImageSurface {
4  
  switchable int w = 10;
5  
  switchable int h = 10;
6  
  
7  
  afterVisualize {
8  
    imageSurface_pixelated(imageSurface);
9  
    setZoom(20);
10  
  }
11  
    
12  
  start {
13  
    dm_requireLiveAudioFFT();
14  
15  
    dm_vmBus_onMessage_q newAudioFrequencyImage(voidfunc(virtual BWImage _img) {
16  
      BWImage img = cast quickImport(_img);
17  
      BWIntegralImage ii = new(img);
18  
      setImage(scaleDownUsingIntegralImageBW(ii, w, h));
19  
   });
20  
  }
21  
}

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