~/talk

Scala Sampler for Functional Soundscapes

Talkat Scalar Conference 2025 · 2025-03-27..03-28· [creative-coding, scala]
slides:none on file

A browser-based sampler built for the Sounds of Scala library maps recorded samples to note keys, repitches by adjusting playback rate, and avoids extreme length by supplying octave-spanning samples and choosing the nearest sample with binary search. Audio I/O and loading are wrapped in monadic effects so only two impure methods touch the Web Audio API. Implementation uses Scala 3, Scala.js, Typelevel Cats and demonstrates a working Pascal's triangle arpeggiator plus a Mobius-strip inspired canon that runs in the browser.

AI-written summary · about

  1. 0:00Functional programming & music
  2. 2:10Sampling as tool
  3. 5:02Sounds of Scala library
  4. 7:14Sampler design & pitch
  5. 11:27Mapping samples to notes
  6. 13:37Pitch with binary search
  7. 15:21Impure effects in functional code
  8. 16:03Melodies via composition
  9. 18:52Arpeggiating with Pascal’s triangle
  10. 20:25Building musical sketch
  11. 21:33Bach’s math in music
  12. 22:16Möbius strip composition
  13. 25:50Closing thoughts
~/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.