Skip to content

if read_wave() then write(), the new audio is different in amp. #82

@fangpo

Description

@fangpo

wave.normalize()

In read_wave(), the call to normalize() makes issue: if read_wave() then write(), the new audio is different in amp.
Suggest don't call normalize(), but convert data to [-1.0, 1.0] using: ys = ys * 1.0 / ( 2 ** (sampwidth * 8 - 1));

122,123d121
< ys = ys * 1.0 / ( 2 ** (sampwidth * 8 - 1));
<
126,127c124
<
< # wave.normalize()

wave.normalize()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions