Re: instead of depending on data = array('h') .. write samples 1 by 1 to w = wave.open("wav.wav", "w")

2009-07-29 Thread '2+
o wow .. there's still a lot to learn .. okay .. if i get stucked with the memory usage issue will try this hybrid .. thanx for the example!! it took about 40 min to render 1min of wav so i'll just keep this project like 15 sec oriented and maybe that'll keep me away from the mem trouble and my o

Re: instead of depending on data = array('h') .. write samples 1 by 1 to w = wave.open("wav.wav", "w")

2009-07-29 Thread Peter Otten
'2+ wrote: > it says > Wave_write.writeframes(data) > will that mean > "from array import array" > is a must? > > this does the job: > > import oil > import wave > from array import array > > a = oil.Sa() > > w = wave.open("current.wav", "w") > w.setnchannels(2) > w.setsampwidth(2) > w.setfram

instead of depending on data = array('h') .. write samples 1 by 1 to w = wave.open("wav.wav", "w")

2009-07-28 Thread '2+
it says Wave_write.writeframes(data) will that mean "from array import array" is a must? this does the job: import oil import wave from array import array a = oil.Sa() w = wave.open("current.wav", "w") w.setnchannels(2) w.setsampwidth(2) w.setframerate(44100) data = array('h') for gas in rang