Skip to content

Commit

Permalink
15.1 visualizer improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
junh1024 committed May 22, 2021
1 parent 4223681 commit cd3c4ff
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Specialist/15.1 Surround Visualizer GUI (L).txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ desc: desc
slider1:1<0,1,1{x,x}>Input layout
slider2:1<0,1,1{x,x}>Mode
slider3:100<0,200 ,1>Scaling
slider4:10<0,100 ,1}>Time response
slider4:10<0,10 ,1}>Time response %


in_pin:mono
Expand Down Expand Up @@ -49,7 +49,7 @@ samples_old=16;

@slider

Time_Response=slider4/100;
Time_Response=(100-slider4)/100;

@sample
//sample capture
Expand Down Expand Up @@ -80,10 +80,21 @@ loop(16,


samples[i]=pow(abs(samples[i]),1/4);
samples[i]=(samples[i]*Time_Response) + (samples_old[i]*(1-Time_Response));

samples_old[i]=samples[i];
samples[i]>samples_old[i]?samples[i]=(samples[i]+samples_old[i])/2;

samples[i]<samples_old[i]?
(
samples[i]=samples_old[i]*Time_Response;

);


// samples[i]=(samples[i]*Time_Response) + (samples_old[i]*(1-Time_Response));


samples_old[i]=samples[i];



// Time_Response
Expand Down

0 comments on commit cd3c4ff

Please sign in to comment.