Algorytm jednego odbicia echa FIR w języku JS (Reaper)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | desc:delay FIR slider1:1<0,1,0.01>glosnosc slider2:0<0,44100,1>czas @slider delay=slider2; dump=slider1; @init bufL=0; bufR=500000; buflen=500000; ii=0; loop (1000000, bufL[ii]=0; ii+=1; ); i=0; dump=0.5; delay=44500; @sample opoznienie=i-delay + (i<delay ? buflen); bufL[i]=spl0; bufR[i]=spl1; spl0+=bufL[opoznienie]*dump; spl1+=bufR[opoznienie]*dump; i= i>=500000 ? 0 : i+1; |
Show Comments