-1

I have re-written this answer because, with the help of WolframAlpha here, I was surprised to discover
$$0\le \big(3-\sin(2\pi x)\big)\sin(\pi x - \frac{\pi}{4})- \sin(3\pi x +\frac{\pi}{4})\le 2\sqrt{2}\\
\implies (2 n - 1)<x\le \frac{2 \big(\pi n - \frac{3 π}{8}\big)}{\pi} \land n \in\mathbb{ ...