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

17
LINES

< > BotCompany Repo | #1019224 // nonVoiceMegaMix_dontUse

JavaX fragment (include)

1  
static File nonVoiceMegaMix() {
2  
  File file = javaxDataDir("Generated Audio/non-voice-mega-mix.wav");
3  
  new AudioInputStreamsCollector c;
4  
  // TODO: files without markers
5  
  for (File f : allRecordingsWithMarkers()) {
6  
    Clip clip = spectro_clipFromFile(f);
7  
    int n = clip.getFrameCount();
8  
    L<IntRange> ranges = markerIntRangesForWAV(f);
9  
    print(+ranges);
10  
    ranges = invertIntRanges(ranges, 0, n);
11  
    print("Inverted ranges: " + ranges);
12  
    for (IntRange r : ranges)
13  
      addClipPartToAudioCollector(clip, r, c);
14  
  }
15  
  c.writeToWAV(file);
16  
  ret file;
17  
}

Author comment

Began life as a copy of #1019222

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019224
Snippet name: nonVoiceMegaMix_dontUse
Eternal ID of this version: #1019224/1
Text MD5: ebc568e3452d5ce1dbacaa9b94ceb5fc
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-28 00:51:09
Source code size: 580 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 244 / 271
Referenced in: [show references]