~/talk

Audio Programming with Go

Talkat GopherCon Europe 2021 · 2021-05-26..05-28· [go, creative-coding]
links:none on file
slides:none on file

Built a small audio library in pure Go Standard Library that generates oscillators (sine, square, triangle, saw), converts note names to frequencies using equal temperament with A=440, and writes playable WAV files. It uses common sample rates like 44,100 samples/sec (and up to 96,000), implements a per-sample oscillator tick, and applies an ADSR envelope so chained notes sound natural. Example output is a rendered melody (Brother Jacob), demonstrating the code works.

AI-written summary · about

  1. 0:00Intro
  2. 0:14whoamigo
  3. 0:28GoAudio
  4. 1:34How do computers create sound?
  5. 2:22Generating Sine Waves
  6. 4:08Important concepts
  7. 6:36The 'hearing test
  8. 7:25Oscillators
  9. 8:47Oscillator basics
  10. 9:43Making it tick
  11. 10:57Adding some waveform functions
  12. 11:46Using the Oscillator
  13. 13:14Different Waveforms
  14. 13:43Problems with current implementation
  15. 14:14Musical Scale
  16. 15:22Calculating Frequencies
  17. 16:59ADSR
  18. 18:53Chaining it all together
  19. 22:03Some great books!
  20. 22:40The end!
~/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.