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

18
LINES

< > BotCompany Repo | #1025085 // Live Base Drum Finder 1 [dev.]

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

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

1  
!7
2  
3  
cmodule BaseDrumFinder > DynPrintLog {
4  
  new SimpleBaseDrumFinder1 finder;
5  
  
6  
  start {
7  
    dm_requireLiveAudioFFT();
8  
    dm_vmBus_onMessage_q newAudioFrequencyImage(voidfunc(virtual BWImage img) {
9  
      for (float b : bwImageColumnBrightnesses_generic(img)) {
10  
        finder.addFrequencyImageBrightness(b);
11  
        if (finder.lastBaseDrum != null) {
12  
          //print(finder.lastBaseDrum);
13  
          finder.lastBaseDrum = null;
14  
        }
15  
      }
16  
    });
17  
  }
18  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025085
Snippet name: Live Base Drum Finder 1 [dev.]
Eternal ID of this version: #1025085/4
Text MD5: 1f35af3ee7cd4dd64e19334332129196
Transpilation MD5: 9ac4fb977c65d443929e76287c23d6f4
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: 2019-09-05 14:01:05
Source code size: 481 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 409
Version history: 3 change(s)
Referenced in: [show references]