def __init__(self, sampling_rate, zone=(0.2, 0.8), coverage=1., duration=None, factor=(-10, 10), name='Pitch_Aug', verbose=0, stateless=True): super().__init__(action=Action.SUBSTITUTE, zone=zone, coverage=coverage, factor=factor, duration=duration, name=name, device='cpu', verbose=verbose, stateless=stateless) self.sampling_rate = sampling_rate self.model = nma.Pitch()
def get_model(cls, sampling_rate, pitch_range): return nma.Pitch(sampling_rate, pitch_range)
def get_model(cls, sampling_rate, zone, coverage, duration, factor): return nma.Pitch(sampling_rate, zone, coverage, duration, factor)
def get_model(self, sampling_rate, pitch_factor): return nma.Pitch(sampling_rate, pitch_factor)