This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-08
Channels
- # announcements (5)
- # aws (15)
- # babashka (7)
- # beginners (138)
- # bristol-clojurians (2)
- # chlorine-clover (11)
- # cider (9)
- # clara (4)
- # clj-kondo (17)
- # cljsrn (20)
- # clojars (1)
- # clojure (73)
- # clojure-europe (17)
- # clojure-italy (1)
- # clojure-nl (9)
- # clojure-spec (4)
- # clojure-uk (9)
- # clojurescript (43)
- # data-science (1)
- # datomic (87)
- # emacs (2)
- # figwheel-main (30)
- # fulcro (71)
- # helix (2)
- # hugsql (4)
- # jackdaw (5)
- # jobs (3)
- # jobs-discuss (31)
- # juxt (5)
- # kaocha (6)
- # lein-figwheel (16)
- # leiningen (1)
- # luminus (4)
- # malli (2)
- # meander (54)
- # music (8)
- # nrepl (12)
- # observability (28)
- # off-topic (85)
- # pathom (11)
- # re-frame (99)
- # reitit (9)
- # ring (1)
- # rum (6)
- # sci (11)
- # shadow-cljs (102)
- # sql (22)
- # tools-deps (10)
- # vim (65)
- # xtdb (14)
Is anyone familiar with cljs-bach or klangmeister? I am just looking for a hello world example to get rolling. The cljs-bach
readme gets as far as suggesting:
; Play the ping synthesiser now, at 440 hertz.
(-> (ping 440)
(connect-> destination)
(run-with context (current-time context) 1.0)))
…but leaves it to us to provide destination
, apparently a DOM node. I was hoping to find a complete example. I do not see anything in the klangmeister
repo like an example. The google comes up empty, too.@hiskennyness destination would be expecting the audiocontext destination:
var audioCtx = new AudioContext;
gainNode.connect(audioCtx.destination);
(-> (js/AudioContext.) .-destination)
seems like context
above is already the audiocontext so: (let [destination (.-destination context)] ... )
should work
Fantastic, @chris358. That worked great. I can evaluate all the forms without error, and the destination looks like a destination. But when I evaluate the whole shebang I get:
TypeError: synth.call is not a function
Hmm. That is in an Intellij/Cursive repl connected via figwheel to my browser. Possibly not meant to work that way?