~/talk

Sounds good!

Talkat PyCon Australia 2014 · 2014-08-01..08-05· [creative-coding]
links:none on file
slides:none on file

Shows a working Python synthesizer built live: uses PI audio (PortAudio bindings), opens a mono 32‑bit float stream at 44100 samples per second, generates buffers of 1024 frames per loop, and outputs random samples (white noise) then a 440 Hz sine wave by incrementing theta per sample. Explains bit depth, sampling rate, harmonics and ADSR envelopes, and demonstrates the code actually produces audible tones during the demo.

AI-written summary · about

  1. 0:00Start
  2. 0:54create a digital representation for sound
  3. 1:42pluck the highest string on a guitar
  4. 3:12defining sound pitch and amplitude
  5. 3:48quantify the difference between two sounds of identical pitch and amplitude
  6. 5:19determined by the harmonic content of the signal
  7. 6:00perform a fourier transform on a very small segment of this wave
  8. 10:00start the clarinet making sound by hitting the clarinet reed
  9. 14:10call each of these piecewise measurements a sample of sound
  10. 16:52provides python bindings for the the cross-platform port audio library
  11. 17:24implement a very simple sound synthesizer
  12. 17:43import the pi audio module
  13. 18:28set the sampling rate to 44100 samples per second
  14. 18:54set the short output sound flag to true
  15. 19:44generate a whole heap of samples
  16. 20:35put in the main audio loop
  17. 21:28start off here by initializing a list of raw frames
  18. 22:33set the the amplitude of our sound to unity
  19. 23:15multiply our sample by the amplitude
  20. 26:07create our sign tone at a frequency of 440 hertz
  21. 26:32first measurement of the sine wave
  22. 29:14pre calculate all our samples
  23. 29:46resonating at a frequency of 440 hertz
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.