[Tutor] Converting audio samples from 16-bit signed int to float?

2010-06-20 Thread Joe Veldhuis
floating-point values (-1.0 - +1.0). So, what is the most efficient way to do the necessary conversion? I'm using the pyalsaaudio module to access the soundcard, if it matters. -Joe Veldhuis ___ Tutor maillist - Tutor@python.org To unsubs

[Tutor] Controlling a device with ioctl's?

2010-08-24 Thread Joe Veldhuis
Hello to all. I'm working on writing a tool that will control a piece of hardware using ioctl's on its device node. Specifically, I'm trying to configure and tune a DVB-S receiver on Linux. Just for starters, I want to try opening the frontend and setting the LNB voltage. An example in C: ###

Re: [Tutor] Controlling a device with ioctl's?

2010-08-24 Thread Joe Veldhuis
A bit more work than I expected, but at least I have an idea what to do now. I'm working on writing a DVB binding based on the V4L2 binding you mentioned, currently about 30% complete - I can query the card's status! :) Thanks for the help so far, might post again if I run into more trouble. -J

[Tutor] Fast fourier transform libraries?

2009-12-09 Thread Joe Veldhuis
Hello to all. I'm working on a program that will need to do some simple signal analysis (namely, find the frequency of an audio signal) as part of its operation. Something like: - samples = list() for i in range(fft_length): samples.append(readSoundCard()) fft_bins = FFT(samples, sample_ra

[Tutor] Generating audio tones?

2008-07-19 Thread Joe Veldhuis
Hello list. I'm trying to put together an AFSK modem in Python, and I have most of the code worked out. The last remaining issue will be generating the actual audio signal. Unfortunately, I have never written any kind of audio code before in any language, so I don't really know what I am doing.