Rescale the Range of a Sample to [-1,1]
Multiply the waveform of a Sample object or a wav file with a positive constant so that the maximum absolut value becomes 1, or any other specified constant.
Use this command before saving or playing a Sample object to avoid cracks in the sound caused by parts in the waveform that exceed the range [-1,1].
a Sample object, or a string giving the name of a wav file.
a number between 0 and 1 specifying the desired maximum absolute value of the waveform.
a Sample object with the specified maximum absolut value of the waveform.
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.