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

11
LINES

< > BotCompany Repo | #1018825 // recordingFrequencyImagesWithWords

JavaX fragment (include)

1  
static LPair<S, BWImage> recordingFrequencyImagesWithWords(F1<S, Bool> wordFilter) {
2  
  LPair<S, BWImage> images = new L;
3  
  L<File> files = audioRecordingsWithSingleClip();
4  
  for (File f : allRecordings()) {
5  
    S word = wordFromAudioFileName(f);
6  
    if (!isTrue(callF(wordFilter, word))) continue;
7  
    images.add(pair(word, bwAutoContrast(audio_defaultClip(audioFileToFrequencyImage(f)))));
8  
    print(fileName(f));
9  
  }
10  
  ret images;
11  
}

Author comment

Began life as a copy of #1018823

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: #1018825
Snippet name: recordingFrequencyImagesWithWords
Eternal ID of this version: #1018825/4
Text MD5: f380e61240510a52a41e015559c50c73
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 13:40:53
Source code size: 444 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 365
Version history: 3 change(s)
Referenced in: [show references]