~/talk

Scala Sampler for Functional Soundscapes

Talkat Lambda World 2024 · 2024-10-02..10-04· [creative-coding]
slides:none on file

A web-based sampler built on the Sounds of Scala library plays repitched samples across a scale using Scala.js and Typelevel Cats compiled from Scala 3, with IO monads wrapping the two impure operations (loading and playback). It stores an one-octave sample set, orders samples by frequency and uses a binary search to pick the closest sample, computes playbackRate ratios for repitching, and demonstrates a working live composition using a Pascal's triangle arpeggiator to generate melodic patterns.

AI-written summary · about

  1. 0:00Scala Sampler project
  2. 1:05Introduction
  3. 2:26Why Scala for soundscapes
  4. 3:54Talk goals
  5. 4:42What is a sampler
  6. 6:53Sounds of Scala library
  7. 8:19Sampler design for notes
  8. 9:23Pitch mathematical structure
  9. 13:38Repitching samples
  10. 16:26Sample repitching challenges
  11. 17:29Binary search for closest frequency
  12. 18:34Impurity in audio playback
  13. 19:19Functional programming for melody
  14. 20:03Arpeggiator from chords
  15. 21:29Melody from scales
  16. 23:39Refining rhythm and rests
  17. 24:42Combining arpeggiators
  18. 25:26Conclusion and future
~/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.