AllenDowney / ThinkDSP

Think DSP: Digital Signal Processing in Python, by Allen B. Downey.
https://allendowney.github.io/ThinkDSP/
3.93k stars 3.2k forks source link

Apply Wave.shift() to output wav file #91

Open zhufengning opened 1 year ago

zhufengning commented 1 year ago

Adjust zs when ts doesn't start from zero

AllenDowney commented 1 year ago

Thanks for this suggestion, but I'm not sure I understand the motivation. What problem does this solve?

zhufengning commented 1 year ago

Wave.shift adds the value to ts array, but when writing wav file, it doesn't consider values in ts array, so it will write a not shifted wav file.

AllenDowney commented 1 year ago

Should the wav file be shifted? What goes wrong if it's not?