Mercurial > hg > vampy-host
changeset 5:8a534e43eb22
Another little bit
author | Chris Cannam |
---|---|
date | Thu, 31 Jan 2013 17:54:46 +0000 |
parents | 825d787f12df |
children | aacfd14a0ae2 |
files | vampyhost_test.py |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vampyhost_test.py Thu Jan 31 17:44:37 2013 +0000 +++ b/vampyhost_test.py Thu Jan 31 17:54:46 2013 +0000 @@ -23,11 +23,14 @@ #deal with an audio file wavfile='test.wav' -audio, samplerate, format = al.wavread(wavfile); +wavdata, samplerate, format = al.wavread(wavfile); print "samplerate: ",samplerate -print "number of samples (frames): ",audio.size #total number of samples 4647744 -channels = audio[0].size +print "number of samples (frames): ",wavdata.size + +audio = wavdata.transpose() + +channels = audio.size print "channels: ",channels #!!! continue with this lark