Suppose $\gamma$ is a real number with $|\gamma|\ll1$. The function $$ \theta(s)=s-\frac{\sin \left( \sqrt{1+\gamma} \, k \, \pi \, s \right)}{\sin \left( \sqrt{1+\gamma}\, k \, \pi \right)}, \qquad k = 1,2,3\dots $$ is negative on $[0,1]$ when $\gamma>0$ is small, and positive on $[0,1]$ when $\gamma<0$ is small.
Doesn't look difficult, but I don't see it yet. I'm trying to Taylor the function but do not find an answer.