What's the easiest way to read and write a stereo .wav file in Python ?
Should I use scipy.io.wavfile.read
?
Should I use a 2-dimension array (how ?) in order to have
x[n,j]
wherej
is the channel number?I also want to read/write metadatas stored in the wav file like the
markers
,MIDI root note
(Soundforge, as well as other sound editors, can read/write this specific .wav metadata called "MIDI root note")
Thank you
PS : I already know how to do with a mono file :
from scipy.io.wavfile import read
(fs, x) = read('test.wav')