~/talk

Composing music with composed functions

Talkat JSConf Budapest 2019 · 2019-09-26..09-27· [javascript]
slides:none on file

Functional techniques convert a human shorthand into playable notes using Ramda and Tone.js over the Web Audio API, composing small pure functions like parseShorthand to return objects {name, octave, length, time}. Examples show partial application and composition (pipeline / stage‑one TC39) and a detune demo mapping A4 440Hz to 444.4 Hz. Array tools (map/filter/reduce) compute total lengths — a sample melody reduces to 1.625s — and the parser produces working audio.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06What is functional programming
  3. 3:45Immutability
  4. 5:01Higherorder functions
  5. 7:26Map functions
  6. 8:15Reduce functions
  7. 10:40Partial application
  8. 12:40Composition
  9. 18:40Conclusion
~/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.