Uses 11913K of libraries. Click here for Pure Java version (16602L/117K).
1 | !7 |
2 | |
3 | // reacts to new recording or file path on clipboard |
4 | sclass AnalyzeLastRecording > DynSCP { |
5 | start { |
6 | set verboseTimers; |
7 | dm_onNewRecordingOrWAVOnClipboard(voidfunc(File f) { |
8 | print("Analyzing " + f.getName()); |
9 | BWImage image = audioFileToFrequencyImage(f); |
10 | |
11 | new Var<BWImage> processedImage; |
12 | L<Int> entryPoints = audio_entryPointsUsingBand_v1(image, audio_bestBandForEntryPoints(), +processedImage); |
13 | |
14 | setComponent(jscroll_center(jImageSurface( |
15 | markIntRangesOnTopOfBWImage(squishBWImage(processedImage!, 20), |
16 | intsToSize2Ranges(entryPoints), 5)).setZoom(2))); |
17 | |
18 | setFileInfoFieldIfNotNull(f, 'Guess, audio_yesNoGuess1(f)); |
19 | }); |
20 | } |
21 | } |
Began life as a copy of #1018652
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: | #1018804 |
Snippet name: | Analyze Recording v2 [show entry points, Dyn Module] |
Eternal ID of this version: | #1018804/10 |
Text MD5: | 6562c142ba6e064c484ee4b94811d9c8 |
Transpilation MD5: | 2f682461af7a8dc685de6236b281b561 |
Author: | stefan |
Category: | javax / audio recognition |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-14 12:07:35 |
Source code size: | 737 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 370 / 568 |
Version history: | 9 change(s) |
Referenced in: | [show references] |