This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-02
Channels
- # announcements (14)
- # beginners (133)
- # cider (27)
- # cljs-dev (7)
- # cljsjs (13)
- # clojure (105)
- # clojure-dev (58)
- # clojure-italy (1)
- # clojure-nl (17)
- # clojure-russia (33)
- # clojure-spec (5)
- # clojure-uk (154)
- # clojured (1)
- # clojurescript (35)
- # cloverage (4)
- # cursive (35)
- # datomic (58)
- # duct (8)
- # editors (9)
- # emacs (15)
- # events (1)
- # figwheel (47)
- # figwheel-main (132)
- # hyperfiddle (5)
- # immutant (29)
- # instaparse (21)
- # luminus (3)
- # off-topic (5)
- # onyx (5)
- # overtone (5)
- # pedestal (8)
- # re-frame (7)
- # reagent (6)
- # reitit (3)
- # schema (2)
- # shadow-cljs (178)
- # spacemacs (49)
- # specter (2)
- # sql (1)
- # tools-deps (110)
This gets the error
overtone.sc.machinery.ugen.sc_ugen.ControlProxy cannot be cast to
java.lang.Number
. How can I fix it? I don’t want n
to be a ControlProxy, just a normal argument.@rudiwillalwaysloveyou you cant pass clojure number like that. You will need to pass it as buffer and use index:kr to get the number. You could write defn wrapper around your synth to do that.
😃 4
👍 4
There are other ways too, but defsynth is a compile time macro and the parameters are supercollider proxy types. So it corrolates to SynthDef in sc.
@rudiwillalwaysloveyou reading this again, the problem is not the number. You can of course pass number. I felt like you were trying to pass pre-calculated values. But the problem is ‘repeat’. The error message is misleading and needs to be improved. You need to find sc ugen that does repeat.