Jan-18-2019, 10:22 AM
Hello,
I am using the following code in wave file processing:
f = wave.open("file.wav", "rb")
params = f.getparams()
nchannels, sampwidth, framerate, nframes = params[:4]
but i have not understood the working of "nframes = params[:4]"
what does "params[:4]" means?
[:4] is used for what?
Please guide
I am using the following code in wave file processing:
f = wave.open("file.wav", "rb")
params = f.getparams()
nchannels, sampwidth, framerate, nframes = params[:4]
but i have not understood the working of "nframes = params[:4]"
what does "params[:4]" means?
[:4] is used for what?
Please guide