1 | static S wordFromAudioFileName(File f) { |
2 | ret wordFromAudioFileName(fileName(f)); |
3 | } |
4 | |
5 | static S wordFromAudioFileName(S name) { |
6 | if (name == null) null; |
7 | ret trim(takeFirst(name, indexOfRegExpIC(name, "[^a-z ]"))); |
8 | } |
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: | #1018659 |
Snippet name: | wordFromAudioFileName - e.g. "shit 2.wav" => "shit" |
Eternal ID of this version: | #1018659/3 |
Text MD5: | a65c6aa953cb24379d0668a030c08f7e |
Author: | stefan |
Category: | javax / audio recognition |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-13 15:44:46 |
Source code size: | 224 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 389 / 415 |
Version history: | 2 change(s) |
Referenced in: | [show references] |