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

16
LINES

< > BotCompany Repo | #1018765 // wordPairAudioRecordings

JavaX fragment (include)

static Pair<L<File>> wordPairAudioRecordings(S word1, S word2) {
  ret wordPairAudioRecordings(pair(word1, word2));
}

static Pair<L<File>> wordPairAudioRecordings(Pair<S> pair) {
  new L<File> l1;
  new L<File> l2;
  for (File f : allRecordingsWithMarkers()) {
    S word = wordFromAudioFileName(f);
    if (eqic(word, pair.a))
      l1.add(f);
    else if (eqic(word, pair.b))
      l2.add(f);
  }
  ret pair(l1, l2);
}

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: 319 / 340
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018770 - audioRecordingsWithSingleClip