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

16
LINES

< > BotCompany Repo | #1018765 // wordPairAudioRecordings

JavaX fragment (include)

1  
static Pair<L<File>> wordPairAudioRecordings(S word1, S word2) {
2  
  ret wordPairAudioRecordings(pair(word1, word2));
3  
}
4  
5  
static Pair<L<File>> wordPairAudioRecordings(Pair<S> pair) {
6  
  new L<File> l1;
7  
  new L<File> l2;
8  
  for (File f : allRecordingsWithMarkers()) {
9  
    S word = wordFromAudioFileName(f);
10  
    if (eqic(word, pair.a))
11  
      l1.add(f);
12  
    else if (eqic(word, pair.b))
13  
      l2.add(f);
14  
  }
15  
  ret pair(l1, l2);
16  
}

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: #1018765
Snippet name: wordPairAudioRecordings
Eternal ID of this version: #1018765/2
Text MD5: fb77339d0a7cdc3a02c1c2504febb4cc
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-13 15:43:14
Source code size: 436 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 318 / 339
Version history: 1 change(s)
Referenced in: [show references]