1 | static float showFrequencyImage2_maxValue = 0.3f; |
2 | |
3 | static ImageSurface showFrequencyImage2(File audioFile) { |
4 | if (audioFile == null) null; |
5 | ret showFrequencyImage2(audioFile.getName(), audioFileToFrequencyImage(audioFile)); |
6 | } |
7 | |
8 | static ImageSurface showFrequencyImage2(S name, final BWImage img) { |
9 | ImageSurface is = showZoomedBWImage(name, img); |
10 | final ImageSurface is2 = jImageSurface(); |
11 | is2.setZoom(2); |
12 | final SimpleLiveValue<Float> lvThreshold = floatLiveValue(0.1f); |
13 | |
14 | Runnable update = runAndReturn(r { |
15 | is2.setImage(bwImage_markColumnsWhite(img.getWidth(), 10, printStruct("change points: ", audio_changePoints1(img, lvThreshold!)))); |
16 | }); |
17 | |
18 | lvThreshold.onChange(update); |
19 | addToWindowAndPack(is, vstack(is2, jLiveValueSliderZeroToX(showFrequencyImage2_maxValue, lvThreshold))); |
20 | ret is; |
21 | } |
Began life as a copy of #1018613
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: | #1018687 |
Snippet name: | showFrequencyImage2 - with change points slider |
Eternal ID of this version: | #1018687/9 |
Text MD5: | f30239cc896b95776794a88546c93d2f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-12 12:05:59 |
Source code size: | 834 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 376 / 449 |
Version history: | 8 change(s) |
Referenced in: | [show references] |