def __tremoloRGB(I, Fc=5, alpha=0.5, Fs=44100):
index = np.arange(0, pgc.width(I)*pgc.height(I))
trem = (1 + alpha * np.sin(2 * np.pi * index * (Fc / Fs)))
for c in prange(0, 2):
x = pgc.to_1d_array(I[:, :, c])
y = np.multiply(x, trem)
I[:, :, c] = np.reshape(y, (pgc.height(I), pgc.width(I)))
return I
评论列表
文章目录