You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the Distortion module does not have a sample_rate attribute, calling .process_normalized() fails:
42 denorm_param_dict = self.denormalize_param_dict(param_dict)
44 # now process audio with denormalized parameters
45 y = self.process_fn(
46 x,
---> 47 self.sample_rate,
48 **denorm_param_dict,
49 )
51 return y
AttributeError: 'Distortion' object has no attribute 'sample_rate'
One solution would be to add a sample_rate attribute, even if it is a no-op; another would be to store a default sample rate of None in the Processor class to support modules that do not require a sample rate.
The text was updated successfully, but these errors were encountered:
It also looks like the parameter name within the module does not match the distortion function signature -- it should be drive_db. The following fixes both errors:
Because the
Distortion
module does not have asample_rate
attribute, calling.process_normalized()
fails:One solution would be to add a
sample_rate
attribute, even if it is a no-op; another would be to store a default sample rate ofNone
in theProcessor
class to support modules that do not require a sample rate.The text was updated successfully, but these errors were encountered: