k = 1 (slider from 1 to 10, step 1)
f_k(x) = If[(-π) < x < π, (2^((-k)) * abs(sin((2^(k) * x))))]
f = Integral(f_k, (-π), π)