Category Archives: Sound

One-liner Guitar Tuner in Python

On windows, assuming imports are free: import winsound winsound.Beep(220*((2**(1/12.0))**7), 2000) But that’s just because I like to tune to E. If you prefer a more “natural looking” note, you can use A: winsound.Beep(110, 1000) But why choose at all when … Continue reading

Posted in Python, Sound | Tagged , , , | 2 Comments

Preparing PyImprov for GeekCon on Friday

A long long time ago, I wrote Pytuner. It was one of the first projects I published on this website. For a long time it just sat there, doing nothing, while the library it’s based on – PyMedia, wasn’t being … Continue reading

Posted in Programming, Projects, Python, Sound | Tagged , , , | 3 Comments

How PyTuner works

PyTuner is really quite simple. Here is the outline of the algorithm behind it: Record audio data with pymedia. Compute the FFT of the audio data – now we have the strength of each frequency in the sample. Find peaks … Continue reading

Posted in Algorithms, Programming, Python, Sound | Tagged , , , , | Leave a comment