Can you please explain or point the right way to think about how to implement two sound effects on the wav file.
So I read wav file and convert it to int values (in numpy
array)
array([59383, 58290, 60629, ..., 52606, 51982, 56274], dtype=uint16)
First, I am not sure I am clear about what these values in array really represent?
Is it right that every value is one of 65535 ( unsigned int16
) magnitude levels that analog output device will produce in some moment in time ?
In theory chorus effect could be achieved by following steps:
- Make copy of original array
- weaken this copied array ( multiplying by some
value < 1
) - and add this copied array to original one
In practice I don't know how to add them correctly. Should I simply add values one by one, make convolution of two arrays or interleave original array and it's modified copy. Also chorus effect should have arbitrary time delay and i don't know how can i accomplish this.
How could I implement that randomness of data I am about to add ?