If $\rho$ is the density mass and $S$ is the surface of the rope, the mass $M$ is
$$
M=\iint_S\rho\,\mathrm dA
$$
and the moments are
$$
M_x=\iint_S\rho\,y\,\mathrm dA\qquad M_y=\iint_S\rho\,x\,\mathrm dA
$$
Hence the center of mass coordinates are
$$
\begin{align}
\bar x&=\frac{M_y}{M}=\frac{\iint_S x\,\mathrm dA}{\iint_S\mathrm dA}\\
\bar y&=\frac{M_x}{M}=\frac{\iint_S y\,\mathrm dA}{\iint_S\mathrm dA}
\end{align}
$$
If the rope is between $f(x)$ and $g(x)$ and between $a$ and $b$
the center of mass coordinates are
$$
\begin{align}
\bar x&=\frac{M_y}{M}=\frac{\int_{a}^b \int_{g(x)}^{f(x)} x\,\mathrm dy\,\mathrm dx}{\int_{a}^b \int_{g(x)}^{f(x)} \mathrm dy\,\mathrm dx}=\frac{\int_{a}^b x\left[f(x)-g(x)\right]\mathrm dx}{\int_{a}^b \left[f(x)-g(x)\right]\mathrm dx}=\frac{1}{S}\int_{a}^b x\left[f(x)-g(x)\right]\mathrm dx\\
\\
\bar y&=\frac{M_x}{M}=\frac{\int_{a}^b \int_{g(x)}^{f(x)} y\,\mathrm dy\,\mathrm dx}{\int_{a}^b \int_{g(x)}^{f(x)} \mathrm dy\,\mathrm dx}=\frac{\int_{a}^b \frac{1}{2}\left[f^2(x)-g^2(x)\right]\mathrm dx}{\int_{a}^b \left[f(x)-g(x)\right]\mathrm dx}=\frac{1}{S}\int_{a}^b \frac{1}{2}\left[f^2(x)-g^2(x)\right]\mathrm dx
\end{align}
$$
where $S=\int_{a}^b \left[f(x)-g(x)\right]\mathrm dx$ is the area of the rope.
If the rope is the surface between $y=f(x)$ even, $y=0$, $x=-a$ and $x=a$
we have
$$
\begin{align}
\bar x&=\frac{M_y}{M}=\frac{\int_{-a}^a xf(x)\mathrm dx}{\int_{-a}^a f(x)\mathrm dx}=\frac{\int_{-a}^a xf(x)\mathrm dx}{2\int_{0}^a f(x)\mathrm dx}=0\\
\\
\bar y&=\frac{M_x}{M}=\frac{\int_{-a}^a \frac{1}{2}f^2(x)\mathrm dx}{\int_{-a}^a f(x)\mathrm dx}=\frac{1}{2}\frac{\int_{0}^a f^2(x)\mathrm dx}{\int_{0}^a f(x)\mathrm dx}
\end{align}
$$