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

9
LINES

< > BotCompany Repo | #1025097 // runSimpleBaseDrumFinder1OnBrightnessArray

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2782L/17K).

static LPair<LongRange, Double> runSimpleBaseDrumFinder1OnBrightnessArray(float[] brightnesses) {
  new SimpleBaseDrumFinder1 finder;
  new LPair<LongRange, Double> l;
  for (float b : brightnesses) {
    finder.addFrequencyImageBrightness(b);
    addIfNotNull(l, finder.getAndClearLastEvent());
  }
  ret l;
}

Author comment

Began life as a copy of #1025095

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: #1025097
Snippet name: runSimpleBaseDrumFinder1OnBrightnessArray
Eternal ID of this version: #1025097/1
Text MD5: b7a97e802e3c0b6f614f3be21a57d222
Transpilation MD5: 109c48a41af18f94fbc1c0fd307a73b1
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-05 14:27:19
Source code size: 318 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 261
Referenced in: [show references]