$$\color{Cyan} f(x)=\frac{2-4\sin\left(x\right)}{\sin\left(x\right)+4} $$