def set_eq(self, eq_pts, *args, **kw): """Set the equalization :py:class:`splat.interpol.spline` used to alter the amplitude of each particle in function of its frequency to create an equalization. The minimum and maximum frequencies used when creating the :py:class:`splat.gen.ParticlePool` is derived from the boundaries of the equalization spline.""" self._eq = interpol.spline(eq_pts, *args, **kw) self._min_f_log = _splat.lin2dB(self._eq.start) self._max_f_log = _splat.lin2dB(self._eq.end)
def set_q(self, q_pts, *args, **kw): """Set the distribution parameter :py:class:`splat.interpol.spline` object which is used to alter the random function used to pick the frequency of each :py:class:`splat.gen.Particle` using the given ``q_pts`` points.""" self._q = interpol.spline(q_pts, *args, **kw)
def set_z(self, z_pts, *args, **kw): """Create the :py:class:`splat.interpol.spline` used for the :py:class:`splat.gen.ParticlePool` amplitude envelope with the given ``z_pts`` points.""" self._z = interpol.spline(z_pts, *args, **kw)