From 9cc3ae04f9f4a3db9c5e175c5fa07be362c8ac3a Mon Sep 17 00:00:00 2001 From: junh1024 Date: Mon, 7 Jun 2021 23:25:33 +1300 Subject: [PATCH] 15.1 visualizer - new algo, less flickering --- ...oop_slicer_6.txt => loop_slicer_multi.txt} | 0 README.md | 2 +- .../15.1 Surround Visualizer GUI (L).txt | 72 ++++++++++--------- Specialist/FFT Multi Tool (L).txt | 2 + 4 files changed, 43 insertions(+), 33 deletions(-) rename Effects/{loop_slicer_6.txt => loop_slicer_multi.txt} (100%) diff --git a/Effects/loop_slicer_6.txt b/Effects/loop_slicer_multi.txt similarity index 100% rename from Effects/loop_slicer_6.txt rename to Effects/loop_slicer_multi.txt diff --git a/README.md b/README.md index 218240c..44ed9c5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A collection of mostly surround JSFX for the REAPER DAW ( www.reaper.fm ). These Donations --- -Surround is just a hobby for me since 2014. If you use them (especially commercially), you are encouraged to donate. By CC (stripe) or Paypal on https://donorbox.org/junh1024 to encourage further development & lets me know they are genuinely useful for work. Also, contact me for custom development based on my stuff. +Surround is just a hobby for me since 2014. If you use them (especially commercially), you are encouraged to donate. By CC (securely handled by stripe) on https://donorbox.org/junh1024 to encourage further development & lets me know they are genuinely useful for work. Also, contact me for custom development based on my stuff. ![img](https://i.imgur.com/eDlWKrf.png) diff --git a/Specialist/15.1 Surround Visualizer GUI (L).txt b/Specialist/15.1 Surround Visualizer GUI (L).txt index 7f8f1c0..466b30f 100644 --- a/Specialist/15.1 Surround Visualizer GUI (L).txt +++ b/Specialist/15.1 Surround Visualizer GUI (L).txt @@ -46,13 +46,16 @@ import surroundlib3.txt samples=0; samples_old=16; +samples_avg=200; +samples_loudness_display=300; @slider - +scaling=slider3/100; Time_Response=(100-slider4)/100; @sample //sample capture +//orig sample needed for 3D analysis samples[0 ]= spl0 ; samples[1 ]= spl1 ; samples[2 ]= spl2 ; @@ -70,6 +73,25 @@ samples[13 ]= spl13 ; samples[14 ]= spl14 ; samples[15 ]= spl15 ; +//abs for loudness +samples_avg[0 ]+= abs(spl0 ); +samples_avg[1 ]+= abs(spl1 ); +samples_avg[2 ]+= abs(spl2 ); +samples_avg[3 ]+= abs(spl3 ); +samples_avg[4 ]+= abs(spl4 ); +samples_avg[5 ]+= abs(spl5 ); +samples_avg[6 ]+= abs(spl6 ); +samples_avg[7 ]+= abs(spl7 ); +samples_avg[8 ]+= abs(spl8 ); +samples_avg[9 ]+= abs(spl9 ); +samples_avg[10 ]+= abs(spl10 ); +samples_avg[11 ]+= abs(spl11 ); +samples_avg[12 ]+= abs(spl12 ); +samples_avg[13 ]+= abs(spl13 ); +samples_avg[14 ]+= abs(spl14 ); +samples_avg[15 ]+= abs(spl15 ); + +samples_captured+=1; @gfx 500 500 // box_width=16; @@ -79,29 +101,15 @@ i=0; loop(16, - samples[i]=pow(abs(samples[i]),1/4); - - samples[i]>samples_old[i]?samples[i]=(samples[i]+samples_old[i])/2; - - samples[i]0? height_toe_in=gfx_w/20; -gfx_a = samples[8]; +gfx_a = samples_loudness_display[8]; drawbox(gfx_w/3+height_toe_in,gfx_h/3); -gfx_a = samples[9]; +gfx_a = samples_loudness_display[9]; drawbox(gfx_w*2/3-height_toe_in,gfx_h/3); //H S -gfx_a = samples[12]; +gfx_a = samples_loudness_display[12]; drawbox(gfx_w/3+height_toe_in,gfx_h*2/3); -gfx_a = samples[13]; +gfx_a = samples_loudness_display[13]; drawbox(gfx_w*2/3-height_toe_in,gfx_h*2/3); -gfx_a = samples[14]; +gfx_a = samples_loudness_display[14]; drawbox(gfx_w/3-height_toe_in/2,gfx_h/2); -gfx_a = samples[15]; +gfx_a = samples_loudness_display[15]; drawbox(gfx_w*2/3+height_toe_in/2,gfx_h/2); ); diff --git a/Specialist/FFT Multi Tool (L).txt b/Specialist/FFT Multi Tool (L).txt index e40e3e9..0a20c13 100644 --- a/Specialist/FFT Multi Tool (L).txt +++ b/Specialist/FFT Multi Tool (L).txt @@ -360,6 +360,8 @@ pos >= fftsize ? // 15.1 surround visualizer w/bias ball // coordinate automation tool (convert btw cubular & circular) // lfo automation tool, better than PMOD in RPR cuz it has offset +// 15.1 GUI pan, 71 snapping +// export mix project, as YT timecodes & artist - song //more voodoo buf1_a[a] = left_r - right_i;