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

10
LINES

< > BotCompany Repo | #1018781 // audioFileToBWImageAndRange - range from user-set markers

JavaX fragment (include)

1  
static BWImageAndRange audioFileToBWImageAndRange(File audioFile) {
2  
  BWImage image = wavToFrequencyImage(audioFile);
3  
  L<IntRange> parts = markerIntRangesForWAV(audioFile, image);
4  
  BWImageAndRange out = nu(BWImageAndRange, +image);
5  
  if (nempty(parts)) {
6  
    out.start = first(parts).start;
7  
    out.end = first(parts).end;
8  
  }
9  
  ret out;
10  
}

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: #1018781
Snippet name: audioFileToBWImageAndRange - range from user-set markers
Eternal ID of this version: #1018781/3
Text MD5: 36dfb9fbf9c00257d2a9dac56f022b08
Author: stefan
Category: javax / audio analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 12:45:48
Source code size: 350 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 370
Version history: 2 change(s)
Referenced in: [show references]