wavebender icon indicating copy to clipboard operation
wavebender copied to clipboard

Small request

Open 0W1audio opened this issue 6 years ago • 0 comments

Hello Zach,

I just discovered your wavebender that is sounding close to what I was looking for !

I want to create a codec test. = Send continuous full scale signal on one channel and Digital Silence on the other.

I suppose that I don't need to send sine or square or Noise, just max sample amplitude and min sample amplitude.

This should sound trivial to you, but not to me ! Could you help, please ?

For your information, on the Raspberry Pi some of your example are working, some not. python whitenoise.py | aplay = OK python square.py | aplay = OK python relaxing.py | aplay = OK python violin.py | aplay = OK but there are underrun Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono underrun!!! (at least 191.995 ms long) underrun!!! (at least 194.765 ms long) underrun!!! (at least 198.716 ms long) underrun!!! (at least 49.127 ms long) underrun!!! (at least 202.240 ms long) underrun!!! (at least 53.436 ms long)

python sbagen.py | aplay = ERROR aplay: read_header:2834: read error

damped.py / focus3.py and binaral.py => same error (Just a brief tone and the following error): Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Traceback (most recent call last): File "damped.py", line 28, in write_wavefile(stdout, samples, None) File "/usr/local/lib/python2.7/dist-packages/wavebender/init.py", line 98, in write_wavefile w.writeframesraw(frames) File "/usr/local/lib/python2.7/dist-packages/wavebender/wave.py", line 435, in writeframesraw self._file.write(data) IOError: [Errno 32] Broken pipe Exception IOError: IOError(29, 'Illegal seek') in <bound method Wave_write.del of <wavebender.wave.Wave_write instance at 0x7649a238>> ignored

Best regards, Jean

0W1audio avatar Jul 14 '19 16:07 0W1audio